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

Unified Diff: chrome/browser/cocoa/browser_window_controller.mm

Issue 99206: Move window chrome into drag overlay so they stand out more during a drag out... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 8 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 | chrome/browser/cocoa/tab_window_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/browser_window_controller.mm
===================================================================
--- chrome/browser/cocoa/browser_window_controller.mm (revision 14881)
+++ chrome/browser/cocoa/browser_window_controller.mm (working copy)
@@ -562,4 +562,16 @@
return defaultSheetRect;
}
+// In addition to the tab strip and content area, which the superview's impl
+// takes care of, we need to add the toolbar and bookmark bar to the
+// overlay so they draw correctly when dragging out a new window.
+- (NSArray*)viewsToMoveToOverlay {
+ NSArray* views = [super viewsToMoveToOverlay];
+ NSArray* browserViews =
+ [NSArray arrayWithObjects:[toolbarController_ view],
+ [bookmarkController_ view],
+ nil];
+ return [views arrayByAddingObjectsFromArray:browserViews];
+}
+
@end
« no previous file with comments | « no previous file | chrome/browser/cocoa/tab_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698