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

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

Issue 2900783003: Handle app custom icon via aura::Window property. (Closed)
Patch Set: cleanup Created 3 years, 7 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/chrome_launcher_controller.h
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
index 82b7199f20498fa4f9c4d22c15682dfa14ffc177..c518c9ebc5a4121843c7a7f782510e04791e7bac 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
@@ -151,6 +151,9 @@ class ChromeLauncherController
void SetLauncherItemImage(const ash::ShelfID& shelf_id,
const gfx::ImageSkia& image);
+ // Updates app item image from app image loader.
+ void UpdateAppItemImage(const std::string& app_id);
msw 2017/05/23 00:02:29 nit: rename UpdateLauncherItemImage for parity wit
khmel 2017/05/23 16:11:43 That is nice.
+
// Notify the controller that the state of an non platform app's tabs
// have changed,
void UpdateAppState(content::WebContents* contents, AppState app_state);
@@ -220,8 +223,6 @@ class ChromeLauncherController
// Controller to launch ARC apps in deferred mode.
ArcAppDeferredLauncherController* GetArcDeferredLauncher();
- AppIconLoader* GetAppIconLoaderForApp(const std::string& app_id);
-
// Sets the shelf auto-hide and/or alignment behavior from prefs.
void SetShelfAutoHideBehaviorFromPrefs();
void SetShelfAlignmentFromPrefs();
@@ -381,6 +382,9 @@ class ChromeLauncherController
// An internal helper to unpin a shelf item; this does not update prefs.
void UnpinShelfItemInternal(const ash::ShelfID& id);
+ // Resolves app icon image loader for the app.
+ AppIconLoader* GetAppIconLoaderForApp(const std::string& app_id);
+
static ChromeLauncherController* instance_;
// The currently loaded profile used for prefs and loading extensions. This is

Powered by Google App Engine
This is Rietveld 408576698