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

Unified Diff: chrome/browser/ui/ash/launcher/app_window_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_window_launcher_item_controller.h
diff --git a/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h b/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h
index b024dd806ac326b16279afbcce1f876a0c67371f..f651d5d34148833bdecac99bd5662645a0cfed11 100644
--- a/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h
+++ b/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h
@@ -44,6 +44,7 @@ class AppWindowLauncherItemController : public LauncherItemController,
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_; }
// LauncherItemController overrides:
bool IsOpen() const override;
@@ -77,6 +78,7 @@ class AppWindowLauncherItemController : public LauncherItemController,
AppWindowLauncherItemController(Type type,
const std::string& app_id,
const std::string& launch_id,
+ const std::string& title,
ChromeLauncherController* controller);
// Called when app window is removed from controller.
@@ -111,6 +113,9 @@ class AppWindowLauncherItemController : 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_;
+
// Scoped list of observed windows (for removal on destruction)
ScopedObserver<aura::Window, aura::WindowObserver> observed_windows_;

Powered by Google App Engine
This is Rietveld 408576698