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.
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_
10 #include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item.h"
16 class ChromeLauncherController
;
18 // A menu item controller for a running V2 application. It gets created when an
19 // application list gets created. It's main purpose is to add the activation
20 // method to the |ChromeLauncherAppMenuItem| class.
21 class ChromeLauncherAppMenuItemV2App
: public ChromeLauncherAppMenuItem
{
23 ChromeLauncherAppMenuItemV2App(
24 const base::string16 title
,
25 const gfx::Image
* icon
,
26 const std::string
& app_id
,
27 ChromeLauncherController
* launcher_controller
,
29 bool has_leading_separator
);
30 ~ChromeLauncherAppMenuItemV2App() override
;
32 bool IsEnabled() const override
;
33 void Execute(int event_flags
) override
;
36 // The owning class which can be used to validate the controller.
37 ChromeLauncherController
* launcher_controller_
;
39 // The application ID.
40 const std::string app_id_
;
42 // The index for the given application.
45 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherAppMenuItemV2App
);
48 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_APP_MENU_ITEM_V2APP_H_