diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-12 17:03:59 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-12 17:03:59 +0000 |
commit | 1ee19742db740fb60ed78266039f65c93c85c836 (patch) | |
tree | a000c4d6ac1df9906b08a41497ac3f3589928f06 /chrome/browser/views/tab_contents | |
parent | c9fe2440f7cf280fc7a2ebd0b91acebb096bc4ab (diff) | |
download | chromium_src-1ee19742db740fb60ed78266039f65c93c85c836.zip chromium_src-1ee19742db740fb60ed78266039f65c93c85c836.tar.gz chromium_src-1ee19742db740fb60ed78266039f65c93c85c836.tar.bz2 |
Forwards mouse leave to renderer for views/gtk.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/269051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28710 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/tab_contents')
-rw-r--r-- | chrome/browser/views/tab_contents/tab_contents_view_gtk.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/views/tab_contents/tab_contents_view_gtk.cc b/chrome/browser/views/tab_contents/tab_contents_view_gtk.cc index 8667bce..ad274b3 100644 --- a/chrome/browser/views/tab_contents/tab_contents_view_gtk.cc +++ b/chrome/browser/views/tab_contents/tab_contents_view_gtk.cc @@ -56,8 +56,10 @@ gboolean OnFocus(GtkWidget* widget, GtkDirectionType focus, } // Called when the mouse leaves the widget. We notify our delegate. -gboolean OnLeaveNotify(GtkWidget* widget, GdkEventCrossing* event, - TabContents* tab_contents) { +// WidgetGtk also defines OnLeaveNotify, so we use the name OnLeaveNotify2 +// here. +gboolean OnLeaveNotify2(GtkWidget* widget, GdkEventCrossing* event, + TabContents* tab_contents) { if (tab_contents->delegate()) tab_contents->delegate()->ContentsMouseEvent(tab_contents, false); return FALSE; @@ -142,10 +144,8 @@ RenderWidgetHostView* TabContentsViewGtk::CreateViewForWidget( view->InitAsChild(); g_signal_connect(view->native_view(), "focus", G_CALLBACK(OnFocus), tab_contents()); -/* g_signal_connect(view->native_view(), "leave-notify-event", - G_CALLBACK(OnLeaveNotify), tab_contents()); -*/ + G_CALLBACK(OnLeaveNotify2), tab_contents()); g_signal_connect(view->native_view(), "motion-notify-event", G_CALLBACK(OnMouseMove), tab_contents()); g_signal_connect(view->native_view(), "scroll-event", |