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

Unified Diff: ui/views/cocoa/views_nswindow_delegate.mm

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 | « ui/views/cocoa/views_nswindow_delegate.h ('k') | ui/views/views.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/cocoa/views_nswindow_delegate.mm
diff --git a/ui/views/cocoa/views_nswindow_delegate.mm b/ui/views/cocoa/views_nswindow_delegate.mm
index 038a844a2713d280b5673eb20d5e610a6c211d81..53fd9207cb82c128668c20eb00e8b241cec579a0 100644
--- a/ui/views/cocoa/views_nswindow_delegate.mm
+++ b/ui/views/cocoa/views_nswindow_delegate.mm
@@ -28,8 +28,9 @@
[parent_->ns_view() setWillShow:YES];
}
-- (void)onWindowOrderChanged {
+- (void)onWindowOrderChanged:(NSNotification*)notification {
[parent_->ns_view() setWillShow:NO];
+ parent_->OnVisibilityChanged();
}
// NSWindowDelegate implementation.
@@ -64,6 +65,14 @@
parent_->OnWindowWillClose();
}
+- (void)windowDidMiniaturize:(NSNotification*)notification {
+ parent_->OnVisibilityChanged();
+}
+
+- (void)windowDidDeminiaturize:(NSNotification*)notification {
+ parent_->OnVisibilityChanged();
+}
+
- (void)windowWillEnterFullScreen:(NSNotification*)notification {
parent_->OnFullscreenTransitionStart(true);
}
« no previous file with comments | « ui/views/cocoa/views_nswindow_delegate.h ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698