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

Side by Side Diff: apps/launcher.h

Issue 2523053004: Enhance chrome.app.window API for shelf integration with restore support (Closed)
Patch Set: Created 4 years 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 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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 } 30 }
31 31
32 namespace apps { 32 namespace apps {
33 33
34 // Launches the platform app |app|. Creates appropriate launch data for the 34 // Launches the platform app |app|. Creates appropriate launch data for the
35 // |command_line| fields present. |app| and |profile| must not be NULL. An empty 35 // |command_line| fields present. |app| and |profile| must not be NULL. An empty
36 // |command_line| means there is no launch data. If non-empty, 36 // |command_line| means there is no launch data. If non-empty,
37 // |current_directory| is used to expand any relative paths on the command line. 37 // |current_directory| is used to expand any relative paths on the command line.
38 // |source| is one of the enumerated values which trace how the app is launched. 38 // |source| is one of the enumerated values which trace how the app is launched.
39 // |launch_id| is an id that can be passed to an app when launched in order to
Mr4D (OOO till 08-26) 2016/12/03 01:55:27 Could you please order the parameters in the prope
Andra Paraschiv 2016/12/06 13:19:16 Done.
40 // support multiple shelf items per app.
39 void LaunchPlatformAppWithCommandLine( 41 void LaunchPlatformAppWithCommandLine(
40 Profile* profile, 42 Profile* profile,
41 const extensions::Extension* app, 43 const extensions::Extension* app,
44 const std::string& launch_id,
42 const base::CommandLine& command_line, 45 const base::CommandLine& command_line,
43 const base::FilePath& current_directory, 46 const base::FilePath& current_directory,
44 extensions::AppLaunchSource source, 47 extensions::AppLaunchSource source,
45 extensions::api::app_runtime::PlayStoreStatus play_store_status = 48 extensions::api::app_runtime::PlayStoreStatus play_store_status =
46 extensions::api::app_runtime::PlayStoreStatus:: 49 extensions::api::app_runtime::PlayStoreStatus::
47 PLAY_STORE_STATUS_UNKNOWN); 50 PLAY_STORE_STATUS_UNKNOWN);
stevenjb 2016/12/05 16:47:31 Given that we already have a bunch of these, I wou
Andra Paraschiv 2016/12/06 13:19:16 Thank you, I added a new one.
48 51
49 // Launches the platform app |app| by issuing an onLaunched event with the 52 // Launches the platform app |app| by issuing an onLaunched event with the
50 // contents of |file_path| available through the launch data. 53 // contents of |file_path| available through the launch data.
51 void LaunchPlatformAppWithPath(Profile* profile, 54 void LaunchPlatformAppWithPath(Profile* profile,
52 const extensions::Extension* app, 55 const extensions::Extension* app,
53 const base::FilePath& file_path); 56 const base::FilePath& file_path);
54 57
55 // Launches the platform app |app| with the specific |action_data|. |file_path| 58 // Launches the platform app |app| with the specific |action_data|. |file_path|
56 // is an optional argument and if present contains the file that the app should 59 // is an optional argument and if present contains the file that the app should
57 // open w.r.t. the given action. 60 // open w.r.t. the given action.
(...skipping 26 matching lines...) Expand all
84 const extensions::Extension* app, 87 const extensions::Extension* app,
85 const std::string& handler_id, 88 const std::string& handler_id,
86 const GURL& url, 89 const GURL& url,
87 const GURL& referrer_url); 90 const GURL& referrer_url);
88 91
89 void RestartPlatformApp(Profile* profile, const extensions::Extension* app); 92 void RestartPlatformApp(Profile* profile, const extensions::Extension* app);
90 93
91 } // namespace apps 94 } // namespace apps
92 95
93 #endif // APPS_LAUNCHER_H_ 96 #endif // APPS_LAUNCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698