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

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

Issue 2628023002: Fix cannot select and activate pinned v2app through launcher context menu (Closed)
Patch Set: AsAppWindowLauncherItemController Created 3 years, 11 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/launcher_item_controller.h
diff --git a/chrome/browser/ui/ash/launcher/launcher_item_controller.h b/chrome/browser/ui/ash/launcher/launcher_item_controller.h
index 52c3c280f9e53e6db5e1e997168afa8c30eebcb3..0ba5e8a4e6c9e11b3111912ca6316ac2bad3c10a 100644
--- a/chrome/browser/ui/ash/launcher/launcher_item_controller.h
+++ b/chrome/browser/ui/ash/launcher/launcher_item_controller.h
@@ -14,6 +14,7 @@
#include "chrome/browser/ui/ash/launcher/chrome_launcher_types.h"
#include "ui/events/event.h"
+class AppWindowLauncherItemController;
class ChromeLauncherController;
class ChromeLauncherAppMenuItem;
@@ -64,6 +65,9 @@ class LauncherItemController : public ash::ShelfItemDelegate {
// Called to retrieve the list of running applications.
virtual ChromeLauncherAppMenuItems GetApplicationList(int event_flags) = 0;
+ // Returns nullptr if class is not AppWindowLauncherItemController.
+ virtual AppWindowLauncherItemController* AsAppWindowLauncherItemController();
+
private:
// The application id; empty if there is no app associated with the item.
const std::string app_id_;

Powered by Google App Engine
This is Rietveld 408576698