refactor: add NativeWindow::IsActive() (#47148)
this was already present on macOS; use in NativeWindowViews too
This commit is contained in:
parent
296e39456a
commit
211faed848
4 changed files with 7 additions and 6 deletions
|
@ -1202,6 +1202,11 @@ void NativeWindowViews::Invalidate() {
|
|||
widget()->SchedulePaintInRect(gfx::Rect(GetBounds().size()));
|
||||
}
|
||||
|
||||
bool NativeWindowViews::IsActive() const {
|
||||
views::Widget* const widget = this->widget();
|
||||
return widget && widget->IsActive();
|
||||
}
|
||||
|
||||
void NativeWindowViews::FlashFrame(bool flash) {
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
// The Chromium's implementation has a bug stopping flash.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue