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/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // Use Show() to create instances. | 90 // Use Show() to create instances. |
91 ExtensionDialog(extensions::ExtensionViewHost* host, | 91 ExtensionDialog(extensions::ExtensionViewHost* host, |
92 ExtensionDialogObserver* observer); | 92 ExtensionDialogObserver* observer); |
93 | 93 |
94 void InitWindow(gfx::NativeWindow parent_window, int width, int height); | 94 void InitWindow(gfx::NativeWindow parent_window, int width, int height); |
95 | 95 |
96 // Window Title | 96 // Window Title |
97 base::string16 window_title_; | 97 base::string16 window_title_; |
98 | 98 |
99 // The contained host for the view. | 99 // The contained host for the view. |
100 scoped_ptr<extensions::ExtensionViewHost> host_; | 100 std::unique_ptr<extensions::ExtensionViewHost> host_; |
101 | 101 |
102 content::NotificationRegistrar registrar_; | 102 content::NotificationRegistrar registrar_; |
103 | 103 |
104 // The observer of this popup. | 104 // The observer of this popup. |
105 ExtensionDialogObserver* observer_; | 105 ExtensionDialogObserver* observer_; |
106 | 106 |
107 DISALLOW_COPY_AND_ASSIGN(ExtensionDialog); | 107 DISALLOW_COPY_AND_ASSIGN(ExtensionDialog); |
108 }; | 108 }; |
109 | 109 |
110 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ | 110 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ |
OLD | NEW |