Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: chrome/browser/ui/extensions/application_launch.h

Issue 544813002: Support V1 app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comment Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_EXTENSIONS_APPLICATION_LAUNCH_H_ 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_
6 #define CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_ 6 #define CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_
7 7
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "chrome/browser/ui/host_desktop.h" 10 #include "chrome/browser/ui/host_desktop.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // and shortcuts that open an installed application. This function 93 // and shortcuts that open an installed application. This function
94 // is used to open the former. To open the latter, use 94 // is used to open the former. To open the latter, use
95 // application_launch::OpenApplication(). 95 // application_launch::OpenApplication().
96 content::WebContents* OpenAppShortcutWindow(Profile* profile, 96 content::WebContents* OpenAppShortcutWindow(Profile* profile,
97 const GURL& url); 97 const GURL& url);
98 98
99 // Whether the extension can be launched by sending a 99 // Whether the extension can be launched by sending a
100 // chrome.app.runtime.onLaunched event. 100 // chrome.app.runtime.onLaunched event.
101 bool CanLaunchViaEvent(const extensions::Extension* extension); 101 bool CanLaunchViaEvent(const extensions::Extension* extension);
102 102
103 // Get the launch URL for a given extension, with optional override/fallback.
104 // |override_url|, if non-empty, will be preferred over the extension's
105 // launch url.
106 GURL UrlForExtension(const extensions::Extension* extension,
107 const GURL& override_url);
108
103 #endif // CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_ 109 #endif // CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698