diff options
author | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-04 22:12:02 +0000 |
---|---|---|
committer | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-04 22:12:02 +0000 |
commit | b71f818c64df5a5d8501a37da84ce4c7cae494fa (patch) | |
tree | ee3ca693c1b349f6ccc0d340346811e2f1f681c5 /chrome/browser/gtk | |
parent | 177ac431c361d9bcec1350d3f622ae82b471f1ae (diff) | |
download | chromium_src-b71f818c64df5a5d8501a37da84ce4c7cae494fa.zip chromium_src-b71f818c64df5a5d8501a37da84ce4c7cae494fa.tar.gz chromium_src-b71f818c64df5a5d8501a37da84ce4c7cae494fa.tar.bz2 |
On Windows, detect the WM_DISPLAYCHANGE message which indicates the desktop size is changing. Pass this event using the NotificationService, and listen for it in desktop notification code in order to adjust metrics properly for the corner of the screen.
BUG=35464
TEST=resize desktop after starting chrome; create notifications.
Review URL: http://codereview.chromium.org/606007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40670 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk')
-rw-r--r-- | chrome/browser/gtk/notifications/balloon_view_gtk.cc | 2 | ||||
-rw-r--r-- | chrome/browser/gtk/notifications/balloon_view_gtk.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/gtk/notifications/balloon_view_gtk.cc b/chrome/browser/gtk/notifications/balloon_view_gtk.cc index dbae12a..e022b5e 100644 --- a/chrome/browser/gtk/notifications/balloon_view_gtk.cc +++ b/chrome/browser/gtk/notifications/balloon_view_gtk.cc @@ -83,7 +83,7 @@ const int kDefaultShelfHeight = 24; } // namespace -BalloonViewImpl::BalloonViewImpl() +BalloonViewImpl::BalloonViewImpl(BalloonCollection* collection) : balloon_(NULL), frame_container_(NULL), html_container_(NULL), diff --git a/chrome/browser/gtk/notifications/balloon_view_gtk.h b/chrome/browser/gtk/notifications/balloon_view_gtk.h index b0cf8ed..a6ea598 100644 --- a/chrome/browser/gtk/notifications/balloon_view_gtk.h +++ b/chrome/browser/gtk/notifications/balloon_view_gtk.h @@ -18,7 +18,7 @@ #include "chrome/common/notification_observer.h" #include "chrome/common/notification_registrar.h" - +class BalloonCollection; class BalloonViewHost; class MenuGtk; class NineBox; @@ -34,7 +34,7 @@ class BalloonViewImpl : public BalloonView, public NotificationObserver, public AnimationDelegate { public: - BalloonViewImpl(); + explicit BalloonViewImpl(BalloonCollection* collection); ~BalloonViewImpl(); // BalloonView interface. |