Commit 6a455071 authored by dimich@chromium.org's avatar dimich@chromium.org

Update PanelManager's display settings when they change (OSX).

BUG=101407


Review URL: http://codereview.chromium.org/8437026

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108227 0039d316-1c4b-4281-b951-d872f2087c98
parent 0d6bfdcd
......@@ -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
//---------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment