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.cc | |
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.cc')
-rw-r--r-- | views/widget/widget_gtk.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc index b14f118..bfd0ab4 100644 --- a/views/widget/widget_gtk.cc +++ b/views/widget/widget_gtk.cc @@ -105,7 +105,8 @@ WidgetGtk::WidgetGtk(Type type) is_active_(false), transient_to_parent_(false), got_initial_focus_in_(false), - has_focus_(false) { + has_focus_(false), + delegate_(NULL) { static bool installed_message_loop_observer = false; if (!installed_message_loop_observer) { installed_message_loop_observer = true; @@ -379,6 +380,14 @@ void WidgetGtk::Init(GtkWidget* parent, } } +WidgetDelegate* WidgetWin::GetWidgetDelegate() { + return delegate_; +} + +void WidgetDelegate::SetWidgetDelegate(WidgetDelegate* delegate) { + delegate_ = delegate; +} + void WidgetGtk::SetContentsView(View* view) { root_view_->SetContentsView(view); } |