Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Unified Diff: ui/views/cocoa/bridged_native_widget.h

Issue 630363003: More NativeWidget -> Widget notifications: visibility, minimize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20140704-Mac-VIEWS-ActivationChanges
Patch Set: rebase on crrev/654393002 Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/views/cocoa/bridged_native_widget.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | ui/views/cocoa/bridged_native_widget.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698