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

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

Issue 2484413002: Enhance chrome.app.window API with title property
Patch Set: Rebase 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/launcher_item_controller.h
diff --git a/chrome/browser/ui/ash/launcher/launcher_item_controller.h b/chrome/browser/ui/ash/launcher/launcher_item_controller.h
index bcbe71976bead0b0c159394f65996ebb8c47526a..eb75cdb7feda9a5d61ff634e18cdd9a22814a6c6 100644
--- a/chrome/browser/ui/ash/launcher/launcher_item_controller.h
+++ b/chrome/browser/ui/ash/launcher/launcher_item_controller.h
@@ -43,6 +43,7 @@ class LauncherItemController : public ash::ShelfItemDelegate {
LauncherItemController(Type type,
const std::string& app_id,
const std::string& launch_id,
+ const std::string& title,
ChromeLauncherController* launcher_controller);
~LauncherItemController() override;
@@ -51,6 +52,7 @@ class LauncherItemController : public ash::ShelfItemDelegate {
void set_shelf_id(ash::ShelfID id) { shelf_id_ = id; }
const std::string& app_id() const { return app_id_; }
const std::string& launch_id() const { return launch_id_; }
+ const std::string& title() const { return title_; }
ChromeLauncherController* launcher_controller() const {
return launcher_controller_;
}
@@ -96,6 +98,9 @@ class LauncherItemController : public ash::ShelfItemDelegate {
// 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_;
+
// A unique id assigned by the shelf model for the shelf item.
ash::ShelfID shelf_id_;

Powered by Google App Engine
This is Rietveld 408576698