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

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

Issue 2771663002: mash: Refactor ChromeLauncherController's ShelfDelegate code. (Closed)
Patch Set: Revise uma logic; make TestShelfDelegate set [un]pinned item types. Created 3 years, 9 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 a2168261133a51ed213740946ecce16b537648e2..3741cfdf7d5dc0d576de6df9a910aecfa9f6477c 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
@@ -96,18 +96,9 @@ class ChromeLauncherController : public ash::mojom::ShelfObserver,
// Closes or unpins the shelf item.
virtual void CloseLauncherItem(ash::ShelfID id) = 0;
- // Pins the specified id. Currently only supports platform apps.
- virtual void Pin(ash::ShelfID id) = 0;
-
- // Unpins the specified id, closing if not running.
- virtual void Unpin(ash::ShelfID id) = 0;
-
// Returns true if the item identified by |id| is pinned.
virtual bool IsPinned(ash::ShelfID id) = 0;
- // Pins/unpins the specified id.
- virtual void TogglePinned(ash::ShelfID id) = 0;
-
// If there is no item in the shelf for application |app_id|, one is created.
// The (existing or created) shelf items get then locked against a user's
// un-pinning removal. Used for V1 apps opened as windows that aren't pinned.

Powered by Google App Engine
This is Rietveld 408576698