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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller.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: chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
index 5315d36fb59ad61d2e9ef477f60fc131d336dbec..8570c547b932997e37a5ad84b8fcb8801d33eaf3 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
@@ -149,6 +149,15 @@ class ChromeLauncherController : public ash::mojom::ShelfObserver,
ash::LaunchSource source,
int event_flags);
+ // Opens a new instance of the application identified by |app_id|.
+ // Used by the app-list, and by pinned-app shelf items.|launch_id| is an id
+ // that can be passed to an app when launched in order to support multiple
+ // shelf items per app.
+ void LaunchAppWithLaunchId(const std::string& app_id,
+ const std::string& launch_id,
+ ash::LaunchSource source,
+ int event_flags);
+
// If |app_id| is running, reactivates the app's most recently active window,
// otherwise launches and activates the app.
// Used by the app-list, and by pinned-app shelf items.

Powered by Google App Engine
This is Rietveld 408576698