Add Invalidate method to NativeWindow and add Mac implementation
This commit is contained in:
parent
11e1f6b56c
commit
f19924bcb0
6 changed files with 16 additions and 6 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue