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

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

Issue 2345002: GTK: More signal macro usage. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 7 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
« no previous file with comments | « chrome/browser/gtk/tabs/tab_renderer_gtk.cc ('k') | chrome/browser/gtk/tabs/tab_strip_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/tabs/tab_strip_gtk.h
diff --git a/chrome/browser/gtk/tabs/tab_strip_gtk.h b/chrome/browser/gtk/tabs/tab_strip_gtk.h
index 6a22a8bcdb1a3c49c1ad1d41ffd21ea7e99ef740..7fe8c60d0ea86e01cd9dcc8e147cd718d1d774f7 100644
--- a/chrome/browser/gtk/tabs/tab_strip_gtk.h
+++ b/chrome/browser/gtk/tabs/tab_strip_gtk.h
@@ -8,6 +8,7 @@
#include <gtk/gtk.h>
#include <vector>
+#include "app/gtk_signal.h"
#include "base/basictypes.h"
#include "base/task.h"
#include "base/message_loop.h"
@@ -176,8 +177,7 @@ class TabStripGtk : public TabStripModelObserver,
// TODO(jhawkins): Factor out this code into a TransparentContainer class.
// expose-event handler that redraws the drop indicator.
- static gboolean OnExposeEvent(GtkWidget* widget, GdkEventExpose* event,
- DropInfo* drop_info);
+ CHROMEGTK_CALLBACK_1(DropInfo, gboolean, OnExposeEvent, GdkEventExpose*);
// Sets the color map of the container window to allow the window to be
// transparent.
@@ -222,41 +222,32 @@ class TabStripGtk : public TabStripModelObserver,
};
// expose-event handler that redraws the tabstrip
- static gboolean OnExpose(GtkWidget* widget, GdkEventExpose* e,
- TabStripGtk* tabstrip);
+ CHROMEGTK_CALLBACK_1(TabStripGtk, gboolean, OnExpose, GdkEventExpose*);
// size-allocate handler that gets the new bounds of the tabstrip.
- static void OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation,
- TabStripGtk* tabstrip);
+ CHROMEGTK_CALLBACK_1(TabStripGtk, void, OnSizeAllocate, GtkAllocation*);
// drag-motion handler that is signaled when the user performs a drag in the
// tabstrip bounds.
- static gboolean OnDragMotion(GtkWidget* widget, GdkDragContext* context,
- gint x, gint y, guint time,
- TabStripGtk* tabstrip);
+ CHROMEGTK_CALLBACK_4(TabStripGtk, gboolean, OnDragMotion, GdkDragContext*,
+ gint, gint, guint);
// drag-drop handler that is notified when the user finishes a drag.
- static gboolean OnDragDrop(GtkWidget* widget, GdkDragContext* context,
- gint x, gint y, guint time,
- TabStripGtk* tabstrip);
+ CHROMEGTK_CALLBACK_4(TabStripGtk, gboolean, OnDragDrop, GdkDragContext*,
+ gint, gint, guint);
// drag-leave handler that is signaled when the mouse leaves the tabstrip
// during a drag.
- static gboolean OnDragLeave(GtkWidget* widget, GdkDragContext* context,
- guint time, TabStripGtk* tabstrip);
-
- // drag-failed handler that is signaled when the drag fails or is canceled.
- static gboolean OnDragFailed(GtkWidget* widget, GdkDragContext* context,
- GtkDragResult result, TabStripGtk* tabstrip);
+ CHROMEGTK_CALLBACK_2(TabStripGtk, gboolean, OnDragLeave, GdkDragContext*,
+ guint);
// drag-data-received handler that receives the data associated with the drag.
- static gboolean OnDragDataReceived(GtkWidget* widget, GdkDragContext* context,
- gint x, gint y, GtkSelectionData* data,
- guint info, guint time,
- TabStripGtk* tabstrip);
+ CHROMEGTK_CALLBACK_6(TabStripGtk, gboolean, OnDragDataReceived,
+ GdkDragContext*, gint, gint, GtkSelectionData*,
+ guint, guint);
// Handles the clicked signal from the new tab button.
- static void OnNewTabClicked(GtkWidget* widget, TabStripGtk* tabstrip);
+ CHROMEGTK_CALLBACK_0(TabStripGtk, void, OnNewTabClicked);
// Sets the bounds of the tab and moves the tab widget to those bounds.
void SetTabBounds(TabGtk* tab, const gfx::Rect& bounds);
« no previous file with comments | « chrome/browser/gtk/tabs/tab_renderer_gtk.cc ('k') | chrome/browser/gtk/tabs/tab_strip_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698