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

Unified Diff: apps/launcher.h

Issue 2523053004: Enhance chrome.app.window API for shelf integration with restore support (Closed)
Patch Set: Review v2 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 side-by-side diff with in-line comments
Download patch
Index: apps/launcher.h
diff --git a/apps/launcher.h b/apps/launcher.h
index 6efa792072225114a2332679dd40ac2f27051191..72adc0d4e4da08893af21568c46d602f8dc48755 100644
--- a/apps/launcher.h
+++ b/apps/launcher.h
@@ -46,6 +46,24 @@ void LaunchPlatformAppWithCommandLine(
extensions::api::app_runtime::PlayStoreStatus::
PLAY_STORE_STATUS_UNKNOWN);
+// Launches the platform app |app|. |launch_id| is an id that can be passed to
+// an app when launched in order to support multiple shelf items per app.
+// Creates appropriate launch data for the |command_line| fields present. |app|
+// and |profile| must not be NULL. An empty |command_line| means there is no
+// launch data. If non-empty, |current_directory| is used to expand any relative
+// paths on the command line. |source| is one of the enumerated values which
+// trace how the app is launched.
stevenjb 2016/12/06 16:42:07 Rather than repeating the above, the comment shoul
Andra Paraschiv 2016/12/07 08:33:21 Thank you, I updated the comment.
+void LaunchPlatformAppWithCommandLineAndLaunchId(
+ Profile* profile,
+ const extensions::Extension* app,
+ const std::string& launch_id,
+ const base::CommandLine& command_line,
+ const base::FilePath& current_directory,
+ extensions::AppLaunchSource source,
+ extensions::api::app_runtime::PlayStoreStatus play_store_status =
+ extensions::api::app_runtime::PlayStoreStatus::
+ PLAY_STORE_STATUS_UNKNOWN);
+
// Launches the platform app |app| by issuing an onLaunched event with the
// contents of |file_path| available through the launch data.
void LaunchPlatformAppWithPath(Profile* profile,

Powered by Google App Engine
This is Rietveld 408576698