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 /views/widget/widget_gtk.h | |
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 'views/widget/widget_gtk.h')
-rw-r--r-- | views/widget/widget_gtk.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/views/widget/widget_gtk.h b/views/widget/widget_gtk.h index 29d99be..87baeb5 100644 --- a/views/widget/widget_gtk.h +++ b/views/widget/widget_gtk.h @@ -137,6 +137,8 @@ class WidgetGtk // Overridden from Widget: virtual void Init(gfx::NativeView parent, const gfx::Rect& bounds); + virtual WidgetDelegate* GetWidgetDelegate(); + virtual void SetWidgetDelegate(WidgetDelegate* delegate); virtual void SetContentsView(View* view); virtual void GetBounds(gfx::Rect* out, bool including_frame) const; virtual void SetBounds(const gfx::Rect& bounds); @@ -470,6 +472,10 @@ class WidgetGtk // this to determine whether we should process the event. bool has_focus_; + // Non owned pointer to optional delegate. May be NULL if no delegate is + // being used. + WidgetDelegate* delegate_; + DISALLOW_COPY_AND_ASSIGN(WidgetGtk); }; |