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

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

Issue 265503003: Enable file_handlers and chrome.app.runtime for QuickOffice. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback, less hacky Created 6 years, 7 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 content::WebContents* OpenApplication(const AppLaunchParams& params); 89 content::WebContents* OpenApplication(const AppLaunchParams& params);
90 90
91 // Open |url| in an app shortcut window. 91 // Open |url| in an app shortcut window.
92 // There are two kinds of app shortcuts: Shortcuts to a URL, 92 // There are two kinds of app shortcuts: Shortcuts to a URL,
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
100 // chrome.app.runtime.onLaunched event.
101 bool CanLaunchViaEvent(const extensions::Extension* extension);
102
99 #endif // CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_ 103 #endif // CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/tab_capture/tab_capture_api.cc ('k') | chrome/browser/ui/extensions/application_launch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698