Lines Matching refs:model_
118 : model_(new AutocompleteEditModel(this, controller, profile)),
139 model_.reset();
175 model_->AcceptInput(alt_held ? NEW_FOREGROUND_TAB : CURRENT_TAB, false);
181 handled = model_->OnEscapeKeyPressed();
186 model_->OnControlKeyChanged(true);
192 if (model_->popup_model()->IsOpen())
193 model_->popup_model()->TryDeletingCurrentItem();
195 model_->OnUpOrDownKeyPressed(-1);
198 model_->OnUpOrDownKeyPressed(1);
204 if (model_->is_keyword_hint()) {
205 handled = model_->AcceptKeyword();
234 model_->OnControlKeyChanged(false);
242 model_->OnSetFocus(false);
250 model_->OnWillKillFocus(NULL);
254 model_->OnKillFocus();
276 return model_.get();
280 return model_.get();
287 AutocompleteEditModel::State model_state = model_->GetStateForTabSwitch();
298 model_->UpdatePermanentText(WideToUTF16Hack(toolbar_model_->GetText()));
313 model_->RestoreState(state->model_state);
335 model_->OpenURL(url, disposition, transition, alternate_nav_url,
345 return model_->user_input_in_progress() || (GetTextLength() == 0);
350 AutocompleteMatch::TypeToIcon(model_->CurrentTextType()) :
361 model_->SetUserText(text);
412 model_->Revert();
417 model_->SetInputInProgress(true);
418 if (!model_->has_focus())
428 model_->StartAutocomplete(!sel.is_empty(), no_inline_autocomplete);
432 model_->StopAutocomplete();
495 const bool something_changed = model_->OnAfterPossibleChange(
499 // If only selection was changed, we don't need to call |model_|'s
508 model_->OnChanged();
576 if (model_->is_keyword_hint() || model_->keyword().empty())
584 model_->ClearKeyword(GetText());
620 model_->OnChanged();
649 gfx::Font(), this, model_.get(), profile, location_bar);