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

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

Issue 2069103004: MacViews: Attach child windows when parent is on the screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed OnVisibilityChangedTo(). Added test. Created 4 years, 6 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
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 75346a6a8076dadb929abc2f858e5a2cf57e6892..a9ea7bfd302cd904ba14e53fe48b1298325a8b27 100644
--- a/ui/views/cocoa/views_nswindow_delegate.mm
+++ b/ui/views/cocoa/views_nswindow_delegate.mm
@@ -35,18 +35,10 @@
[parent_->ns_window() resetCursorRects];
}
-- (void)onWindowOrderWillChange:(NSWindowOrderingMode)orderingMode {
- parent_->OnVisibilityChangedTo(orderingMode != NSWindowOut);
-}
-
- (void)onWindowOrderChanged:(NSNotification*)notification {
parent_->OnVisibilityChanged();
}
-- (void)onWindowWillDisplay {
- parent_->OnVisibilityChangedTo(true);
-}
-
- (void)sheetDidEnd:(NSWindow*)sheet
returnCode:(NSInteger)returnCode
contextInfo:(void*)contextInfo {

Powered by Google App Engine
This is Rietveld 408576698