} // namespace
LauncherContextMenu::LauncherContextMenu(ChromeLauncherController* controller,
- const ash::LauncherItem* item,
+ const ash::ShelfItem* item,
aura::Window* root)
: ui::SimpleMenuModel(NULL),
controller_(controller),
Init();
}
-LauncherContextMenu::LauncherContextMenu(
- ChromeLauncherController* controller,
- ash::ShelfItemDelegate* item_delegate,
- ash::LauncherItem* item,
- aura::Window* root)
+LauncherContextMenu::LauncherContextMenu(ChromeLauncherController* controller,
+ ash::ShelfItemDelegate* item_delegate,
+ ash::ShelfItem* item,
+ aura::Window* root)
: ui::SimpleMenuModel(NULL),
controller_(controller),
item_(*item),
aura::Window* root)
: ui::SimpleMenuModel(NULL),
controller_(controller),
- item_(ash::LauncherItem()),
+ item_(ash::ShelfItem()),
shelf_alignment_menu_(root),
extension_items_(new extensions::ContextMenuMatcher(
controller->profile(), this, this,
if (item_.type == ash::TYPE_APP_SHORTCUT ||
item_.type == ash::TYPE_WINDOWED_APP ||
item_.type == ash::TYPE_PLATFORM_APP) {
- std::string app_id = controller_->GetAppIDForLauncherID(item_.id);
+ std::string app_id = controller_->GetAppIDForShelfID(item_.id);
if (!app_id.empty()) {
int index = 0;
extension_items_->AppendExtensionItems(