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

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

Issue 2484413002: Enhance chrome.app.window API with title property
Patch Set: Created 4 years, 1 month 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 33ac1252b0c015d895a8967d5a109c4c389c0550..9a9a1d30ebeedeb8d7ea0cc37155f1e257e011d0 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
@@ -32,6 +32,7 @@ class AppShortcutLauncherItemController : public LauncherItemController {
static AppShortcutLauncherItemController* Create(
const std::string& app_id,
const std::string& launch_id,
+ const std::string& title,
ChromeLauncherController* controller);
std::vector<content::WebContents*> GetRunningApplications();
@@ -64,9 +65,12 @@ class AppShortcutLauncherItemController : public LauncherItemController {
const std::string& launch_id() const { return launch_id_; }
+ const std::string& title() const { return title_; }
+
protected:
AppShortcutLauncherItemController(const std::string& app_id,
const std::string& launch_id,
+ const std::string& title,
ChromeLauncherController* controller);
private:
@@ -114,6 +118,9 @@ class AppShortcutLauncherItemController : public LauncherItemController {
// uniquely identify each shelf item that has the same app_id.
const std::string launch_id_;
+ // Title of the window that has its own icon in the shelf.
+ const std::string title_;
+
DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController);
};

Powered by Google App Engine
This is Rietveld 408576698