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

Unified Diff: chrome/browser/gtk/fullscreen_exit_bubble_gtk.h

Issue 1783010: GTK: more signal handler foolproofing. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 8 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/browser_actions_toolbar_gtk.cc ('k') | chrome/browser/gtk/fullscreen_exit_bubble_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/fullscreen_exit_bubble_gtk.h
diff --git a/chrome/browser/gtk/fullscreen_exit_bubble_gtk.h b/chrome/browser/gtk/fullscreen_exit_bubble_gtk.h
index 44b3ac0bd3d3c6b7ab628a634c2555adc9e34e2b..0b9c90e4aa1f8a7b112ca30f6b9e967f2d6c96b6 100644
--- a/chrome/browser/gtk/fullscreen_exit_bubble_gtk.h
+++ b/chrome/browser/gtk/fullscreen_exit_bubble_gtk.h
@@ -7,6 +7,7 @@
#include <gtk/gtk.h>
+#include "app/gtk_signal.h"
#include "base/timer.h"
#include "chrome/browser/gtk/slide_animator_gtk.h"
@@ -30,12 +31,9 @@ class FullscreenExitBubbleGtk {
// Hide the exit bubble.
void Hide();
- static void OnSetFloatingPosition(GtkFloatingContainer* floating_container,
- GtkAllocation* allocation,
- FullscreenExitBubbleGtk* bubble);
-
- static void OnLinkClicked(GtkWidget* link,
- FullscreenExitBubbleGtk* bubble);
+ CHROMEGTK_CALLBACK_1(FullscreenExitBubbleGtk, void, OnSetFloatingPosition,
+ GtkAllocation*);
+ CHROMEGTK_CALLBACK_0(FullscreenExitBubbleGtk, void, OnLinkClicked);
// A pointer to the floating container that is our parent.
GtkFloatingContainer* container_;
@@ -45,6 +43,8 @@ class FullscreenExitBubbleGtk {
// The timer that does the initial hiding of the exit bubble.
base::OneShotTimer<FullscreenExitBubbleGtk> initial_delay_;
+
+ GtkSignalRegistrar signals_;
};
#endif // CHROME_BROWSER_GTK_FULLSCREEN_EXIT_BUBBLE_GTK_H_
« no previous file with comments | « chrome/browser/gtk/browser_actions_toolbar_gtk.cc ('k') | chrome/browser/gtk/fullscreen_exit_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698