OLD | NEW |
1 // Copyright (c) 2011 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 #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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 bool match_system_theme, | 70 bool match_system_theme, |
71 bool grab_input, | 71 bool grab_input, |
72 GtkThemeService* provider, | 72 GtkThemeService* provider, |
73 BubbleDelegateGtk* delegate); | 73 BubbleDelegateGtk* delegate); |
74 | 74 |
75 // Close the bubble if it's open. This will delete the widgets and object, | 75 // Close the bubble if it's open. This will delete the widgets and object, |
76 // so you shouldn't hold a BubbleGtk pointer after calling Close(). | 76 // so you shouldn't hold a BubbleGtk pointer after calling Close(). |
77 void Close(); | 77 void Close(); |
78 | 78 |
79 // NotificationObserver implementation. | 79 // NotificationObserver implementation. |
80 virtual void Observe(NotificationType type, | 80 virtual void Observe(int type, |
81 const NotificationSource& source, | 81 const NotificationSource& source, |
82 const NotificationDetails& details) OVERRIDE; | 82 const NotificationDetails& details) OVERRIDE; |
83 | 83 |
84 // If the content contains widgets that can steal our pointer and keyboard | 84 // If the content contains widgets that can steal our pointer and keyboard |
85 // grabs (e.g. GtkComboBox), this method should be called after a widget | 85 // grabs (e.g. GtkComboBox), this method should be called after a widget |
86 // releases the grabs so we can reacquire them. Note that this causes a race | 86 // releases the grabs so we can reacquire them. Note that this causes a race |
87 // condition; another client could grab them before we do (ideally, GDK would | 87 // condition; another client could grab them before we do (ideally, GDK would |
88 // transfer the grabs back to us when the widget releases them). The window | 88 // transfer the grabs back to us when the widget releases them). The window |
89 // is small, though, and the worst-case scenario for this seems to just be | 89 // is small, though, and the worst-case scenario for this seems to just be |
90 // that the content's widgets will appear inactive even after the user clicks | 90 // that the content's widgets will appear inactive even after the user clicks |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 bool closed_by_escape_; | 207 bool closed_by_escape_; |
208 | 208 |
209 NotificationRegistrar registrar_; | 209 NotificationRegistrar registrar_; |
210 | 210 |
211 ui::GtkSignalRegistrar signals_; | 211 ui::GtkSignalRegistrar signals_; |
212 | 212 |
213 DISALLOW_COPY_AND_ASSIGN(BubbleGtk); | 213 DISALLOW_COPY_AND_ASSIGN(BubbleGtk); |
214 }; | 214 }; |
215 | 215 |
216 #endif // CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_ | 216 #endif // CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_ |
OLD | NEW |