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_BROWSER_DIALOGS_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "chrome/browser/ui/bookmarks/bookmark_editor.h" | 10 #include "chrome/browser/ui/bookmarks/bookmark_editor.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 class AuthChallengeInfo; | 40 class AuthChallengeInfo; |
41 class URLRequest; | 41 class URLRequest; |
42 } | 42 } |
43 | 43 |
44 namespace ui { | 44 namespace ui { |
45 class WebDialogDelegate; | 45 class WebDialogDelegate; |
46 } | 46 } |
47 | 47 |
48 namespace chrome { | 48 namespace chrome { |
49 | 49 |
| 50 // Shows or hides the Task Manager. |browser| can be NULL when called from Ash. |
| 51 void ShowTaskManager(Browser* browser); |
| 52 void HideTaskManager(); |
| 53 |
| 54 #if !defined(OS_MACOSX) |
50 // Creates and shows an HTML dialog with the given delegate and context. | 55 // Creates and shows an HTML dialog with the given delegate and context. |
51 // The window is automatically destroyed when it is closed. | 56 // The window is automatically destroyed when it is closed. |
52 // Returns the created window. | 57 // Returns the created window. |
53 // | 58 // |
54 // Make sure to use the returned window only when you know it is safe | 59 // Make sure to use the returned window only when you know it is safe |
55 // to do so, i.e. before OnDialogClosed() is called on the delegate. | 60 // to do so, i.e. before OnDialogClosed() is called on the delegate. |
56 gfx::NativeWindow ShowWebDialog(gfx::NativeView parent, | 61 gfx::NativeWindow ShowWebDialog(gfx::NativeView parent, |
57 content::BrowserContext* context, | 62 content::BrowserContext* context, |
58 ui::WebDialogDelegate* delegate); | 63 ui::WebDialogDelegate* delegate); |
59 | 64 |
60 // Shows or hides the Task Manager. |browser| can be NULL when called from Ash. | |
61 void ShowTaskManager(Browser* browser); | |
62 void HideTaskManager(); | |
63 | |
64 #if !defined(OS_MACOSX) | |
65 // Shows the create web app shortcut dialog box. | 65 // Shows the create web app shortcut dialog box. |
66 void ShowCreateWebAppShortcutsDialog(gfx::NativeWindow parent_window, | 66 void ShowCreateWebAppShortcutsDialog(gfx::NativeWindow parent_window, |
67 content::WebContents* web_contents); | 67 content::WebContents* web_contents); |
68 #endif | 68 #endif |
69 | 69 |
70 // Shows the create chrome app shortcut dialog box. | 70 // Shows the create chrome app shortcut dialog box. |
71 // |close_callback| may be null. | 71 // |close_callback| may be null. |
72 void ShowCreateChromeAppShortcutsDialog( | 72 void ShowCreateChromeAppShortcutsDialog( |
73 gfx::NativeWindow parent_window, | 73 gfx::NativeWindow parent_window, |
74 Profile* profile, | 74 Profile* profile, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleViewsBridge); | 131 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleViewsBridge); |
132 }; | 132 }; |
133 | 133 |
134 #endif // OS_MACOSX | 134 #endif // OS_MACOSX |
135 | 135 |
136 #endif // TOOLKIT_VIEWS | 136 #endif // TOOLKIT_VIEWS |
137 | 137 |
138 } // namespace chrome | 138 } // namespace chrome |
139 | 139 |
140 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 140 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
OLD | NEW |