Chromium Code Reviews| 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 "chrome/browser/profiles/profile_window.h" | 9 #include "chrome/browser/profiles/profile_window.h" |
| 10 #include "content/public/common/signed_certificate_timestamp_id_and_status.h" | 10 #include "content/public/common/signed_certificate_timestamp_id_and_status.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 | 66 |
| 67 // Shows or hide the hung renderer dialog for the given WebContents. | 67 // Shows or hide the hung renderer dialog for the given WebContents. |
| 68 // We need to pass the WebContents to the dialog, because multiple tabs can hang | 68 // We need to pass the WebContents to the dialog, because multiple tabs can hang |
| 69 // and it needs to keep track of which tabs are currently hung. | 69 // and it needs to keep track of which tabs are currently hung. |
| 70 void ShowHungRendererDialog(content::WebContents* contents); | 70 void ShowHungRendererDialog(content::WebContents* contents); |
| 71 void HideHungRendererDialog(content::WebContents* contents); | 71 void HideHungRendererDialog(content::WebContents* contents); |
| 72 | 72 |
| 73 // Shows the Task Manager. |browser| can be NULL when called from Ash. | 73 // Shows the Task Manager. |browser| can be NULL when called from Ash. |
| 74 void ShowTaskManager(Browser* browser); | 74 void ShowTaskManager(Browser* browser); |
| 75 | 75 |
| 76 #if !defined(OS_MACOSX) | |
| 77 // Shows the create web app shortcut dialog box. | |
| 78 void ShowCreateWebAppShortcutsDialog(gfx::NativeWindow parent_window, | |
| 79 content::WebContents* web_contents); | |
| 80 #endif | |
| 81 | |
| 82 // Shows the create chrome app shortcut dialog box. | 76 // Shows the create chrome app shortcut dialog box. |
| 83 // On Mac, this creates a shortcut without prompting. | 77 // On Mac, this creates a shortcut without prompting. |
| 84 // |close_callback| may be null. | 78 // |close_callback| may be null. |
| 85 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window, | 79 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window, |
| 86 Profile* profile, | 80 Profile* profile, |
| 87 const extensions::Extension* app, | 81 const extensions::Extension* app, |
| 88 const base::Closure& close_callback); | 82 const base::Closure& close_callback); |
| 89 | 83 |
| 90 // Shows a color chooser that reports to the given WebContents. | 84 // Shows a color chooser that reports to the given WebContents. |
| 91 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents, | 85 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents, |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 107 | 101 |
| 108 // Hides the User Manager. | 102 // Hides the User Manager. |
| 109 void HideUserManager(); | 103 void HideUserManager(); |
| 110 | 104 |
| 111 // Shows the Signed Certificate Timestamps viewer, to view the signed | 105 // Shows the Signed Certificate Timestamps viewer, to view the signed |
| 112 // certificate timestamps in |sct_ids_list| | 106 // certificate timestamps in |sct_ids_list| |
| 113 void ShowSignedCertificateTimestampsViewer( | 107 void ShowSignedCertificateTimestampsViewer( |
| 114 content::WebContents* web_contents, | 108 content::WebContents* web_contents, |
| 115 const content::SignedCertificateTimestampIDStatusList& sct_ids_list); | 109 const content::SignedCertificateTimestampIDStatusList& sct_ids_list); |
| 116 | 110 |
| 111 #if !defined(OS_MACOSX) | |
| 112 // Shows the create web app shortcut dialog box. | |
| 113 void ShowCreateWebAppShortcutsDialog(gfx::NativeWindow parent_window, | |
| 114 content::WebContents* web_contents); | |
|
Peter Kasting
2014/04/28 20:07:15
Nit: Don't move this block down here just to share
Mike West
2014/04/29 06:47:18
Done.
| |
| 115 | |
| 116 // Shows the ManagePasswords bubble for a particular |web_contents|. | |
| 117 // | |
| 118 // TODO(mkwst): Implement this feature on Mac: http://crbug.com/261628 | |
| 119 void ShowManagePasswordsBubble(content::WebContents* web_contents); | |
| 120 #endif | |
| 121 | |
| 117 } // namespace chrome | 122 } // namespace chrome |
| 118 | 123 |
| 119 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 124 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
| OLD | NEW |