| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 GtkWidget* content, | 85 GtkWidget* content, |
| 86 FrameStyle frame_style, | 86 FrameStyle frame_style, |
| 87 int attribute_flags, | 87 int attribute_flags, |
| 88 GtkThemeService* provider, | 88 GtkThemeService* provider, |
| 89 BubbleDelegateGtk* delegate); | 89 BubbleDelegateGtk* delegate); |
| 90 | 90 |
| 91 // Close the bubble if it's open. This will delete the widgets and object, | 91 // Close the bubble if it's open. This will delete the widgets and object, |
| 92 // so you shouldn't hold a BubbleGtk pointer after calling Close(). | 92 // so you shouldn't hold a BubbleGtk pointer after calling Close(). |
| 93 void Close(); | 93 void Close(); |
| 94 | 94 |
| 95 // Move the window to the new anchor rectangle. |
| 96 void SetPositionRelativeToAnchor(const gfx::Rect* rect); |
| 97 |
| 95 // content::NotificationObserver implementation. | 98 // content::NotificationObserver implementation. |
| 96 virtual void Observe(int type, | 99 virtual void Observe(int type, |
| 97 const content::NotificationSource& source, | 100 const content::NotificationSource& source, |
| 98 const content::NotificationDetails& details) OVERRIDE; | 101 const content::NotificationDetails& details) OVERRIDE; |
| 99 | 102 |
| 100 // Change an input-grabbing bubble into a non-input-grabbing bubble. This | 103 // Change an input-grabbing bubble into a non-input-grabbing bubble. This |
| 101 // allows a window to change from auto closing when it loses to focus to being | 104 // allows a window to change from auto closing when it loses to focus to being |
| 102 // a window that does not auto close, and is useful if an auto closing window | 105 // a window that does not auto close, and is useful if an auto closing window |
| 103 // starts being inspected. | 106 // starts being inspected. |
| 104 void StopGrabbingInput(); | 107 void StopGrabbingInput(); |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 bool closed_by_escape_; | 240 bool closed_by_escape_; |
| 238 | 241 |
| 239 content::NotificationRegistrar registrar_; | 242 content::NotificationRegistrar registrar_; |
| 240 | 243 |
| 241 ui::GtkSignalRegistrar signals_; | 244 ui::GtkSignalRegistrar signals_; |
| 242 | 245 |
| 243 DISALLOW_COPY_AND_ASSIGN(BubbleGtk); | 246 DISALLOW_COPY_AND_ASSIGN(BubbleGtk); |
| 244 }; | 247 }; |
| 245 | 248 |
| 246 #endif // CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_ | 249 #endif // CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_ |
| OLD | NEW |