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

Unified Diff: chrome/browser/tab_contents/tab_contents_view_gtk.h

Issue 1118005: GTK: More transitions to thunk definition macros. (Closed)
Patch Set: Created 10 years, 9 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/tab_contents/tab_contents_view_gtk.h
diff --git a/chrome/browser/tab_contents/tab_contents_view_gtk.h b/chrome/browser/tab_contents/tab_contents_view_gtk.h
index 954e560a74c8f87f68d7e47175b6a1e516fe2ee1..28a256857cc4a710ae4344e83cffaa3a3842e732 100644
--- a/chrome/browser/tab_contents/tab_contents_view_gtk.h
+++ b/chrome/browser/tab_contents/tab_contents_view_gtk.h
@@ -7,6 +7,7 @@
#include <gtk/gtk.h>
+#include "app/gtk_signal.h"
#include "base/scoped_ptr.h"
#include "chrome/browser/gtk/focus_store_gtk.h"
#include "chrome/browser/tab_contents/tab_contents_view.h"
@@ -78,25 +79,21 @@ class TabContentsViewGtk : public TabContentsView,
void CancelDragIfAny();
// We keep track of the timestamp of the latest mousedown event.
- static gboolean OnMouseDown(GtkWidget* widget,
- GdkEventButton* event, TabContentsViewGtk* view);
+ CHROMEGTK_CALLBACK_1(TabContentsViewGtk, gboolean, OnMouseDown,
+ GdkEventButton*);
// Used to adjust the size of its children when the size of |expanded_| is
// changed.
- static void OnChildSizeRequest(GtkWidget* widget,
- GtkWidget* child,
- GtkRequisition* requisition,
- TabContentsViewGtk* view);
+ CHROMEGTK_CALLBACK_2(TabContentsViewGtk, void, OnChildSizeRequest,
+ GtkWidget*, GtkRequisition*);
// Used to propagate the size change of |expanded_| to our RWHV to resize the
// renderer content.
- static void OnSizeAllocate(GtkWidget* widget,
- GtkAllocation* allocation,
- TabContentsViewGtk* view);
+ CHROMEGTK_CALLBACK_1(TabContentsViewGtk, void, OnSizeAllocate,
+ GtkAllocation*);
- static void OnSetFloatingPosition(
- GtkFloatingContainer* floating_container, GtkAllocation* allocation,
- TabContentsViewGtk* tab_contents_view);
+ CHROMEGTK_CALLBACK_1(TabContentsViewGtk, void, OnSetFloatingPosition,
+ GtkAllocation*);
// Contains |expanded_| as its GtkBin member.
OwnedWidgetGtk floating_;
« no previous file with comments | « chrome/browser/gtk/external_protocol_dialog_gtk.cc ('k') | chrome/browser/tab_contents/tab_contents_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698