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" |
11 #include "chrome/browser/ui/views/browser_bubble.h" | 11 #include "chrome/browser/ui/views/browser_bubble.h" |
12 #include "chrome/browser/ui/views/extensions/extension_view.h" | 12 #include "chrome/browser/ui/views/extensions/extension_view.h" |
13 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
15 #include "views/bubble/bubble_border.h" | 15 #include "views/bubble/bubble_border.h" |
16 | 16 |
17 | 17 |
18 class Browser; | 18 class Browser; |
19 class ExtensionHost; | 19 class ExtensionHost; |
20 class Profile; | |
21 | |
22 namespace views { | |
23 class Widget; | |
24 } | |
25 | 20 |
26 class ExtensionPopup : public BrowserBubble, | 21 class ExtensionPopup : public BrowserBubble, |
27 public BrowserBubble::Delegate, | 22 public BrowserBubble::Delegate, |
28 public ExtensionView::Container, | 23 public ExtensionView::Container, |
29 public content::NotificationObserver, | 24 public content::NotificationObserver, |
30 public base::RefCounted<ExtensionPopup> { | 25 public base::RefCounted<ExtensionPopup> { |
31 public: | 26 public: |
32 // Observer to ExtensionPopup events. | 27 // Observer to ExtensionPopup events. |
33 class Observer { | 28 class Observer { |
34 public: | 29 public: |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 119 |
125 content::NotificationRegistrar registrar_; | 120 content::NotificationRegistrar registrar_; |
126 | 121 |
127 // The observer of this popup. | 122 // The observer of this popup. |
128 Observer* observer_; | 123 Observer* observer_; |
129 | 124 |
130 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup); | 125 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup); |
131 }; | 126 }; |
132 | 127 |
133 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ | 128 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ |
OLD | NEW |