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

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

Issue 2894443002: arc: Set custom icon in shelf for ARC apps. (Closed)
Patch Set: rebase 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/arc_app_window_launcher_item_controller.h
diff --git a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.h b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.h
index 622ea28446effe98436e173f360c730af4e70742..ec8af9cf38c1c1f131a901588936529bee45e4cc 100644
--- a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.h
+++ b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.h
@@ -11,11 +11,15 @@
#include "base/macros.h"
#include "chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h"
+class ArcAppWindow;
+class ChromeLauncherController;
+
// Shelf item delegate for ARC app windows.
class ArcAppWindowLauncherItemController
: public AppWindowLauncherItemController {
public:
- explicit ArcAppWindowLauncherItemController(const std::string& arc_app_id);
+ ArcAppWindowLauncherItemController(const std::string& arc_app_id,
+ ChromeLauncherController* owner);
~ArcAppWindowLauncherItemController() override;
@@ -31,9 +35,18 @@ class ArcAppWindowLauncherItemController
void RemoveTaskId(int task_id);
bool HasAnyTasks() const;
+ // AppWindowLauncherItemController:
+ void UpdateLauncherItem() override;
+
private:
+ // Update the shelf item's icon for the active window.
+ void UpdateIcon(ArcAppWindow* arc_app_window);
+
std::unordered_set<int> task_ids_;
+ // Unowned property.
+ ChromeLauncherController* const owner_;
+
DISALLOW_COPY_AND_ASSIGN(ArcAppWindowLauncherItemController);
};

Powered by Google App Engine
This is Rietveld 408576698