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_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 ExtensionDialogObserver* observer); | 94 ExtensionDialogObserver* observer); |
95 | 95 |
96 static ExtensionDialog* ShowInternal(const GURL& url, | 96 static ExtensionDialog* ShowInternal(const GURL& url, |
97 ui::BaseWindow* base_window, | 97 ui::BaseWindow* base_window, |
98 extensions::ExtensionHost* host, | 98 extensions::ExtensionHost* host, |
99 int width, | 99 int width, |
100 int height, | 100 int height, |
101 const string16& title, | 101 const string16& title, |
102 ExtensionDialogObserver* observer); | 102 ExtensionDialogObserver* observer); |
103 | 103 |
104 static extensions::ExtensionHost* CreateExtensionHost(const GURL& url, | |
105 Profile* profile); | |
106 | |
107 void InitWindow(ui::BaseWindow* base_window, int width, int height); | 104 void InitWindow(ui::BaseWindow* base_window, int width, int height); |
108 | 105 |
109 // Window Title | 106 // Window Title |
110 string16 window_title_; | 107 string16 window_title_; |
111 | 108 |
112 // The contained host for the view. | 109 // The contained host for the view. |
113 scoped_ptr<extensions::ExtensionHost> extension_host_; | 110 scoped_ptr<extensions::ExtensionHost> extension_host_; |
114 | 111 |
115 content::NotificationRegistrar registrar_; | 112 content::NotificationRegistrar registrar_; |
116 | 113 |
117 // The observer of this popup. | 114 // The observer of this popup. |
118 ExtensionDialogObserver* observer_; | 115 ExtensionDialogObserver* observer_; |
119 | 116 |
120 DISALLOW_COPY_AND_ASSIGN(ExtensionDialog); | 117 DISALLOW_COPY_AND_ASSIGN(ExtensionDialog); |
121 }; | 118 }; |
122 | 119 |
123 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ | 120 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ |
OLD | NEW |