• Home
  • Raw
  • Download

Lines Matching refs:model_

102   model_ = new CefMenuModelImpl(this, nullptr, false);  in CefMenuManager()
108 model_->set_delegate(nullptr); in ~CefMenuManager()
136 model_->Clear(); in CreateContextMenu()
154 model_.get()); in CreateContextMenu()
156 MenuWillShow(model_); in CreateContextMenu()
158 if (model_->GetCount() > 0) { in CreateContextMenu()
169 model_.get(), callbackImpl.get())) { in CreateContextMenu()
182 DCHECK(model_->VerifyRefCount()); in CreateContextMenu()
185 if (model_->GetCount() == 0 && !custom_menu) { in CreateContextMenu()
186 MenuClosed(model_); in CreateContextMenu()
194 return runner_->RunContextMenu(browser_, model_.get(), params_); in CreateContextMenu()
236 if (source.get() != model_.get()) in MenuWillShow()
252 if (source.get() != model_.get()) in MenuClosed()
286 ExecuteCommand(model_, command_id, event_flags); in ExecuteCommandCallback()
287 MenuClosed(model_); in ExecuteCommandCallback()
299 model_->AddMenuItem(*new_item); in CreateDefaultModel()
306 model_->AddItem(MENU_ID_UNDO, GetLabel(IDS_CONTENT_CONTEXT_UNDO)); in CreateDefaultModel()
307 model_->AddItem(MENU_ID_REDO, GetLabel(IDS_CONTENT_CONTEXT_REDO)); in CreateDefaultModel()
309 model_->AddSeparator(); in CreateDefaultModel()
310 model_->AddItem(MENU_ID_CUT, GetLabel(IDS_CONTENT_CONTEXT_CUT)); in CreateDefaultModel()
311 model_->AddItem(MENU_ID_COPY, GetLabel(IDS_CONTENT_CONTEXT_COPY)); in CreateDefaultModel()
312 model_->AddItem(MENU_ID_PASTE, GetLabel(IDS_CONTENT_CONTEXT_PASTE)); in CreateDefaultModel()
314 model_->AddSeparator(); in CreateDefaultModel()
315 model_->AddItem(MENU_ID_SELECT_ALL, in CreateDefaultModel()
319 model_->SetEnabled(MENU_ID_UNDO, false); in CreateDefaultModel()
321 model_->SetEnabled(MENU_ID_REDO, false); in CreateDefaultModel()
323 model_->SetEnabled(MENU_ID_CUT, false); in CreateDefaultModel()
325 model_->SetEnabled(MENU_ID_COPY, false); in CreateDefaultModel()
327 model_->SetEnabled(MENU_ID_PASTE, false); in CreateDefaultModel()
329 model_->SetEnabled(MENU_ID_DELETE, false); in CreateDefaultModel()
331 model_->SetEnabled(MENU_ID_SELECT_ALL, false); in CreateDefaultModel()
336 model_->AddSeparator(); in CreateDefaultModel()
343 model_->AddItem(MENU_ID_SPELLCHECK_SUGGESTION_0 + static_cast<int>(i), in CreateDefaultModel()
349 model_->AddSeparator(); in CreateDefaultModel()
351 model_->AddItem(MENU_ID_NO_SPELLING_SUGGESTIONS, in CreateDefaultModel()
353 model_->SetEnabled(MENU_ID_NO_SPELLING_SUGGESTIONS, false); in CreateDefaultModel()
356 model_->AddItem(MENU_ID_ADD_TO_DICTIONARY, in CreateDefaultModel()
361 model_->AddItem(MENU_ID_COPY, GetLabel(IDS_CONTENT_CONTEXT_COPY)); in CreateDefaultModel()
364 model_->AddItem(MENU_ID_BACK, GetLabel(IDS_CONTENT_CONTEXT_BACK)); in CreateDefaultModel()
365 model_->AddItem(MENU_ID_FORWARD, GetLabel(IDS_CONTENT_CONTEXT_FORWARD)); in CreateDefaultModel()
367 model_->AddSeparator(); in CreateDefaultModel()
368 model_->AddItem(MENU_ID_PRINT, GetLabel(IDS_CONTENT_CONTEXT_PRINT)); in CreateDefaultModel()
369 model_->AddItem(MENU_ID_VIEW_SOURCE, in CreateDefaultModel()
373 model_->SetEnabled(MENU_ID_BACK, false); in CreateDefaultModel()
375 model_->SetEnabled(MENU_ID_FORWARD, false); in CreateDefaultModel()