| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_APP_MENU_ITEM_V2APP_H_ | |
| 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_APP_MENU_ITEM_V2APP_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "ash/public/cpp/shelf_application_menu_item.h" | |
| 11 #include "base/macros.h" | |
| 12 | |
| 13 class ChromeLauncherController; | |
| 14 | |
| 15 // A shelf application menu item for a running V2 application. | |
| 16 class ChromeLauncherAppMenuItemV2App : public ash::ShelfApplicationMenuItem { | |
| 17 public: | |
| 18 ChromeLauncherAppMenuItemV2App(const base::string16 title, | |
| 19 const gfx::Image* icon, | |
| 20 const std::string& app_id, | |
| 21 ChromeLauncherController* launcher_controller, | |
| 22 int app_index); | |
| 23 ~ChromeLauncherAppMenuItemV2App() override; | |
| 24 | |
| 25 // ash::ShelfApplicationMenuItem: | |
| 26 void Execute(int event_flags) override; | |
| 27 | |
| 28 private: | |
| 29 // The owning class which can be used to validate the controller. | |
| 30 ChromeLauncherController* launcher_controller_; | |
| 31 | |
| 32 // The application ID. | |
| 33 const std::string app_id_; | |
| 34 | |
| 35 // The index for the given application. | |
| 36 const int app_index_; | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherAppMenuItemV2App); | |
| 39 }; | |
| 40 | |
| 41 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_APP_MENU_ITEM_V2APP_H_ | |
| OLD | NEW |