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) { } | |
88 virtual void OnExtensionPreferredSizeChanged(ExtensionView* view); | 86 virtual void OnExtensionPreferredSizeChanged(ExtensionView* view); |
89 | 87 |
90 // The min/max height of popups. | 88 // The min/max height of popups. |
91 static const int kMinWidth; | 89 static const int kMinWidth; |
92 static const int kMinHeight; | 90 static const int kMinHeight; |
93 static const int kMaxWidth; | 91 static const int kMaxWidth; |
94 static const int kMaxHeight; | 92 static const int kMaxHeight; |
95 | 93 |
96 private: | 94 private: |
97 ExtensionPopup(Browser* browser, | 95 ExtensionPopup(Browser* browser, |
(...skipping 21 matching lines...) Expand all Loading... |
119 | 117 |
120 content::NotificationRegistrar registrar_; | 118 content::NotificationRegistrar registrar_; |
121 | 119 |
122 // The observer of this popup. | 120 // The observer of this popup. |
123 Observer* observer_; | 121 Observer* observer_; |
124 | 122 |
125 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup); | 123 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup); |
126 }; | 124 }; |
127 | 125 |
128 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ | 126 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ |
OLD | NEW |