Index: chrome/browser/ui/browser_dialogs.h |
diff --git a/chrome/browser/ui/browser_dialogs.h b/chrome/browser/ui/browser_dialogs.h |
index 6207ab0a1d6fcbfc79063a5ed919f53e708bf4e0..515ffe95ed906030081adad7bd86e27316e4f01d 100644 |
--- a/chrome/browser/ui/browser_dialogs.h |
+++ b/chrome/browser/ui/browser_dialogs.h |
@@ -25,6 +25,7 @@ class Browser; |
class GURL; |
class LoginHandler; |
class Profile; |
+struct WebApplicationInfo; |
namespace content { |
class BrowserContext; |
@@ -102,6 +103,21 @@ void ShowCreateChromeAppShortcutsDialog( |
const extensions::Extension* app, |
const base::Callback<void(bool /* created */)>& close_callback); |
+// Callback type used with the ShowBookmarkAppDialog() method. The boolean |
+// parameter is true when the user accepts the dialog. The WebApplicationInfo |
+// parameter contains the WebApplicationInfo as edited by the user. |
+typedef base::Callback<void(bool, const WebApplicationInfo&)> |
sky
2017/06/07 16:27:43
typedef->using and OnceCallback.
tapted
2017/06/08 01:52:31
Done.
|
+ ShowBookmarkAppDialogCallback; |
+ |
+// Shows the Bookmark App bubble. |
+// See Extension::InitFromValueFlags::FROM_BOOKMARK for a description of |
+// bookmark apps. |
+// |
+// |web_app_info| is the WebApplicationInfo being converted into an app. |
+void ShowBookmarkAppDialog(gfx::NativeWindow parent_window, |
+ const WebApplicationInfo& web_app_info, |
+ const ShowBookmarkAppDialogCallback& callback); |
+ |
// Shows a color chooser that reports to the given WebContents. |
content::ColorChooser* ShowColorChooser(content::WebContents* web_contents, |
SkColor initial_color); |