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

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

Issue 420413002: Ensure dialogs are centered on browser windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test works Created 6 years, 4 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/ui/cocoa/constrained_window/constrained_window_sheet_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser_window_controller_private.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.mm b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
index 484e0271f182ebfee893a70ec79efe6e26c93ecc..1539f1c6c3360e5e21a1da556b98cea07223b10d 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
@@ -33,7 +33,6 @@
#import "chrome/browser/ui/cocoa/profiles/avatar_icon_controller.h"
#import "chrome/browser/ui/cocoa/status_bubble_mac.h"
#import "chrome/browser/ui/cocoa/tab_contents/overlayable_contents_controller.h"
-#import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h"
#import "chrome/browser/ui/cocoa/tabs/tab_strip_view.h"
#import "chrome/browser/ui/cocoa/toolbar/toolbar_controller.h"
#import "chrome/browser/ui/cocoa/version_independent_window.h"
@@ -279,20 +278,6 @@ willPositionSheet:(NSWindow*)sheet
// Normally, we don't need to tell the toolbar whether or not to show the
// divider, but things break down during animation.
[toolbarController_ setDividerOpacity:[self toolbarDividerOpacity]];
-
- // Update the position of the active constrained window sheet. We force this
- // here because the |sheetParentView| may not have been resized (e.g., to
- // prevent jank during a fullscreen mode transition), but constrained window
- // sheets also compute their position based on the bookmark bar and toolbar.
- content::WebContents* const activeWebContents =
- browser_->tab_strip_model()->GetActiveWebContents();
- NSView* const sheetParentView = activeWebContents ?
- GetSheetParentViewForWebContents(activeWebContents) : nil;
- if (sheetParentView) {
- [[NSNotificationCenter defaultCenter]
- postNotificationName:NSViewFrameDidChangeNotification
- object:sheetParentView];
- }
}
- (CGFloat)floatingBarHeight {
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698