OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // This is the GTK implementation of InfoBubbles. InfoBubbles are like | 5 // This is the GTK implementation of InfoBubbles. InfoBubbles are like |
6 // dialogs, but they point to a given element on the screen. You should call | 6 // dialogs, but they point to a given element on the screen. You should call |
7 // InfoBubbleGtk::Show, which will create and display a bubble. The object is | 7 // InfoBubbleGtk::Show, which will create and display a bubble. The object is |
8 // self deleting, when the bubble is closed, you will be notified via | 8 // self deleting, when the bubble is closed, you will be notified via |
9 // InfoBubbleGtkDelegate::InfoBubbleClosing(). Then the widgets and the | 9 // InfoBubbleGtkDelegate::InfoBubbleClosing(). Then the widgets and the |
10 // underlying object will be destroyed. You can also close and destroy the | 10 // underlying object will be destroyed. You can also close and destroy the |
11 // bubble by calling Close(). | 11 // bubble by calling Close(). |
12 | 12 |
13 #ifndef CHROME_BROWSER_GTK_INFO_BUBBLE_GTK_H_ | 13 #ifndef CHROME_BROWSER_GTK_INFO_BUBBLE_GTK_H_ |
14 #define CHROME_BROWSER_GTK_INFO_BUBBLE_GTK_H_ | 14 #define CHROME_BROWSER_GTK_INFO_BUBBLE_GTK_H_ |
15 #pragma once | 15 #pragma once |
16 | 16 |
17 #include <gtk/gtk.h> | 17 #include <gtk/gtk.h> |
18 | 18 |
19 #include "app/gtk_signal.h" | 19 #include "app/gtk_signal.h" |
20 #include "app/gtk_signal_registrar.h" | 20 #include "app/gtk_signal_registrar.h" |
21 #include "base/basictypes.h" | 21 #include "base/basictypes.h" |
| 22 #include "chrome/common/notification_observer.h" |
22 #include "chrome/common/notification_registrar.h" | 23 #include "chrome/common/notification_registrar.h" |
23 #include "gfx/point.h" | 24 #include "gfx/point.h" |
24 #include "gfx/rect.h" | 25 #include "gfx/rect.h" |
25 | 26 |
26 class GtkThemeProvider; | 27 class GtkThemeProvider; |
27 class InfoBubbleGtk; | 28 class InfoBubbleGtk; |
28 namespace gfx { | 29 namespace gfx { |
29 class Rect; | 30 class Rect; |
30 } | 31 } |
31 | 32 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 bool closed_by_escape_; | 205 bool closed_by_escape_; |
205 | 206 |
206 NotificationRegistrar registrar_; | 207 NotificationRegistrar registrar_; |
207 | 208 |
208 GtkSignalRegistrar signals_; | 209 GtkSignalRegistrar signals_; |
209 | 210 |
210 DISALLOW_COPY_AND_ASSIGN(InfoBubbleGtk); | 211 DISALLOW_COPY_AND_ASSIGN(InfoBubbleGtk); |
211 }; | 212 }; |
212 | 213 |
213 #endif // CHROME_BROWSER_GTK_INFO_BUBBLE_GTK_H_ | 214 #endif // CHROME_BROWSER_GTK_INFO_BUBBLE_GTK_H_ |
OLD | NEW |