This source file includes following definitions.
- app_index_
- IsEnabled
- Execute
#include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_v2app.h"
#include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
ChromeLauncherAppMenuItemV2App::ChromeLauncherAppMenuItemV2App(
const base::string16 title,
const gfx::Image* icon,
const std::string& app_id,
ChromeLauncherController* launcher_controller,
int app_index,
bool has_leading_separator)
: ChromeLauncherAppMenuItem(title, icon, has_leading_separator),
launcher_controller_(launcher_controller),
app_id_(app_id),
app_index_(app_index) {
}
bool ChromeLauncherAppMenuItemV2App::IsEnabled() const {
return true;
}
void ChromeLauncherAppMenuItemV2App::Execute(int event_flags) {
launcher_controller_->ActivateShellApp(app_id_, app_index_);
}