BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / ui / extensions / application_launch.h
blob63a331e7fd7387eee8ce731d0039941552fbc091
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"
9 #include "url/gurl.h"
11 class Profile;
13 namespace content {
14 class WebContents;
17 namespace extensions {
18 class Extension;
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,
33 const GURL& url);
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_