Add Invalidate method to NativeWindow and add Mac implementation

This commit is contained in:
Gary Wilber 2017-02-13 19:41:24 -08:00
parent 11e1f6b56c
commit f19924bcb0
6 changed files with 16 additions and 6 deletions

View file

@ -695,6 +695,12 @@ void NativeWindowViews::Center() {
window_->CenterWindow(GetSize());
}
void NativeWindowViews::Invalidate() {
const gfx::Rect& bounds = GetBounds();
window_->SchedulePaintInRect(
gfx::Rect(0, 0, bounds.width(), bounds.height()));
}
void NativeWindowViews::SetTitle(const std::string& title) {
title_ = title;
window_->UpdateWindowTitle();