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

Unified Diff: chrome/browser/app_controller_mac.mm

Issue 8437026: Update PanelManager's display settings when they change (OSX). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/app_controller_mac.mm
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
index 8bce15180a013411aa24ab62a3cb4ffaa0ac77d5..12e6e5cb8504de03c87d5c108d1ee04266004580 100644
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -51,6 +51,7 @@
#import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h"
#import "chrome/browser/ui/cocoa/tabs/tab_window_controller.h"
#include "chrome/browser/ui/cocoa/task_manager_mac.h"
+#include "chrome/browser/ui/panels/panel_manager.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_paths_internal.h"
#include "chrome/common/chrome_switches.h"
@@ -1250,6 +1251,17 @@ const AEEventClass kAECloudPrintUninstallClass = 'GCPu';
return bookmarkMenuBridge_.get();
}
+- (void)applicationDidChangeScreenParameters:(NSNotification *)notification {
+ // During this callback the working area is not always already updated. Defer.
+ [self performSelector:@selector(delayedPanelManagerScreenParametersUpdate)
+ withObject:nil
+ afterDelay:0];
+}
+
+- (void)delayedPanelManagerScreenParametersUpdate {
+ PanelManager::GetInstance()->OnDisplayChanged();
+}
+
@end // @implementation AppController
//---------------------------------------------------------------------------
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698