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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
91 // in them. | 91 // in them. |
92 void HandlePointerAndKeyboardUngrabbedByContent(); | 92 void HandlePointerAndKeyboardUngrabbedByContent(); |
93 | 93 |
94 private: | 94 private: |
95 enum FrameType { | 95 enum FrameType { |
96 FRAME_MASK, | 96 FRAME_MASK, |
97 FRAME_STROKE, | 97 FRAME_STROKE, |
98 }; | 98 }; |
99 | 99 |
100 explicit BubbleGtk(GtkThemeService* provider, bool match_system_theme); | 100 BubbleGtk(GtkThemeService* provider, bool match_system_theme); |
101 virtual ~BubbleGtk(); | 101 virtual ~BubbleGtk(); |
102 | 102 |
103 // Creates the Bubble. | 103 // Creates the Bubble. |
104 void Init(GtkWidget* anchor_widget, | 104 void Init(GtkWidget* anchor_widget, |
105 const gfx::Rect* rect, | 105 const gfx::Rect* rect, |
106 GtkWidget* content, | 106 GtkWidget* content, |
107 ArrowLocationGtk arrow_location, | 107 ArrowLocationGtk arrow_location, |
108 bool grab_input); | 108 bool grab_input); |
109 | 109 |
110 // Make the points for our polygon frame, either for fill (the mask), or for | 110 // Make the points for our polygon frame, either for fill (the mask), or for |
(...skipping 96 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 |