| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_GTK_BUBBLE_BUBBLE_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 177 |
| 178 CHROMEGTK_CALLBACK_1(BubbleGtk, gboolean, OnExpose, GdkEventExpose*); | 178 CHROMEGTK_CALLBACK_1(BubbleGtk, gboolean, OnExpose, GdkEventExpose*); |
| 179 CHROMEGTK_CALLBACK_1(BubbleGtk, void, OnSizeAllocate, GtkAllocation*); | 179 CHROMEGTK_CALLBACK_1(BubbleGtk, void, OnSizeAllocate, GtkAllocation*); |
| 180 CHROMEGTK_CALLBACK_1(BubbleGtk, gboolean, OnButtonPress, GdkEventButton*); | 180 CHROMEGTK_CALLBACK_1(BubbleGtk, gboolean, OnButtonPress, GdkEventButton*); |
| 181 CHROMEGTK_CALLBACK_0(BubbleGtk, gboolean, OnDestroy); | 181 CHROMEGTK_CALLBACK_0(BubbleGtk, gboolean, OnDestroy); |
| 182 CHROMEGTK_CALLBACK_0(BubbleGtk, void, OnHide); | 182 CHROMEGTK_CALLBACK_0(BubbleGtk, void, OnHide); |
| 183 CHROMEGTK_CALLBACK_1(BubbleGtk, gboolean, OnToplevelConfigure, | 183 CHROMEGTK_CALLBACK_1(BubbleGtk, gboolean, OnToplevelConfigure, |
| 184 GdkEventConfigure*); | 184 GdkEventConfigure*); |
| 185 CHROMEGTK_CALLBACK_1(BubbleGtk, gboolean, OnToplevelUnmap, GdkEvent*); | 185 CHROMEGTK_CALLBACK_1(BubbleGtk, gboolean, OnToplevelUnmap, GdkEvent*); |
| 186 CHROMEGTK_CALLBACK_1(BubbleGtk, void, OnAnchorAllocate, GtkAllocation*); | 186 CHROMEGTK_CALLBACK_1(BubbleGtk, void, OnAnchorAllocate, GtkAllocation*); |
| 187 CHROMEGTK_CALLBACK_0(BubbleGtk, void, OnAnchorDestroy); |
| 188 CHROMEGTK_CALLBACK_0(BubbleGtk, void, OnToplevelDestroy); |
| 187 | 189 |
| 188 // The caller supplied delegate, can be NULL. | 190 // The caller supplied delegate, can be NULL. |
| 189 BubbleDelegateGtk* delegate_; | 191 BubbleDelegateGtk* delegate_; |
| 190 | 192 |
| 191 // Our GtkWindow popup window, we don't technically "own" the widget, since | 193 // Our GtkWindow popup window, we don't technically "own" the widget, since |
| 192 // it deletes us when it is destroyed. | 194 // it deletes us when it is destroyed. |
| 193 GtkWidget* window_; | 195 GtkWidget* window_; |
| 194 | 196 |
| 195 // Provides colors and stuff. | 197 // Provides colors and stuff. |
| 196 GtkThemeService* theme_service_; | 198 GtkThemeService* theme_service_; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 bool closed_by_escape_; | 235 bool closed_by_escape_; |
| 234 | 236 |
| 235 content::NotificationRegistrar registrar_; | 237 content::NotificationRegistrar registrar_; |
| 236 | 238 |
| 237 ui::GtkSignalRegistrar signals_; | 239 ui::GtkSignalRegistrar signals_; |
| 238 | 240 |
| 239 DISALLOW_COPY_AND_ASSIGN(BubbleGtk); | 241 DISALLOW_COPY_AND_ASSIGN(BubbleGtk); |
| 240 }; | 242 }; |
| 241 | 243 |
| 242 #endif // CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_ | 244 #endif // CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_ |
| OLD | NEW |