/external/chromium_org/chrome/browser/renderer_context_menu/ |
H A D | render_view_context_menu_observer.cc | 11 bool RenderViewContextMenuObserver::IsCommandIdSupported(int command_id) { argument 15 bool RenderViewContextMenuObserver::IsCommandIdChecked(int command_id) { argument 19 bool RenderViewContextMenuObserver::IsCommandIdEnabled(int command_id) { argument 23 void RenderViewContextMenuObserver::ExecuteCommand(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); [all...] |
H A D | spellchecker_submenu_observer_mac.cc | 61 bool SpellCheckerSubMenuObserver::IsCommandIdSupported(int command_id) { argument 62 switch (command_id) { 78 bool SpellCheckerSubMenuObserver::IsCommandIdChecked(int command_id) { argument 79 DCHECK(IsCommandIdSupported(command_id)); 82 if (command_id == IDC_CHECK_SPELLING_WHILE_TYPING) { 91 bool SpellCheckerSubMenuObserver::IsCommandIdEnabled(int command_id) { argument 92 DCHECK(IsCommandIdSupported(command_id)); 94 switch (command_id) { 105 void SpellCheckerSubMenuObserver::ExecuteCommand(int command_id) { argument 106 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...] |
/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 | 32 void StatusIconMenuModel::Delegate::CommandIdHighlighted(int command_id) { argument 45 void StatusIconMenuModel::SetCommandIdChecked(int command_id, bool checked) { argument 46 item_states_[command_id].checked = checked; 50 void StatusIconMenuModel::SetCommandIdEnabled(int command_id, bool enabled) { argument 51 item_states_[command_id].enabled = enabled; 55 void StatusIconMenuModel::SetCommandIdVisible(int command_id, bool visible) { argument 56 item_states_[command_id].visible = visible; 61 int command_id, const ui::Accelerator* accelerator) { 62 item_states_[command_id].accelerator = *accelerator; 66 void StatusIconMenuModel::ChangeLabelForCommandId(int command_id, argument 60 SetAcceleratorForCommandId( int command_id, const ui::Accelerator* accelerator) argument 73 ChangeSublabelForCommandId( int command_id, const base::string16& sublabel) argument 80 ChangeIconForCommandId( int command_id, const gfx::Image& icon) argument 116 GetAcceleratorForCommandId( int command_id, ui::Accelerator* accelerator) argument 149 GetIconForCommandId(int command_id, gfx::Image* image_skia) const argument 173 CommandIdHighlighted(int command_id) argument 178 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 return chrome::IsCommandEnabled(browser_, command_id); 43 bool SystemMenuModelDelegate::GetAcceleratorForCommandId(int command_id, argument 45 return provider_->GetAcceleratorForCommandId(command_id, accelerator); 48 bool SystemMenuModelDelegate::IsItemForCommandIdDynamic(int command_id) const { 49 return command_id == IDC_RESTORE_TAB; 53 int command_id) const { 54 DCHECK_EQ(command_id, IDC_RESTORE_TA 66 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);
|
H A D | cmd_buffer_common.cc | 19 const char* GetCommandName(CommandId command_id) { argument 28 int id = static_cast<int>(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/chrome/browser/ui/app_list/ |
H A D | app_context_menu.cc | 176 bool AppContextMenu::IsItemForCommandIdDynamic(int command_id) const { 177 return command_id == TOGGLE_PIN || command_id == LAUNCH_NEW; 180 base::string16 AppContextMenu::GetLabelForCommandId(int command_id) const { 181 if (command_id == TOGGLE_PIN) { 185 } else if (command_id == LAUNCH_NEW) { 202 bool AppContextMenu::IsCommandIdChecked(int command_id) const { 203 if (command_id >= USE_LAUNCH_TYPE_COMMAND_START && 204 command_id < USE_LAUNCH_TYPE_COMMAND_END) { 206 profile_, app_id_)) + USE_LAUNCH_TYPE_COMMAND_START == command_id; 239 GetAcceleratorForCommandId( int command_id, ui::Accelerator* acclelrator) argument 245 ExecuteCommand(int command_id, int event_flags) argument [all...] |
/external/chromium_org/ash/shell/ |
H A D | context_menu.cc | 33 bool ContextMenu::IsCommandIdChecked(int command_id) const { 34 switch (command_id) { 43 bool ContextMenu::IsCommandIdEnabled(int command_id) const { 48 int command_id, 53 void ContextMenu::ExecuteCommand(int command_id, int event_flags) { argument 55 switch (static_cast<MenuItem>(command_id)) { 47 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 | 36 bool ShelfAlignmentMenu::IsCommandIdChecked(int command_id) const { 38 ->SelectValueForShelfAlignment(MENU_ALIGN_BOTTOM == command_id, 39 MENU_ALIGN_LEFT == command_id, 40 MENU_ALIGN_RIGHT == command_id, 44 bool ShelfAlignmentMenu::IsCommandIdEnabled(int command_id) const { 49 int command_id, 54 void ShelfAlignmentMenu::ExecuteCommand(int command_id, int event_flags) { argument 55 switch (static_cast<MenuItem>(command_id)) { 48 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 | 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/chrome/browser/ui/views/bookmarks/ |
H A D | bookmark_context_menu.cc | 24 // Returns true if |command_id| corresponds to a command that causes one or more 26 bool IsRemoveBookmarksCommand(int command_id) { argument 27 return command_id == IDC_CUT || command_id == IDC_BOOKMARK_BAR_REMOVE; 89 void BookmarkContextMenu::ExecuteCommand(int command_id, int event_flags) { argument 90 controller_->ExecuteCommand(command_id, event_flags); 93 bool BookmarkContextMenu::IsItemChecked(int command_id) const { 94 return controller_->IsCommandIdChecked(command_id); 97 bool BookmarkContextMenu::IsCommandEnabled(int command_id) const { 98 return controller_->IsCommandIdEnabled(command_id); 117 WillExecuteCommand( int command_id, const std::vector<const BookmarkNode*>& bookmarks) argument 124 DidExecuteCommand(int command_id) argument [all...] |