diff options
author | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-23 22:31:16 +0000 |
---|---|---|
committer | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-23 22:31:16 +0000 |
commit | ca0bfc7ae7eb3c4ecf62a34f659714f5e8cbf897 (patch) | |
tree | 776c46a09ab65c5225f66554046dcd6eacfd1540 /chrome/browser/views | |
parent | e83a7f61f212487d7da91206583feff16f8637a0 (diff) | |
download | chromium_src-ca0bfc7ae7eb3c4ecf62a34f659714f5e8cbf897.zip chromium_src-ca0bfc7ae7eb3c4ecf62a34f659714f5e8cbf897.tar.gz chromium_src-ca0bfc7ae7eb3c4ecf62a34f659714f5e8cbf897.tar.bz2 |
Add a widget delegate handler for the WM_SETTINGCHANGE message in windows. This is sent when the size/position of the taskbar changes, and we need to move the desktop notifications if that happens.
BUG=35464
TEST=open notifications and move taskbar
Review URL: http://codereview.chromium.org/1622018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45504 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r-- | chrome/browser/views/notifications/balloon_view.cc | 4 | ||||
-rw-r--r-- | chrome/browser/views/notifications/balloon_view.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/views/notifications/balloon_view.cc b/chrome/browser/views/notifications/balloon_view.cc index 64d1544..bbbba43 100644 --- a/chrome/browser/views/notifications/balloon_view.cc +++ b/chrome/browser/views/notifications/balloon_view.cc @@ -137,6 +137,10 @@ void BalloonViewImpl::DisplayChanged() { collection_->DisplayChanged(); } +void BalloonViewImpl::WorkAreaChanged() { + collection_->DisplayChanged(); +} + void BalloonViewImpl::ButtonPressed(views::Button* sender, const views::Event&) { // The only button currently is the close button. diff --git a/chrome/browser/views/notifications/balloon_view.h b/chrome/browser/views/notifications/balloon_view.h index 6478922..23bb691 100644 --- a/chrome/browser/views/notifications/balloon_view.h +++ b/chrome/browser/views/notifications/balloon_view.h @@ -75,6 +75,7 @@ class BalloonViewImpl : public BalloonView, // views::WidgetDelegate interface. void DisplayChanged(); + void WorkAreaChanged(); // views::ButtonListener interface. virtual void ButtonPressed(views::Button* sender, const views::Event&); |