OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_RELOAD_BUTTON_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_RELOAD_BUTTON_GTK_H_ |
6 #define CHROME_BROWSER_GTK_RELOAD_BUTTON_GTK_H_ | 6 #define CHROME_BROWSER_GTK_RELOAD_BUTTON_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 void ChangeMode(Mode mode, bool force); | 35 void ChangeMode(Mode mode, bool force); |
36 | 36 |
37 // Provide NotificationObserver implementation. | 37 // Provide NotificationObserver implementation. |
38 virtual void Observe(NotificationType type, | 38 virtual void Observe(NotificationType type, |
39 const NotificationSource& source, | 39 const NotificationSource& source, |
40 const NotificationDetails& details); | 40 const NotificationDetails& details); |
41 | 41 |
42 private: | 42 private: |
43 friend class ReloadButtonGtkPeer; | 43 friend class ReloadButtonGtkPeer; |
44 | 44 |
| 45 CHROMEGTK_CALLBACK_0(ReloadButtonGtk, void, OnClicked); |
45 CHROMEGTK_CALLBACK_1(ReloadButtonGtk, gboolean, OnExpose, GdkEventExpose*); | 46 CHROMEGTK_CALLBACK_1(ReloadButtonGtk, gboolean, OnExpose, GdkEventExpose*); |
46 CHROMEGTK_CALLBACK_1(ReloadButtonGtk, gboolean, OnLeaveNotify, | 47 CHROMEGTK_CALLBACK_1(ReloadButtonGtk, gboolean, OnLeaveNotify, |
47 GdkEventCrossing*); | 48 GdkEventCrossing*); |
48 CHROMEGTK_CALLBACK_0(ReloadButtonGtk, void, OnClicked); | |
49 CHROMEGTK_CALLBACK_4(ReloadButtonGtk, gboolean, OnQueryTooltip, gint, gint, | 49 CHROMEGTK_CALLBACK_4(ReloadButtonGtk, gboolean, OnQueryTooltip, gint, gint, |
50 gboolean, GtkTooltip*); | 50 gboolean, GtkTooltip*); |
51 | 51 |
52 void SetToggled(); | 52 void SetToggled(); |
53 | 53 |
54 bool timer_running() const { | 54 bool timer_running() const { |
55 return timer_.IsRunning() || pretend_timer_is_running_for_unittest_; | 55 return timer_.IsRunning() || pretend_timer_is_running_for_unittest_; |
56 } | 56 } |
57 | 57 |
58 void OnButtonTimer(); | 58 void OnButtonTimer(); |
(...skipping 25 matching lines...) Expand all Loading... |
84 CustomDrawButtonBase reload_; | 84 CustomDrawButtonBase reload_; |
85 CustomDrawButtonBase stop_; | 85 CustomDrawButtonBase stop_; |
86 CustomDrawHoverController hover_controller_; | 86 CustomDrawHoverController hover_controller_; |
87 | 87 |
88 OwnedWidgetGtk widget_; | 88 OwnedWidgetGtk widget_; |
89 | 89 |
90 DISALLOW_IMPLICIT_CONSTRUCTORS(ReloadButtonGtk); | 90 DISALLOW_IMPLICIT_CONSTRUCTORS(ReloadButtonGtk); |
91 }; | 91 }; |
92 | 92 |
93 #endif // CHROME_BROWSER_GTK_RELOAD_BUTTON_GTK_H_ | 93 #endif // CHROME_BROWSER_GTK_RELOAD_BUTTON_GTK_H_ |
OLD | NEW |