| 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 <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 #if defined(USE_ASH) | 90 #if defined(USE_ASH) |
| 91 // Creates and shows an HTML dialog with the given delegate and browser context. | 91 // Creates and shows an HTML dialog with the given delegate and browser context. |
| 92 // The dialog is placed in the ash window hierarchy in the given container. | 92 // The dialog is placed in the ash window hierarchy in the given container. |
| 93 // See ash/public/cpp/shell_window_ids.h for |container_id| values. The window | 93 // See ash/public/cpp/shell_window_ids.h for |container_id| values. The window |
| 94 // is destroyed when it is closed. See also chrome::ShowWebDialog(). | 94 // is destroyed when it is closed. See also chrome::ShowWebDialog(). |
| 95 void ShowWebDialogInContainer(int container_id, | 95 void ShowWebDialogInContainer(int container_id, |
| 96 content::BrowserContext* context, | 96 content::BrowserContext* context, |
| 97 ui::WebDialogDelegate* delegate); | 97 ui::WebDialogDelegate* delegate); |
| 98 #endif // defined(USE_ASH) | 98 #endif // defined(USE_ASH) |
| 99 | 99 |
| 100 #if !defined(OS_MACOSX) | |
| 101 // Shows the create web app shortcut dialog box. | |
| 102 void ShowCreateWebAppShortcutsDialog(gfx::NativeWindow parent_window, | |
| 103 content::WebContents* web_contents); | |
| 104 #endif // !defined(OS_MACOSX) | |
| 105 | |
| 106 // Shows the create chrome app shortcut dialog box. | 100 // Shows the create chrome app shortcut dialog box. |
| 107 // |close_callback| may be null. | 101 // |close_callback| may be null. |
| 108 void ShowCreateChromeAppShortcutsDialog( | 102 void ShowCreateChromeAppShortcutsDialog( |
| 109 gfx::NativeWindow parent_window, | 103 gfx::NativeWindow parent_window, |
| 110 Profile* profile, | 104 Profile* profile, |
| 111 const extensions::Extension* app, | 105 const extensions::Extension* app, |
| 112 const base::Callback<void(bool /* created */)>& close_callback); | 106 const base::Callback<void(bool /* created */)>& close_callback); |
| 113 | 107 |
| 114 // Shows a color chooser that reports to the given WebContents. | 108 // Shows a color chooser that reports to the given WebContents. |
| 115 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents, | 109 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents, |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 using BubbleShowPtr = | 197 using BubbleShowPtr = |
| 204 void (*)(content::WebContents*, | 198 void (*)(content::WebContents*, |
| 205 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, | 199 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, |
| 206 const IntentPickerResponse&); | 200 const IntentPickerResponse&); |
| 207 | 201 |
| 208 BubbleShowPtr ShowIntentPickerBubble(); | 202 BubbleShowPtr ShowIntentPickerBubble(); |
| 209 | 203 |
| 210 #endif // OS_CHROMEOS | 204 #endif // OS_CHROMEOS |
| 211 | 205 |
| 212 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 206 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
| OLD | NEW |