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_BROWSER_DIALOGS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "ui/gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
12 | 12 |
13 // This file contains functions for running a variety of browser dialogs and | 13 // This file contains functions for running a variety of browser dialogs and |
14 // popups. The dialogs here are the ones that the caller does not need to | 14 // popups. The dialogs here are the ones that the caller does not need to |
15 // access the class of the popup. It allows us to break dependencies by | 15 // access the class of the popup. It allows us to break dependencies by |
16 // allowing the callers to not depend on the classes implementing the dialogs. | 16 // allowing the callers to not depend on the classes implementing the dialogs. |
17 // TODO: Make as many of these methods as possible cross platform, and move them | 17 // TODO: Make as many of these methods as possible cross platform, and move them |
18 // into chrome/browser/ui/browser_dialogs.h. | 18 // into chrome/browser/ui/browser_dialogs.h. |
19 | 19 |
20 class BrowserView; | 20 class BrowserView; |
21 class EditSearchEngineControllerDelegate; | 21 class EditSearchEngineControllerDelegate; |
22 class Extension; | |
23 class FindBar; | 22 class FindBar; |
24 class GURL; | 23 class GURL; |
25 class Profile; | 24 class Profile; |
26 class TabContentsWrapper; | 25 class TabContentsWrapper; |
27 class TemplateURL; | 26 class TemplateURL; |
28 | 27 |
29 namespace content { | 28 namespace content { |
30 struct SSLStatus; | 29 struct SSLStatus; |
31 } | 30 } |
32 | 31 |
| 32 namespace extensions { |
| 33 class Extension; |
| 34 } |
| 35 |
33 namespace gfx { | 36 namespace gfx { |
34 class Size; | 37 class Size; |
35 } | 38 } |
36 | 39 |
37 namespace views { | 40 namespace views { |
38 class View; | 41 class View; |
39 class Widget; | 42 class Widget; |
40 } | 43 } |
41 | 44 |
42 namespace browser { | 45 namespace browser { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 EditSearchEngineControllerDelegate* delegate, | 87 EditSearchEngineControllerDelegate* delegate, |
85 Profile* profile); | 88 Profile* profile); |
86 | 89 |
87 // Shows the create web app shortcut dialog box. | 90 // Shows the create web app shortcut dialog box. |
88 void ShowCreateWebAppShortcutsDialog(gfx::NativeWindow parent_window, | 91 void ShowCreateWebAppShortcutsDialog(gfx::NativeWindow parent_window, |
89 TabContentsWrapper* tab_contents); | 92 TabContentsWrapper* tab_contents); |
90 | 93 |
91 // Shows the create chrome app shortcut dialog box. | 94 // Shows the create chrome app shortcut dialog box. |
92 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window, | 95 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window, |
93 Profile* profile, | 96 Profile* profile, |
94 const Extension* app); | 97 const extensions::Extension* app); |
95 | 98 |
96 } // namespace browser | 99 } // namespace browser |
97 | 100 |
98 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ | 101 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ |
OLD | NEW |