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

Unified Diff: apps/launcher.h

Issue 2523053004: Enhance chrome.app.window API for shelf integration with restore support (Closed)
Patch Set: Review v5 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
« no previous file with comments | « no previous file | apps/launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/launcher.h
diff --git a/apps/launcher.h b/apps/launcher.h
index 6efa792072225114a2332679dd40ac2f27051191..c67974e5d46b214b8274b79108bed1461ed85bd2 100644
--- a/apps/launcher.h
+++ b/apps/launcher.h
@@ -46,6 +46,19 @@ void LaunchPlatformAppWithCommandLine(
extensions::api::app_runtime::PlayStoreStatus::
PLAY_STORE_STATUS_UNKNOWN);
+// As above but includes |launch_id|, an id that can be passed to
+// an app when launched in order to support multiple shelf items per app.
+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,
« no previous file with comments | « no previous file | apps/launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698