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

Unified Diff: chrome/browser/ui/cocoa/framed_browser_window.mm

Issue 2040253003: Mac low power video: Support child windows, sheets, and transitions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback 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: chrome/browser/ui/cocoa/framed_browser_window.mm
diff --git a/chrome/browser/ui/cocoa/framed_browser_window.mm b/chrome/browser/ui/cocoa/framed_browser_window.mm
index 4dd768595bd8661538b811ed36880ccf4af656ca..c9e337c376d2299a39397e399978c44c116d9c00 100644
--- a/chrome/browser/ui/cocoa/framed_browser_window.mm
+++ b/chrome/browser/ui/cocoa/framed_browser_window.mm
@@ -44,6 +44,7 @@ - (void)adjustMiniaturizeButton:(NSNotification*)notification;
- (void)adjustZoomButton:(NSNotification*)notification;
- (void)adjustButton:(NSButton*)button
ofKind:(NSWindowButton)kind;
+- (void)childWindowsDidChange;
@end
@@ -359,4 +360,21 @@ - (NSColor*)titleColor {
return [NSColor windowFrameTextColor];
}
+- (void)addChildWindow:(NSWindow*)childWindow
+ ordered:(NSWindowOrderingMode)orderingMode {
+ [super addChildWindow:childWindow ordered:orderingMode];
+ [self childWindowsDidChange];
+}
+
+- (void)removeChildWindow:(NSWindow*)childWindow {
+ [super removeChildWindow:childWindow];
+ [self childWindowsDidChange];
+}
+
+- (void)childWindowsDidChange {
+ id delegate = [self delegate];
+ if ([delegate respondsToSelector:@selector(childWindowsDidChange)])
+ [delegate childWindowsDidChange];
+}
+
@end

Powered by Google App Engine
This is Rietveld 408576698