/external/chromium_org/components/renderer_context_menu/ |
H A D | render_view_context_menu_observer.cc | 7 bool RenderViewContextMenuObserver::IsCommandIdSupported(int command_id) { argument 11 bool RenderViewContextMenuObserver::IsCommandIdChecked(int command_id) { argument 15 bool RenderViewContextMenuObserver::IsCommandIdEnabled(int command_id) { argument
|
H A D | render_view_context_menu_observer.h | 36 // virtual bool IsCommandIdSupported(int command_id) OVERRIDE; 37 // virtual bool IsCommandIdEnabled(int command_id) OVERRIDE; 38 // virtual void ExecuteCommand(int command_id) OVERRIDE; 48 // bool MyMenuObserver::IsCommandIdSupported(int command_id) { 49 // return command_id == IDC_MY_COMMAND; 52 // bool MyMenuObserver::IsCommandIdEnabled(int command_id) { 53 // DCHECK(command_id == IDC_MY_COMMAND); 57 // void MyMenuObserver::ExecuteCommand(int command_id) { 58 // DCHECK(command_id == IDC_MY_COMMAND); 92 virtual bool IsCommandIdSupported(int command_id); 101 ExecuteCommand(int command_id) argument [all...] |
H A D | render_view_context_menu_proxy.h | 74 virtual void AddMenuItem(int command_id, const base::string16& title) = 0; 75 virtual void AddCheckItem(int command_id, const base::string16& title) = 0; 79 virtual void AddSubMenu(int command_id, 84 virtual void UpdateMenuItem(int command_id,
|
/external/chromium_org/chrome/browser/app_mode/ |
H A D | app_mode_utils.h | 11 bool IsCommandAllowedInAppMode(int command_id);
|
/external/chromium_org/chrome/browser/media_galleries/ |
H A D | media_gallery_context_menu.cc | 20 bool MediaGalleryContextMenu::IsCommandIdChecked(int command_id) const { 24 bool MediaGalleryContextMenu::IsCommandIdEnabled(int command_id) const { 28 bool MediaGalleryContextMenu::IsCommandIdVisible(int command_id) const { 33 int command_id, ui::Accelerator* accelerator) { 37 void MediaGalleryContextMenu::ExecuteCommand(int command_id, int event_flags) { argument 32 GetAcceleratorForCommandId( int command_id, ui::Accelerator* accelerator) argument
|
/external/chromium_org/chrome/browser/status_icons/ |
H A D | status_icon_menu_model.cc | 31 void StatusIconMenuModel::Delegate::CommandIdHighlighted(int command_id) { argument 44 void StatusIconMenuModel::SetCommandIdChecked(int command_id, bool checked) { argument 45 item_states_[command_id].checked = checked; 49 void StatusIconMenuModel::SetCommandIdEnabled(int command_id, bool enabled) { argument 50 item_states_[command_id].enabled = enabled; 54 void StatusIconMenuModel::SetCommandIdVisible(int command_id, bool visible) { argument 55 item_states_[command_id].visible = visible; 60 int command_id, const ui::Accelerator* accelerator) { 61 item_states_[command_id].accelerator = *accelerator; 65 void StatusIconMenuModel::ChangeLabelForCommandId(int command_id, argument 59 SetAcceleratorForCommandId( int command_id, const ui::Accelerator* accelerator) argument 72 ChangeSublabelForCommandId( int command_id, const base::string16& sublabel) argument 79 ChangeIconForCommandId( int command_id, const gfx::Image& icon) argument 115 GetAcceleratorForCommandId( int command_id, ui::Accelerator* accelerator) argument 148 GetIconForCommandId(int command_id, gfx::Image* image_skia) const argument 172 CommandIdHighlighted(int command_id) argument 177 ExecuteCommand(int command_id, int event_flags) argument [all...] |
H A D | status_icon_menu_model.h | 34 virtual void CommandIdHighlighted(int command_id); 39 virtual void ExecuteCommand(int command_id, int event_flags) = 0; 59 void SetCommandIdChecked(int command_id, bool checked); 60 void SetCommandIdEnabled(int command_id, bool enabled); 61 void SetCommandIdVisible(int command_id, bool visible); 65 int command_id, const ui::Accelerator* accelerator); 71 void ChangeLabelForCommandId(int command_id, const base::string16& label); 73 int command_id, const base::string16& sublabel); 74 void ChangeIconForCommandId(int command_id, const gfx::Image& icon); 80 virtual bool IsCommandIdChecked(int command_id) cons [all...] |
/external/chromium_org/chrome/browser/ui/views/frame/ |
H A D | system_menu_model_delegate.cc | 28 bool SystemMenuModelDelegate::IsCommandIdChecked(int command_id) const { 29 switch (command_id) { 39 bool SystemMenuModelDelegate::IsCommandIdEnabled(int command_id) const { 40 if (!chrome::IsCommandEnabled(browser_, command_id)) 43 if (command_id != IDC_RESTORE_TAB) 60 bool SystemMenuModelDelegate::GetAcceleratorForCommandId(int command_id, argument 62 return provider_->GetAcceleratorForCommandId(command_id, accelerator); 65 bool SystemMenuModelDelegate::IsItemForCommandIdDynamic(int command_id) const { 66 return command_id == IDC_RESTORE_TAB; 70 int command_id) cons 85 ExecuteCommand(int command_id, int event_flags) argument [all...] |
H A D | system_menu_model_delegate.h | 23 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; 24 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; 26 int command_id, 28 virtual bool IsItemForCommandIdDynamic(int command_id) const OVERRIDE; 29 virtual base::string16 GetLabelForCommandId(int command_id) const OVERRIDE; 30 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE;
|
/external/chromium_org/gpu/command_buffer/common/ |
H A D | gles2_cmd_ids.h | 17 const char* GetCommandName(CommandId command_id);
|
/external/chromium_org/chrome/browser/ui/ash/launcher/ |
H A D | launcher_application_menu_item_model.cc | 19 bool LauncherApplicationMenuItemModel::IsCommandActive(int command_id) const { 20 DCHECK(command_id >= 0); 21 DCHECK(static_cast<size_t>(command_id) < launcher_items_.size()); 22 return launcher_items_[command_id]->IsActive(); 26 int command_id) const { 31 int command_id) const { 32 DCHECK(command_id < static_cast<int>(launcher_items_.size())); 33 return launcher_items_[command_id]->IsEnabled(); 37 int command_id, 42 void LauncherApplicationMenuItemModel::ExecuteCommand(int command_id, argument 36 GetAcceleratorForCommandId( int command_id, ui::Accelerator* accelerator) argument [all...] |
H A D | launcher_application_menu_item_model.h | 27 virtual bool IsCommandActive(int command_id) const OVERRIDE; 30 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; 31 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; 33 int command_id, 35 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE;
|
/external/chromium_org/ui/base/models/ |
H A D | button_menu_item_model.cc | 12 int command_id) const { 17 int command_id) const { 21 bool ButtonMenuItemModel::Delegate::IsCommandIdEnabled(int command_id) const { 26 int command_id) const { 31 int command_id; member in struct:ui::ButtonMenuItemModel::Item 49 int command_id, int string_id) { 50 Item item = { command_id, TYPE_BUTTON, l10n_util::GetStringUTF16(string_id), 55 void ButtonMenuItemModel::AddItemWithImage(int command_id, argument 57 Item item = { command_id, TYPE_BUTTON, base::string16(), icon_idr, false }; 61 void ButtonMenuItemModel::AddButtonLabel(int command_id, in argument 48 AddGroupItemWithStringId( int command_id, int string_id) argument 109 ActivatedCommand(int command_id) argument [all...] |
H A D | button_menu_item_model.h | 29 virtual bool IsItemForCommandIdDynamic(int command_id) const; 30 virtual base::string16 GetLabelForCommandId(int command_id) const; 33 virtual void ExecuteCommand(int command_id, int event_flags) = 0; 34 virtual bool IsCommandIdEnabled(int command_id) const; 35 virtual bool DoesCommandIdDismissMenu(int command_id) const; 44 // Adds a button that will emit |command_id|. All buttons created through 46 void AddGroupItemWithStringId(int command_id, int string_id); 49 void AddItemWithImage(int command_id, int icon_idr); 54 void AddButtonLabel(int command_id, int string_id); 83 void ActivatedCommand(int command_id); [all...] |
/external/chromium_org/ash/shell/ |
H A D | context_menu.cc | 32 bool ContextMenu::IsCommandIdChecked(int command_id) const { 33 switch (command_id) { 42 bool ContextMenu::IsCommandIdEnabled(int command_id) const { 47 int command_id, 52 void ContextMenu::ExecuteCommand(int command_id, int event_flags) { argument 54 switch (static_cast<MenuItem>(command_id)) { 46 GetAcceleratorForCommandId( int command_id, ui::Accelerator* accelerator) argument
|
/external/chromium_org/chrome/browser/ui/views/ |
H A D | accelerator_table.h | 24 int command_id; member in struct:chrome::AcceleratorMapping 36 int command_id, 44 int command_id,
|
/external/chromium_org/ash/shelf/ |
H A D | shelf_alignment_menu.h | 26 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; 27 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; 29 int command_id, 31 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE;
|
H A D | shelf_alignment_menu.cc | 35 bool ShelfAlignmentMenu::IsCommandIdChecked(int command_id) const { 37 ->SelectValueForShelfAlignment(MENU_ALIGN_BOTTOM == command_id, 38 MENU_ALIGN_LEFT == command_id, 39 MENU_ALIGN_RIGHT == command_id, 43 bool ShelfAlignmentMenu::IsCommandIdEnabled(int command_id) const { 48 int command_id, 53 void ShelfAlignmentMenu::ExecuteCommand(int command_id, int event_flags) { argument 54 switch (static_cast<MenuItem>(command_id)) { 47 GetAcceleratorForCommandId( int command_id, ui::Accelerator* accelerator) argument
|
/external/chromium_org/chrome/browser/printing/ |
H A D | print_preview_context_menu_observer.cc | 26 bool PrintPreviewContextMenuObserver::IsCommandIdSupported(int command_id) { argument 27 switch (command_id) { 40 bool PrintPreviewContextMenuObserver::IsCommandIdEnabled(int command_id) { argument 41 switch (command_id) {
|
/external/chromium_org/chrome/test/base/ |
H A D | menu_model_test.h | 26 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; 27 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; 29 int command_id, 31 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE;
|
/external/chromium_org/components/translate/core/browser/ |
H A D | options_menu_model.h | 32 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; 33 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; 35 int command_id, 37 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE;
|
/external/chromium_org/chrome/browser/ui/app_list/ |
H A D | app_context_menu.cc | 179 bool AppContextMenu::IsItemForCommandIdDynamic(int command_id) const { 180 return command_id == TOGGLE_PIN || command_id == LAUNCH_NEW; 183 base::string16 AppContextMenu::GetLabelForCommandId(int command_id) const { 184 if (command_id == TOGGLE_PIN) { 188 } else if (command_id == LAUNCH_NEW) { 205 bool AppContextMenu::IsCommandIdChecked(int command_id) const { 206 if (command_id >= USE_LAUNCH_TYPE_COMMAND_START && 207 command_id < USE_LAUNCH_TYPE_COMMAND_END) { 209 profile_, app_id_)) + USE_LAUNCH_TYPE_COMMAND_START == command_id; 240 GetAcceleratorForCommandId( int command_id, ui::Accelerator* acclelrator) argument 246 ExecuteCommand(int command_id, int event_flags) argument [all...] |
/external/chromium_org/chrome/browser/ui/views/bookmarks/ |
H A D | bookmark_context_menu.cc | 22 // Returns true if |command_id| corresponds to a command that causes one or more 24 bool IsRemoveBookmarksCommand(int command_id) { argument 25 return command_id == IDC_CUT || command_id == IDC_BOOKMARK_BAR_REMOVE; 85 void BookmarkContextMenu::ExecuteCommand(int command_id, int event_flags) { argument 86 controller_->ExecuteCommand(command_id, event_flags); 89 bool BookmarkContextMenu::IsItemChecked(int command_id) const { 90 return controller_->IsCommandIdChecked(command_id); 93 bool BookmarkContextMenu::IsCommandEnabled(int command_id) const { 94 return controller_->IsCommandIdEnabled(command_id); 113 WillExecuteCommand( int command_id, const std::vector<const BookmarkNode*>& bookmarks) argument 120 DidExecuteCommand(int command_id) argument [all...] |
/external/chromium_org/chrome/browser/renderer_context_menu/ |
H A D | spellchecker_submenu_observer_mac.cc | 70 bool SpellCheckerSubMenuObserver::IsCommandIdSupported(int command_id) { argument 71 switch (command_id) { 87 bool SpellCheckerSubMenuObserver::IsCommandIdChecked(int command_id) { argument 88 DCHECK(IsCommandIdSupported(command_id)); 91 if (command_id == IDC_CHECK_SPELLING_WHILE_TYPING) { 100 bool SpellCheckerSubMenuObserver::IsCommandIdEnabled(int command_id) { argument 101 DCHECK(IsCommandIdSupported(command_id)); 103 switch (command_id) { 114 void SpellCheckerSubMenuObserver::ExecuteCommand(int command_id) { argument 115 DCHECK(IsCommandIdSupported(command_id)); [all...] |
H A D | spellchecker_submenu_observer_hunspell.cc | 92 bool SpellCheckerSubMenuObserver::IsCommandIdSupported(int command_id) { argument 94 if (command_id >= IDC_SPELLCHECK_LANGUAGES_FIRST && 95 command_id < IDC_SPELLCHECK_LANGUAGES_LAST) { 99 switch (command_id) { 114 bool SpellCheckerSubMenuObserver::IsCommandIdChecked(int command_id) { argument 115 DCHECK(IsCommandIdSupported(command_id)); 117 if (command_id >= IDC_SPELLCHECK_LANGUAGES_FIRST && 118 command_id < IDC_SPELLCHECK_LANGUAGES_LAST) { 119 return language_selected_ == command_id - IDC_SPELLCHECK_LANGUAGES_FIRST; 123 if (command_id 132 IsCommandIdEnabled(int command_id) argument 153 ExecuteCommand(int command_id) argument [all...] |