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_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" | 10 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 // content::NotificationObserver overrides. | 62 // content::NotificationObserver overrides. |
63 virtual void Observe(int type, | 63 virtual void Observe(int type, |
64 const content::NotificationSource& source, | 64 const content::NotificationSource& source, |
65 const content::NotificationDetails& details) OVERRIDE; | 65 const content::NotificationDetails& details) OVERRIDE; |
66 | 66 |
67 // ExtensionViewViews::Container overrides. | 67 // ExtensionViewViews::Container overrides. |
68 virtual void OnExtensionSizeChanged(ExtensionViewViews* view) OVERRIDE; | 68 virtual void OnExtensionSizeChanged(ExtensionViewViews* view) OVERRIDE; |
69 | 69 |
70 // views::View overrides. | 70 // views::View overrides. |
71 virtual gfx::Size GetPreferredSize() OVERRIDE; | 71 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
72 virtual void ViewHierarchyChanged( | 72 virtual void ViewHierarchyChanged( |
73 const ViewHierarchyChangedDetails& details) OVERRIDE; | 73 const ViewHierarchyChangedDetails& details) OVERRIDE; |
74 | 74 |
75 // views::WidgetObserver overrides. | 75 // views::WidgetObserver overrides. |
76 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE; | 76 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE; |
77 virtual void OnWidgetActivationChanged(views::Widget* widget, | 77 virtual void OnWidgetActivationChanged(views::Widget* widget, |
78 bool active) OVERRIDE; | 78 bool active) OVERRIDE; |
79 | 79 |
80 // aura::client::ActivationChangeObserver overrides. | 80 // aura::client::ActivationChangeObserver overrides. |
81 virtual void OnWindowActivated(aura::Window* gained_active, | 81 virtual void OnWindowActivated(aura::Window* gained_active, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 content::NotificationRegistrar registrar_; | 114 content::NotificationRegistrar registrar_; |
115 | 115 |
116 base::Callback<void(content::DevToolsAgentHost*, bool)> devtools_callback_; | 116 base::Callback<void(content::DevToolsAgentHost*, bool)> devtools_callback_; |
117 | 117 |
118 bool widget_initialized_; | 118 bool widget_initialized_; |
119 | 119 |
120 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup); | 120 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup); |
121 }; | 121 }; |
122 | 122 |
123 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ | 123 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ |
OLD | NEW |