| 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_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/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "chrome/browser/extensions/extension_host.h" | 10 #include "chrome/browser/extensions/extension_host.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 virtual void BubbleGotFocus(BrowserBubble* bubble); | 81 virtual void BubbleGotFocus(BrowserBubble* bubble); |
| 82 virtual void BubbleLostFocus(BrowserBubble* bubble, | 82 virtual void BubbleLostFocus(BrowserBubble* bubble, |
| 83 bool lost_focus_to_child); | 83 bool lost_focus_to_child); |
| 84 | 84 |
| 85 // content::NotificationObserver overrides. | 85 // content::NotificationObserver overrides. |
| 86 virtual void Observe(int type, | 86 virtual void Observe(int type, |
| 87 const content::NotificationSource& source, | 87 const content::NotificationSource& source, |
| 88 const content::NotificationDetails& details); | 88 const content::NotificationDetails& details); |
| 89 | 89 |
| 90 // ExtensionView::Container overrides. | 90 // ExtensionView::Container overrides. |
| 91 virtual void OnExtensionMouseMove(ExtensionView* view) { } | |
| 92 virtual void OnExtensionMouseLeave(ExtensionView* view) { } | |
| 93 virtual void OnExtensionPreferredSizeChanged(ExtensionView* view); | 91 virtual void OnExtensionPreferredSizeChanged(ExtensionView* view); |
| 94 | 92 |
| 95 // The min/max height of popups. | 93 // The min/max height of popups. |
| 96 static const int kMinWidth; | 94 static const int kMinWidth; |
| 97 static const int kMinHeight; | 95 static const int kMinHeight; |
| 98 static const int kMaxWidth; | 96 static const int kMaxWidth; |
| 99 static const int kMaxHeight; | 97 static const int kMaxHeight; |
| 100 | 98 |
| 101 private: | 99 private: |
| 102 ExtensionPopup(Browser* browser, | 100 ExtensionPopup(Browser* browser, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 124 | 122 |
| 125 content::NotificationRegistrar registrar_; | 123 content::NotificationRegistrar registrar_; |
| 126 | 124 |
| 127 // The observer of this popup. | 125 // The observer of this popup. |
| 128 Observer* observer_; | 126 Observer* observer_; |
| 129 | 127 |
| 130 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup); | 128 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup); |
| 131 }; | 129 }; |
| 132 | 130 |
| 133 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ | 131 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ |
| OLD | NEW |