| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_GTK_INFO_BUBBLE_GTK_H_ |
| 14 #define CHROME_BROWSER_GTK_INFO_BUBBLE_GTK_H_ | 14 #define CHROME_BROWSER_UI_GTK_INFO_BUBBLE_GTK_H_ |
| 15 #pragma once | 15 #pragma once |
| 16 | 16 |
| 17 #include <gtk/gtk.h> | 17 #include <gtk/gtk.h> |
| 18 #include <vector> | 18 #include <vector> |
| 19 | 19 |
| 20 #include "app/gtk_signal.h" | 20 #include "app/gtk_signal.h" |
| 21 #include "app/gtk_signal_registrar.h" | 21 #include "app/gtk_signal_registrar.h" |
| 22 #include "base/basictypes.h" | 22 #include "base/basictypes.h" |
| 23 #include "chrome/common/notification_observer.h" | 23 #include "chrome/common/notification_observer.h" |
| 24 #include "chrome/common/notification_registrar.h" | 24 #include "chrome/common/notification_registrar.h" |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 205 |
| 206 bool closed_by_escape_; | 206 bool closed_by_escape_; |
| 207 | 207 |
| 208 NotificationRegistrar registrar_; | 208 NotificationRegistrar registrar_; |
| 209 | 209 |
| 210 GtkSignalRegistrar signals_; | 210 GtkSignalRegistrar signals_; |
| 211 | 211 |
| 212 DISALLOW_COPY_AND_ASSIGN(InfoBubbleGtk); | 212 DISALLOW_COPY_AND_ASSIGN(InfoBubbleGtk); |
| 213 }; | 213 }; |
| 214 | 214 |
| 215 #endif // CHROME_BROWSER_GTK_INFO_BUBBLE_GTK_H_ | 215 #endif // CHROME_BROWSER_UI_GTK_INFO_BUBBLE_GTK_H_ |
| OLD | NEW |