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

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: 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..a65e69230d21a144e5a35f93479dacc4aa3f7c22 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& app_shelf_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& app_shelf_id() const { return app_shelf_id_; }
+
protected:
AppShortcutLauncherItemController(const std::string& app_id,
+ const std::string& app_shelf_id,
ChromeLauncherController* controller);
private:
@@ -100,6 +106,10 @@ class AppShortcutLauncherItemController : public LauncherItemController {
ChromeLauncherController* chrome_launcher_controller_;
+ const std::string app_id_;
+
+ const std::string app_shelf_id_;
stevenjb 2016/08/29 15:56:30 Document these
Andra Paraschiv 2016/08/30 09:58:24 Done.
+
DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController);
};

Powered by Google App Engine
This is Rietveld 408576698