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

Side by Side Diff: apps/launcher.h

Issue 2212303003: Implement app launch changes for app runtime extension proposal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tool-screenshot
Patch Set: Initial upload Created 4 years, 4 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
« no previous file with comments | « no previous file | apps/launcher.cc » ('j') | extensions/browser/api/app_runtime/app_runtime_api.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 APPS_LAUNCHER_H_ 5 #ifndef APPS_LAUNCHER_H_
6 #define APPS_LAUNCHER_H_ 6 #define APPS_LAUNCHER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 23 matching lines...) Expand all
34 const base::CommandLine& command_line, 34 const base::CommandLine& command_line,
35 const base::FilePath& current_directory, 35 const base::FilePath& current_directory,
36 extensions::AppLaunchSource source); 36 extensions::AppLaunchSource source);
37 37
38 // Launches the platform app |extension| by issuing an onLaunched event 38 // Launches the platform app |extension| by issuing an onLaunched event
39 // with the contents of |file_path| available through the launch data. 39 // with the contents of |file_path| available through the launch data.
40 void LaunchPlatformAppWithPath(Profile* profile, 40 void LaunchPlatformAppWithPath(Profile* profile,
41 const extensions::Extension* extension, 41 const extensions::Extension* extension,
42 const base::FilePath& file_path); 42 const base::FilePath& file_path);
43 43
44 // Launches the platform app |extension| with the specific |action_data|.
45 void LaunchPlatformAppWithAction(Profile* profile,
46 const extensions::Extension* extension,
47 extensions::ActionData action_data);
Daniel Erat 2016/08/05 23:36:45 make this also take an optional const base::FilePa
jdufault 2016/08/10 22:01:17 Done.
48
44 // Launches the platform app |extension|. |source| tells us how the app is 49 // Launches the platform app |extension|. |source| tells us how the app is
45 // launched. 50 // launched.
46 void LaunchPlatformApp(Profile* profile, 51 void LaunchPlatformApp(Profile* profile,
47 const extensions::Extension* extension, 52 const extensions::Extension* extension,
48 extensions::AppLaunchSource source); 53 extensions::AppLaunchSource source);
49 54
50 // Launches the platform app |extension| with |handler_id| and the contents of 55 // Launches the platform app |extension| with |handler_id| and the contents of
51 // |file_paths| available through the launch data. |handler_id| corresponds to 56 // |file_paths| available through the launch data. |handler_id| corresponds to
52 // the id of the file_handlers item in the manifest that resulted in a match 57 // the id of the file_handlers item in the manifest that resulted in a match
53 // that triggered this launch. 58 // that triggered this launch.
(...skipping 12 matching lines...) Expand all
66 const std::string& handler_id, 71 const std::string& handler_id,
67 const GURL& url, 72 const GURL& url,
68 const GURL& referrer_url); 73 const GURL& referrer_url);
69 74
70 void RestartPlatformApp(Profile* profile, 75 void RestartPlatformApp(Profile* profile,
71 const extensions::Extension* extension); 76 const extensions::Extension* extension);
72 77
73 } // namespace apps 78 } // namespace apps
74 79
75 #endif // APPS_LAUNCHER_H_ 80 #endif // APPS_LAUNCHER_H_
OLDNEW
« no previous file with comments | « no previous file | apps/launcher.cc » ('j') | extensions/browser/api/app_runtime/app_runtime_api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698