| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/extensions/extension_host.h" | 10 #include "chrome/browser/extensions/extension_host.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 bool inspect_with_devtools); | 43 bool inspect_with_devtools); |
| 44 | 44 |
| 45 ExtensionHost* host() const { return extension_host_.get(); } | 45 ExtensionHost* host() const { return extension_host_.get(); } |
| 46 | 46 |
| 47 // content::NotificationObserver overrides. | 47 // content::NotificationObserver overrides. |
| 48 virtual void Observe(int type, | 48 virtual void Observe(int type, |
| 49 const content::NotificationSource& source, | 49 const content::NotificationSource& source, |
| 50 const content::NotificationDetails& details) OVERRIDE; | 50 const content::NotificationDetails& details) OVERRIDE; |
| 51 | 51 |
| 52 // ExtensionView::Container overrides. | 52 // ExtensionView::Container overrides. |
| 53 virtual void OnExtensionPreferredSizeChanged(ExtensionView* view) OVERRIDE; | 53 virtual void OnExtensionSizeChanged(ExtensionView* view) OVERRIDE; |
| 54 | 54 |
| 55 // views::View overrides. | 55 // views::View overrides. |
| 56 virtual gfx::Size GetPreferredSize() OVERRIDE; | 56 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 57 | 57 |
| 58 // views::WidgetFocusChangeListener overrides. | 58 // views::WidgetFocusChangeListener overrides. |
| 59 virtual void OnNativeFocusChange(gfx::NativeView focused_before, | 59 virtual void OnNativeFocusChange(gfx::NativeView focused_before, |
| 60 gfx::NativeView focused_now) OVERRIDE; | 60 gfx::NativeView focused_now) OVERRIDE; |
| 61 | 61 |
| 62 // The min/max height of popups. | 62 // The min/max height of popups. |
| 63 static const int kMinWidth; | 63 static const int kMinWidth; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 85 bool inspect_with_devtools_; | 85 bool inspect_with_devtools_; |
| 86 | 86 |
| 87 content::NotificationRegistrar registrar_; | 87 content::NotificationRegistrar registrar_; |
| 88 | 88 |
| 89 base::WeakPtrFactory<ExtensionPopup> close_bubble_factory_; | 89 base::WeakPtrFactory<ExtensionPopup> close_bubble_factory_; |
| 90 | 90 |
| 91 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup); | 91 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup); |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ | 94 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ |
| OLD | NEW |