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

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: Rebase 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') | apps/launcher.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 // |file_path| is an optional argument and if present contains the file that the
46 // app should open w.r.t. the given action.
47 void LaunchPlatformAppWithAction(Profile* profile,
48 const extensions::Extension* extension,
Devlin 2016/08/11 20:51:20 let's use |app| instead of |extension| (I know the
jdufault 2016/08/12 18:56:55 Done.
49 const extensions::ActionData& action_data,
50 const base::FilePath& file_path);
51
44 // Launches the platform app |extension|. |source| tells us how the app is 52 // Launches the platform app |extension|. |source| tells us how the app is
45 // launched. 53 // launched.
46 void LaunchPlatformApp(Profile* profile, 54 void LaunchPlatformApp(Profile* profile,
47 const extensions::Extension* extension, 55 const extensions::Extension* extension,
48 extensions::AppLaunchSource source); 56 extensions::AppLaunchSource source);
49 57
50 // Launches the platform app |extension| with |handler_id| and the contents of 58 // Launches the platform app |extension| with |handler_id| and the contents of
51 // |file_paths| available through the launch data. |handler_id| corresponds to 59 // |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 60 // the id of the file_handlers item in the manifest that resulted in a match
53 // that triggered this launch. 61 // that triggered this launch.
(...skipping 12 matching lines...) Expand all
66 const std::string& handler_id, 74 const std::string& handler_id,
67 const GURL& url, 75 const GURL& url,
68 const GURL& referrer_url); 76 const GURL& referrer_url);
69 77
70 void RestartPlatformApp(Profile* profile, 78 void RestartPlatformApp(Profile* profile,
71 const extensions::Extension* extension); 79 const extensions::Extension* extension);
72 80
73 } // namespace apps 81 } // namespace apps
74 82
75 #endif // APPS_LAUNCHER_H_ 83 #endif // APPS_LAUNCHER_H_
OLDNEW
« no previous file with comments | « no previous file | apps/launcher.cc » ('j') | apps/launcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698