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

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

Issue 2671923002: mash: Cleanup ash shelf application menu code. (Closed)
Patch Set: Add comments Created 3 years, 10 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_app_menu_item_v2app.h
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_v2app.h b/chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_v2app.h
index 47745bc123c458761446a0f46aefbbf6cee5b443..82f2a82e8d4c94c1a084e89b2a081f131f3d095c 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_v2app.h
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_v2app.h
@@ -7,26 +7,22 @@
#include <string>
+#include "ash/public/cpp/shelf_application_menu_item.h"
#include "base/macros.h"
-#include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item.h"
class ChromeLauncherController;
-// A menu item controller for a running V2 application. It gets created when an
-// application list gets created. It's main purpose is to add the activation
-// method to the |ChromeLauncherAppMenuItem| class.
-class ChromeLauncherAppMenuItemV2App : public ChromeLauncherAppMenuItem {
+// A shelf application menu item for a running V2 application.
+class ChromeLauncherAppMenuItemV2App : public ash::ShelfApplicationMenuItem {
public:
- ChromeLauncherAppMenuItemV2App(
- const base::string16 title,
- const gfx::Image* icon,
- const std::string& app_id,
- ChromeLauncherController* launcher_controller,
- int app_index,
- bool has_leading_separator);
+ ChromeLauncherAppMenuItemV2App(const base::string16 title,
+ const gfx::Image* icon,
+ const std::string& app_id,
+ ChromeLauncherController* launcher_controller,
+ int app_index);
~ChromeLauncherAppMenuItemV2App() override;
- bool IsEnabled() const override;
+ // ash::ShelfApplicationMenuItem:
void Execute(int event_flags) override;
private:

Powered by Google App Engine
This is Rietveld 408576698