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

Unified Diff: chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h

Issue 2290603002: Enhance chrome.app.window API for shelf integration with pinning support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h
diff --git a/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h b/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h
index a71c1822e07006b61766213b65371f3648972380..4976f1ae8e7d14e3d1e4ac7b485becda08506d45 100644
--- a/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h
+++ b/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h
@@ -31,6 +31,7 @@ class AppShortcutLauncherItemController : public LauncherItemController {
static AppShortcutLauncherItemController* Create(
const std::string& app_id,
+ const std::string& launch_id,
ChromeLauncherController* controller);
std::vector<content::WebContents*> GetRunningApplications();
@@ -59,8 +60,13 @@ class AppShortcutLauncherItemController : public LauncherItemController {
ChromeLauncherController* controller() { return chrome_launcher_controller_; }
+ const std::string& app_id() const { return app_id_; }
+
+ const std::string& launch_id() const { return launch_id_; }
+
protected:
AppShortcutLauncherItemController(const std::string& app_id,
+ const std::string& launch_id,
ChromeLauncherController* controller);
private:
@@ -100,6 +106,12 @@ class AppShortcutLauncherItemController : public LauncherItemController {
ChromeLauncherController* chrome_launcher_controller_;
+ // The application id associated with this app shortcut.
+ const std::string app_id_;
+
+ // The launch id associated with this app shortcut.
+ const std::string launch_id_;
+
DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController);
};

Powered by Google App Engine
This is Rietveld 408576698