Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(990)

Unified Diff: chrome/browser/gtk/tabs/tab_renderer_gtk.h

Issue 160512: gtk: Move the enter/leave-notify-event handling to TabRendererGtk and hook up... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/gtk/tabs/tab_renderer_gtk.h
===================================================================
--- chrome/browser/gtk/tabs/tab_renderer_gtk.h (revision 22256)
+++ chrome/browser/gtk/tabs/tab_renderer_gtk.h (working copy)
@@ -178,12 +178,13 @@
// Returns the title of the Tab.
std::wstring GetTitle() const;
- // Called by TabGtk to notify the renderer that the tab is being hovered.
- void OnMouseEntered();
+ // enter-notify-event handler that signals when the mouse enters the tab.
+ static gboolean OnEnterNotifyEvent(GtkWidget* widget, GdkEventCrossing* event,
+ TabRendererGtk* tab);
- // Called by TabGtk to notify the renderer that the tab is no longer being
- // hovered.
- void OnMouseExited();
+ // leave-notify-event handler that signals when the mouse enters the tab.
+ static gboolean OnLeaveNotifyEvent(GtkWidget* widget, GdkEventCrossing* event,
+ TabRendererGtk* tab);
private:
class FavIconCrashAnimation;

Powered by Google App Engine
This is Rietveld 408576698