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 "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED. | 9 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED. |
10 #include "third_party/skia/include/core/SkColor.h" | 10 #include "third_party/skia/include/core/SkColor.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void ShowExtensionInstalledBubble(const extensions::Extension* extension, | 61 void ShowExtensionInstalledBubble(const extensions::Extension* extension, |
62 Browser* browser, | 62 Browser* browser, |
63 const SkBitmap& icon); | 63 const SkBitmap& icon); |
64 | 64 |
65 // Shows or hide the hung renderer dialog for the given WebContents. | 65 // Shows or hide the hung renderer dialog for the given WebContents. |
66 // We need to pass the WebContents to the dialog, because multiple tabs can hang | 66 // We need to pass the WebContents to the dialog, because multiple tabs can hang |
67 // and it needs to keep track of which tabs are currently hung. | 67 // and it needs to keep track of which tabs are currently hung. |
68 void ShowHungRendererDialog(content::WebContents* contents); | 68 void ShowHungRendererDialog(content::WebContents* contents); |
69 void HideHungRendererDialog(content::WebContents* contents); | 69 void HideHungRendererDialog(content::WebContents* contents); |
70 | 70 |
71 // Shows the Task Manager. If |highlight_background_resources| is set, the | 71 // Shows the Task Manager. |browser| can be NULL when called from Ash. |
72 // backgroundpages will be shown. |browser| can be NULL when called from ASH. | 72 void ShowTaskManager(Browser* browser); |
73 void ShowTaskManager(Browser* browser, bool highlight_background_resources); | |
74 | 73 |
75 #if !defined(OS_MACOSX) | 74 #if !defined(OS_MACOSX) |
76 // Shows the create web app shortcut dialog box. | 75 // Shows the create web app shortcut dialog box. |
77 void ShowCreateWebAppShortcutsDialog(gfx::NativeWindow parent_window, | 76 void ShowCreateWebAppShortcutsDialog(gfx::NativeWindow parent_window, |
78 content::WebContents* web_contents); | 77 content::WebContents* web_contents); |
79 #endif | 78 #endif |
80 | 79 |
81 // Shows a color chooser that reports to the given WebContents. | 80 // Shows a color chooser that reports to the given WebContents. |
82 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents, | 81 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents, |
83 SkColor initial_color); | 82 SkColor initial_color); |
84 | 83 |
85 void ShowProfileSigninConfirmationDialog( | 84 void ShowProfileSigninConfirmationDialog( |
86 Browser* browser, | 85 Browser* browser, |
87 content::WebContents* web_contents, | 86 content::WebContents* web_contents, |
88 Profile* profile, | 87 Profile* profile, |
89 const std::string& username, | 88 const std::string& username, |
90 ui::ProfileSigninConfirmationDelegate* delegate); | 89 ui::ProfileSigninConfirmationDelegate* delegate); |
91 | 90 |
92 } // namespace chrome | 91 } // namespace chrome |
93 | 92 |
94 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 93 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
OLD | NEW |