Home
last modified time | relevance | path

Searched refs:command_id (Results 1 – 25 of 67) sorted by relevance

123

/third_party/cef/libcef/browser/
Dsimple_menu_model_impl.cc107 bool CefSimpleMenuModelImpl::AddItem(int command_id, const CefString& label) { in AddItem() argument
111 model_->AddItem(command_id, label); in AddItem()
115 bool CefSimpleMenuModelImpl::AddCheckItem(int command_id, in AddCheckItem() argument
120 model_->AddCheckItem(command_id, label); in AddCheckItem()
124 bool CefSimpleMenuModelImpl::AddRadioItem(int command_id, in AddRadioItem() argument
130 model_->AddRadioItem(command_id, label, group_id); in AddRadioItem()
135 int command_id, in AddSubMenu() argument
141 model_->AddSubMenu(command_id, label, new_menu->model()); in AddSubMenu()
154 int command_id, in InsertItemAt() argument
159 model_->InsertItemAt(index, command_id, label); in InsertItemAt()
[all …]
Dsimple_menu_model_impl.h24 virtual void SetChecked(int command_id, bool checked) = 0;
25 virtual void SetAccelerator(int command_id,
53 bool AddItem(int command_id, const CefString& label) override;
54 bool AddCheckItem(int command_id, const CefString& label) override;
55 bool AddRadioItem(int command_id,
58 CefRefPtr<CefMenuModel> AddSubMenu(int command_id,
61 bool InsertItemAt(int index, int command_id, const CefString& label) override;
63 int command_id,
66 int command_id,
70 int command_id,
[all …]
Dmenu_model_impl.h27 int command_id,
72 bool AddItem(int command_id, const CefString& label) override;
73 bool AddCheckItem(int command_id, const CefString& label) override;
74 bool AddRadioItem(int command_id,
77 CefRefPtr<CefMenuModel> AddSubMenu(int command_id,
80 bool InsertItemAt(int index, int command_id, const CefString& label) override;
82 int command_id,
85 int command_id,
89 int command_id,
91 bool Remove(int command_id) override;
[all …]
Dmenu_model_impl.cc206 int command_id, in Item()
210 command_id_(command_id), in Item()
282 bool CefMenuModelImpl::AddItem(int command_id, const CefString& label) { in AddItem() argument
286 AppendItem(Item(MENUITEMTYPE_COMMAND, command_id, label, kInvalidGroupId)); in AddItem()
290 bool CefMenuModelImpl::AddCheckItem(int command_id, const CefString& label) { in AddCheckItem() argument
294 AppendItem(Item(MENUITEMTYPE_CHECK, command_id, label, kInvalidGroupId)); in AddCheckItem()
298 bool CefMenuModelImpl::AddRadioItem(int command_id, in AddRadioItem() argument
304 AppendItem(Item(MENUITEMTYPE_RADIO, command_id, label, group_id)); in AddRadioItem()
308 CefRefPtr<CefMenuModel> CefMenuModelImpl::AddSubMenu(int command_id, in AddSubMenu() argument
313 Item item(MENUITEMTYPE_SUBMENU, command_id, label, kInvalidGroupId); in AddSubMenu()
[all …]
Dmenu_manager.cc62 void Continue(int command_id, cef_event_flags_t event_flags) override { in Continue() argument
65 RunNow(std::move(callback_), command_id, event_flags); in Continue()
71 this, command_id, event_flags)); in Continue()
81 int command_id, in RunNow() argument
84 std::move(callback).Run(command_id, event_flags); in RunNow()
207 int command_id, in ExecuteCommand() argument
218 browser_, browser_->GetFocusedFrame(), paramsPtr.get(), command_id, in ExecuteCommand()
231 ExecuteDefaultCommand(command_id); in ExecuteCommand()
281 void CefMenuManager::ExecuteCommandCallback(int command_id, in ExecuteCommandCallback() argument
285 if (command_id != kInvalidCommandId) in ExecuteCommandCallback()
[all …]
Dmenu_manager.h49 int command_id,
56 void ExecuteCommandCallback(int command_id, cef_event_flags_t event_flags);
61 void ExecuteDefaultCommand(int command_id);
64 bool IsCustomContextMenuCommand(int command_id);
/third_party/cef/include/
Dcef_menu_model.h90 virtual bool AddItem(int command_id, const CefString& label) = 0;
96 virtual bool AddCheckItem(int command_id, const CefString& label) = 0;
102 virtual bool AddRadioItem(int command_id,
110 virtual CefRefPtr<CefMenuModel> AddSubMenu(int command_id,
126 int command_id,
135 int command_id,
145 int command_id,
155 int command_id,
162 virtual bool Remove(int command_id) = 0;
175 virtual int GetIndexOf(int command_id) = 0;
[all …]
Dcef_context_menu_handler.h61 virtual void Continue(int command_id, EventFlags event_flags) = 0;
122 int command_id, in OnContextMenuCommand() argument
/third_party/cef/libcef_dll/ctocpp/
Dmenu_model_ctocpp.h41 bool AddItem(int command_id, const CefString& label) override;
42 bool AddCheckItem(int command_id, const CefString& label) override;
43 bool AddRadioItem(int command_id,
46 CefRefPtr<CefMenuModel> AddSubMenu(int command_id,
49 bool InsertItemAt(int index, int command_id, const CefString& label) override;
51 int command_id,
54 int command_id,
58 int command_id,
60 bool Remove(int command_id) override;
62 int GetIndexOf(int command_id) override;
[all …]
Dmenu_model_ctocpp.cc108 bool CefMenuModelCToCpp::AddItem(int command_id, const CefString& label) { in AddItem() argument
123 int _retval = _struct->add_item(_struct, command_id, label.GetStruct()); in AddItem()
130 bool CefMenuModelCToCpp::AddCheckItem(int command_id, const CefString& label) { in AddCheckItem() argument
145 int _retval = _struct->add_check_item(_struct, command_id, label.GetStruct()); in AddCheckItem()
152 bool CefMenuModelCToCpp::AddRadioItem(int command_id, in AddRadioItem() argument
170 _struct->add_radio_item(_struct, command_id, label.GetStruct(), group_id); in AddRadioItem()
177 CefRefPtr<CefMenuModel> CefMenuModelCToCpp::AddSubMenu(int command_id, in AddSubMenu() argument
194 _struct->add_sub_menu(_struct, command_id, label.GetStruct()); in AddSubMenu()
218 int command_id, in InsertItemAt() argument
235 _struct->insert_item_at(_struct, index, command_id, label.GetStruct()); in InsertItemAt()
[all …]
Drun_context_menu_callback_ctocpp.cc21 void CefRunContextMenuCallbackCToCpp::Continue(int command_id, in Continue() argument
32 _struct->cont(_struct, command_id, event_flags); in Continue()
/third_party/cef/libcef/browser/chrome/
Dchrome_context_menu_handler.cc41 bool IsCommandIdSupported(int command_id) override { in IsCommandIdSupported() argument
43 if (command_id >= MENU_ID_USER_FIRST && command_id <= MENU_ID_USER_LAST) in IsCommandIdSupported()
47 return GetItemInfo(command_id) != nullptr; in IsCommandIdSupported()
51 bool IsCommandIdEnabled(int command_id) override { in IsCommandIdEnabled() argument
57 bool IsCommandIdChecked(int command_id) override { in IsCommandIdChecked() argument
58 auto* info = GetItemInfo(command_id); in IsCommandIdChecked()
63 bool GetAccelerator(int command_id, ui::Accelerator* accel) override { in GetAccelerator() argument
64 auto* info = GetItemInfo(command_id); in GetAccelerator()
72 void CommandWillBeExecuted(int command_id) override { in CommandWillBeExecuted() argument
74 command_id, EVENTFLAG_NONE)) { in CommandWillBeExecuted()
[all …]
/third_party/cef/include/capi/
Dcef_menu_model_capi.h86 int command_id,
93 int command_id,
101 int command_id,
110 int command_id,
126 int command_id,
135 int command_id,
145 int command_id,
156 int command_id,
163 int(CEF_CALLBACK* remove)(struct _cef_menu_model_t* self, int command_id);
175 int command_id);
[all …]
/third_party/cef/libcef_dll/cpptoc/
Dmenu_model_cpptoc.cc109 int command_id, in menu_model_add_item() argument
125 CefMenuModelCppToC::Get(self)->AddItem(command_id, CefString(label)); in menu_model_add_item()
132 int command_id, in menu_model_add_check_item() argument
148 CefMenuModelCppToC::Get(self)->AddCheckItem(command_id, CefString(label)); in menu_model_add_check_item()
155 int command_id, in menu_model_add_radio_item() argument
172 command_id, CefString(label), group_id); in menu_model_add_radio_item()
180 int command_id, in menu_model_add_sub_menu() argument
196 CefMenuModelCppToC::Get(self)->AddSubMenu(command_id, CefString(label)); in menu_model_add_sub_menu()
221 int command_id, in menu_model_insert_item_at() argument
236 bool _retval = CefMenuModelCppToC::Get(self)->InsertItemAt(index, command_id, in menu_model_insert_item_at()
[all …]
Drun_context_menu_callback_cpptoc.cc24 int command_id, in run_context_menu_callback_cont() argument
35 CefRunContextMenuCallbackCppToC::Get(self)->Continue(command_id, event_flags); in run_context_menu_callback_cont()
/third_party/cef/patch/patches/
Dchrome_browser_context_menus.patch104 int command_id,
106 + if (RenderViewContextMenu::GetAcceleratorForCommandId(command_id, accel))
111 switch (command_id) {
151 bool IsCommandIdChecked(int command_id) const override;
153 + int command_id,
155 void ExecuteCommand(int command_id, int event_flags) override;
182 @@ -15,3 +15,8 @@ bool RenderViewContextMenuObserver::IsCommandIdChecked(int command_id) {
183 bool RenderViewContextMenuObserver::IsCommandIdEnabled(int command_id) {
187 +bool RenderViewContextMenuObserver::GetAccelerator(int command_id,
207 virtual bool IsCommandIdChecked(int command_id);
[all …]
Dviews_1749_2102.patch279 + // Override the text color of a given menu item dependent on the |command_id|
282 + virtual bool GetTextColor(int command_id,
288 + // |command_id| and its |is_hovered| state. Returns true if it chooses to
290 + virtual bool GetBackgroundColor(int command_id,
395 +bool MenuModelAdapter::GetTextColor(int command_id,
401 + if (ui::MenuModel::GetModelAndIndexForCommandId(command_id, &model, &index))
408 +bool MenuModelAdapter::GetBackgroundColor(int command_id,
411 + if (command_id == -1)
416 + if (ui::MenuModel::GetModelAndIndexForCommandId(command_id, &model, &index))
441 + bool GetTextColor(int command_id,
[all …]
/third_party/cef/libcef/browser/views/
Dtextfield_impl.cc10 static int CefCommandIdToChromeId(cef_text_field_commands_t command_id) { in CefCommandIdToChromeId() argument
11 switch (command_id) { in CefCommandIdToChromeId()
176 bool CefTextfieldImpl::IsCommandEnabled(cef_text_field_commands_t command_id) { in IsCommandEnabled() argument
178 return root_view()->IsCommandIdEnabled(CefCommandIdToChromeId(command_id)); in IsCommandEnabled()
181 void CefTextfieldImpl::ExecuteCommand(cef_text_field_commands_t command_id) { in ExecuteCommand() argument
183 if (root_view()->IsCommandIdEnabled(CefCommandIdToChromeId(command_id))) in ExecuteCommand()
184 root_view()->ExecuteCommand(CefCommandIdToChromeId(command_id), in ExecuteCommand()
Dwindow_impl.cc587 void CefWindowImpl::SetAccelerator(int command_id, in SetAccelerator() argument
596 AcceleratorMap::const_iterator it = accelerator_map_.find(command_id); in SetAccelerator()
598 RemoveAccelerator(command_id); in SetAccelerator()
610 accelerator_map_.insert(std::make_pair(command_id, accelerator)); in SetAccelerator()
618 void CefWindowImpl::RemoveAccelerator(int command_id) { in RemoveAccelerator() argument
623 AcceleratorMap::iterator it = accelerator_map_.find(command_id); in RemoveAccelerator()
/third_party/gstreamer/gstplugins_good/sys/rpicamsrc/
DRaspiPreview.c243 int command_id, used = 0, num_parameters;
248command_id = raspicli_get_command_id(cmdline_commands, cmdline_commands_size, arg1, &num_parameter…
251 if (command_id==-1 || (command_id != -1 && num_parameters > 0 && arg2 == NULL))
254 switch (command_id)
DRaspiCLI.c65 int command_id = -1; in raspicli_get_command_id() local
81 command_id = commands[j].id; in raspicli_get_command_id()
87 return command_id; in raspicli_get_command_id()
/third_party/cef/include/views/
Dcef_textfield.h227 virtual bool IsCommandEnabled(cef_text_field_commands_t command_id) = 0;
233 virtual void ExecuteCommand(cef_text_field_commands_t command_id) = 0;
Dcef_window.h333 virtual void SetAccelerator(int command_id,
343 virtual void RemoveAccelerator(int command_id) = 0;
/third_party/cef/tests/cefclient/browser/
Dviews_menu_bar.h31 int command_id,
83 int command_id,
Dviews_window.cc460 int command_id, in ExecuteCommand() argument
465 if (command_id == ID_QUIT) { in ExecuteCommand()
467 } else if (command_id >= ID_TESTS_FIRST && command_id <= ID_TESTS_LAST) { in ExecuteCommand()
468 delegate_->OnTest(command_id); in ExecuteCommand()
623 bool ViewsWindow::OnAccelerator(CefRefPtr<CefWindow> window, int command_id) { in OnAccelerator() argument
626 if (command_id == ID_QUIT) { in OnAccelerator()
756 int command_id, in MenuBarExecuteCommand() argument
758 ExecuteCommand(menu_model, command_id, event_flags); in MenuBarExecuteCommand()

123