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 17 matching lines...) Expand all Loading... |
28 GtkWidget* anchor, | 28 GtkWidget* anchor, |
29 bool inspect); | 29 bool inspect); |
30 virtual ~ExtensionPopupGtk(); | 30 virtual ~ExtensionPopupGtk(); |
31 | 31 |
32 static void Show(const GURL& url, | 32 static void Show(const GURL& url, |
33 Browser* browser, | 33 Browser* browser, |
34 GtkWidget* anchor, | 34 GtkWidget* anchor, |
35 bool inspect); | 35 bool inspect); |
36 | 36 |
37 // NotificationObserver implementation. | 37 // NotificationObserver implementation. |
38 virtual void Observe(NotificationType type, | 38 virtual void Observe(int type, |
39 const NotificationSource& source, | 39 const NotificationSource& source, |
40 const NotificationDetails& details) OVERRIDE; | 40 const 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(ExtensionViewGtk* view, | 47 virtual void OnExtensionPreferredSizeChanged(ExtensionViewGtk* view, |
48 const gfx::Size& new_size); | 48 const gfx::Size& new_size); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 // Used for testing. --------------------------------------------------------- | 93 // Used for testing. --------------------------------------------------------- |
94 gfx::Rect GetViewBounds(); | 94 gfx::Rect GetViewBounds(); |
95 | 95 |
96 friend class BrowserActionTestUtil; | 96 friend class BrowserActionTestUtil; |
97 | 97 |
98 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupGtk); | 98 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupGtk); |
99 }; | 99 }; |
100 | 100 |
101 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_POPUP_GTK_H_ | 101 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_POPUP_GTK_H_ |
OLD | NEW |