Index: ui/views/cocoa/bridged_native_widget.h |
diff --git a/ui/views/cocoa/bridged_native_widget.h b/ui/views/cocoa/bridged_native_widget.h |
index 05eeabf92a4f2f6bbec9d4d6d62023d7847b1c7f..325dda00c349b3b52ab906bbc21f425669fa5a62 100644 |
--- a/ui/views/cocoa/bridged_native_widget.h |
+++ b/ui/views/cocoa/bridged_native_widget.h |
@@ -65,6 +65,11 @@ class VIEWS_EXPORT BridgedNativeWidget : public internal::InputMethodDelegate, |
// invert the value of target_fullscreen_state(). |
void ToggleDesiredFullscreenState(); |
+ // Called by the NSWindowDelegate when the visibility of the window may have |
+ // changed. For example, due to a (de)miniaturize operation, or the window |
+ // being reordered in (or out of) the screen list. |
+ void OnVisibilityChanged(); |
+ |
// See widget.h for documentation. |
InputMethod* CreateInputMethod(); |
ui::InputMethod* GetHostInputMethod(); |
@@ -106,6 +111,10 @@ class VIEWS_EXPORT BridgedNativeWidget : public internal::InputMethodDelegate, |
// can not currently be changed. |
bool in_fullscreen_transition_; |
+ // Stores the value last read from -[NSWindow isVisible], to detect visibility |
+ // changes. |
+ bool window_visible_; |
+ |
// Overridden from FocusChangeListener: |
virtual void OnWillChangeFocus(View* focused_before, |
View* focused_now) override; |