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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.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/chrome_launcher_controller_impl.h
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h
index 44c677510d006fd28ef6247e2f04acd1a982dcfc..6818feaf3b6854fe3c023585a30637f41de21560 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h
@@ -128,6 +128,7 @@ class ChromeLauncherControllerImpl
void OnUserProfileReadyToSwitch(Profile* profile) override;
ArcAppDeferredLauncherController* GetArcDeferredLauncher() override;
const std::string& GetLaunchIDForShelfID(ash::ShelfID id) override;
+ const std::string& GetTitleForShelfID(ash::ShelfID id) override;
void AttachProfile(Profile* profile_to_attach) override;
// Access to the BrowserStatusMonitor for tests.
@@ -165,6 +166,7 @@ class ChromeLauncherControllerImpl
// Use kInsertItemAtEnd to add a shortcut as the last item.
ash::ShelfID CreateAppShortcutLauncherItem(
const ash::launcher::AppLauncherId& app_launcher_id,
+ const std::string& title,
int index);
private:
@@ -186,6 +188,7 @@ class ChromeLauncherControllerImpl
// Use kInsertItemAtEnd to add a shortcut as the last item.
ash::ShelfID CreateAppShortcutLauncherItemWithType(
const ash::launcher::AppLauncherId& app_launcher_id,
+ const std::string& title,
int index,
ash::ShelfItemType shelf_item_type);

Powered by Google App Engine
This is Rietveld 408576698