| 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_EXTENSIONS_EXTENSION_POPUP_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_POPUP_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_POPUP_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_POPUP_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // content::NotificationObserver implementation. | 37 // content::NotificationObserver implementation. |
| 38 virtual void Observe(int type, | 38 virtual void Observe(int type, |
| 39 const content::NotificationSource& source, | 39 const content::NotificationSource& source, |
| 40 const content::NotificationDetails& details) OVERRIDE; | 40 const content::NotificationDetails& details) OVERRIDE; |
| 41 | 41 |
| 42 // BubbleDelegateGtk implementation. | 42 // BubbleDelegateGtk implementation. |
| 43 virtual void BubbleClosing(BubbleGtk* bubble, | 43 virtual void BubbleClosing(BubbleGtk* bubble, |
| 44 bool closed_by_escape) OVERRIDE; | 44 bool closed_by_escape) OVERRIDE; |
| 45 | 45 |
| 46 // ExtensionViewGtk::Container implementation. | 46 // ExtensionViewGtk::Container implementation. |
| 47 virtual void OnExtensionPreferredSizeChanged( | 47 virtual void OnExtensionSizeChanged( |
| 48 ExtensionViewGtk* view, | 48 ExtensionViewGtk* view, |
| 49 const gfx::Size& new_size) OVERRIDE; | 49 const gfx::Size& new_size) OVERRIDE; |
| 50 | 50 |
| 51 // Destroys the popup widget. This will in turn destroy us since we delete | 51 // Destroys the popup widget. This will in turn destroy us since we delete |
| 52 // ourselves when the bubble closes. Returns true if we successfully | 52 // ourselves when the bubble closes. Returns true if we successfully |
| 53 // closed the bubble. | 53 // closed the bubble. |
| 54 bool DestroyPopup(); | 54 bool DestroyPopup(); |
| 55 | 55 |
| 56 // Get the currently showing extension popup, or NULL. | 56 // Get the currently showing extension popup, or NULL. |
| 57 static ExtensionPopupGtk* get_current_extension_popup() { | 57 static ExtensionPopupGtk* get_current_extension_popup() { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 // Used for testing. --------------------------------------------------------- | 99 // Used for testing. --------------------------------------------------------- |
| 100 gfx::Rect GetViewBounds(); | 100 gfx::Rect GetViewBounds(); |
| 101 | 101 |
| 102 friend class BrowserActionTestUtil; | 102 friend class BrowserActionTestUtil; |
| 103 | 103 |
| 104 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupGtk); | 104 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupGtk); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_POPUP_GTK_H_ | 107 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_POPUP_GTK_H_ |
| OLD | NEW |