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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 virtual void BubbleGotFocus(BrowserBubble* bubble); | 76 virtual void BubbleGotFocus(BrowserBubble* bubble); |
77 virtual void BubbleLostFocus(BrowserBubble* bubble, | 77 virtual void BubbleLostFocus(BrowserBubble* bubble, |
78 bool lost_focus_to_child); | 78 bool lost_focus_to_child); |
79 | 79 |
80 // content::NotificationObserver overrides. | 80 // content::NotificationObserver overrides. |
81 virtual void Observe(int type, | 81 virtual void Observe(int type, |
82 const content::NotificationSource& source, | 82 const content::NotificationSource& source, |
83 const content::NotificationDetails& details); | 83 const content::NotificationDetails& details); |
84 | 84 |
85 // ExtensionView::Container overrides. | 85 // ExtensionView::Container overrides. |
| 86 virtual void OnExtensionMouseMove(ExtensionView* view) { } |
| 87 virtual void OnExtensionMouseLeave(ExtensionView* view) { } |
86 virtual void OnExtensionPreferredSizeChanged(ExtensionView* view); | 88 virtual void OnExtensionPreferredSizeChanged(ExtensionView* view); |
87 | 89 |
88 // The min/max height of popups. | 90 // The min/max height of popups. |
89 static const int kMinWidth; | 91 static const int kMinWidth; |
90 static const int kMinHeight; | 92 static const int kMinHeight; |
91 static const int kMaxWidth; | 93 static const int kMaxWidth; |
92 static const int kMaxHeight; | 94 static const int kMaxHeight; |
93 | 95 |
94 private: | 96 private: |
95 ExtensionPopup(Browser* browser, | 97 ExtensionPopup(Browser* browser, |
(...skipping 21 matching lines...) Expand all Loading... |
117 | 119 |
118 content::NotificationRegistrar registrar_; | 120 content::NotificationRegistrar registrar_; |
119 | 121 |
120 // The observer of this popup. | 122 // The observer of this popup. |
121 Observer* observer_; | 123 Observer* observer_; |
122 | 124 |
123 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup); | 125 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup); |
124 }; | 126 }; |
125 | 127 |
126 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ | 128 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ |
OLD | NEW |