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

Side by Side Diff: chrome/browser/gtk/tabs/tab_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, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_GTK_TABS_TAB_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_TABS_TAB_GTK_H_
6 #define CHROME_BROWSER_GTK_TABS_TAB_GTK_H_ 6 #define CHROME_BROWSER_GTK_TABS_TAB_GTK_H_
7 7
8 #include "app/theme_provider.h" 8 #include "app/theme_provider.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 virtual void UpdateData(TabContents* contents, bool loading_only); 95 virtual void UpdateData(TabContents* contents, bool loading_only);
96 96
97 // button-press-event handler that handles mouse clicks. 97 // button-press-event handler that handles mouse clicks.
98 static gboolean OnMousePress(GtkWidget* widget, GdkEventButton* event, 98 static gboolean OnMousePress(GtkWidget* widget, GdkEventButton* event,
99 TabGtk* tab); 99 TabGtk* tab);
100 100
101 // button-release-event handler that handles mouse click releases. 101 // button-release-event handler that handles mouse click releases.
102 static gboolean OnMouseRelease(GtkWidget* widget, GdkEventButton* event, 102 static gboolean OnMouseRelease(GtkWidget* widget, GdkEventButton* event,
103 TabGtk* tab); 103 TabGtk* tab);
104 104
105 // enter-notify-event handler that signals when the mouse enters the tab.
106 static gboolean OnEnterNotify(GtkWidget* widget, GdkEventCrossing* event,
107 TabGtk* tab);
108
109 // leave-notify-event handler that signals when the mouse enters the tab.
110 static gboolean OnLeaveNotify(GtkWidget* widget, GdkEventCrossing* event,
111 TabGtk* tab);
112
113 // drag-begin handler that signals when a drag action begins. 105 // drag-begin handler that signals when a drag action begins.
114 static void OnDragBegin(GtkWidget* widget, GdkDragContext* context, 106 static void OnDragBegin(GtkWidget* widget, GdkDragContext* context,
115 TabGtk* tab); 107 TabGtk* tab);
116 108
117 // drag-end handler that signals when a drag action ends. 109 // drag-end handler that signals when a drag action ends.
118 static void OnDragEnd(GtkWidget* widget, GdkDragContext* context, 110 static void OnDragEnd(GtkWidget* widget, GdkDragContext* context,
119 TabGtk* tab); 111 TabGtk* tab);
120 112
121 // drag-failed handler that is emitted when the drag fails. 113 // drag-failed handler that is emitted when the drag fails.
122 static gboolean OnDragFailed(GtkWidget* widget, GdkDragContext* context, 114 static gboolean OnDragFailed(GtkWidget* widget, GdkDragContext* context,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // DCHECK. 147 // DCHECK.
156 GtkWidget* event_box_; 148 GtkWidget* event_box_;
157 149
158 // True if this tab is being dragged. 150 // True if this tab is being dragged.
159 bool dragging_; 151 bool dragging_;
160 152
161 DISALLOW_COPY_AND_ASSIGN(TabGtk); 153 DISALLOW_COPY_AND_ASSIGN(TabGtk);
162 }; 154 };
163 155
164 #endif // CHROME_BROWSER_GTK_TABS_TAB_GTK_H_ 156 #endif // CHROME_BROWSER_GTK_TABS_TAB_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/tabs/tab_gtk.cc » ('j') | chrome/browser/gtk/tabs/tab_renderer_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698