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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_
6 #define CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_
8 #include "chrome/browser/ui/extensions/app_launch_params.h"
17 namespace extensions
{
21 // Opens the application, possibly prompting the user to re-enable it.
22 void OpenApplicationWithReenablePrompt(const AppLaunchParams
& params
);
24 // Open the application in a way specified by |params|.
25 content::WebContents
* OpenApplication(const AppLaunchParams
& params
);
27 // Open |url| in an app shortcut window.
28 // There are two kinds of app shortcuts: Shortcuts to a URL,
29 // and shortcuts that open an installed application. This function
30 // is used to open the former. To open the latter, use
31 // application_launch::OpenApplication().
32 content::WebContents
* OpenAppShortcutWindow(Profile
* profile
,
35 // Whether the extension can be launched by sending a
36 // chrome.app.runtime.onLaunched event.
37 bool CanLaunchViaEvent(const extensions::Extension
* extension
);
39 #endif // CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_