Home | History | Annotate | Download | only in status

Lines Matching refs:model_

65 // Constants to specify the type of items in |model_|.
127 model_(NULL),
130 // 0 when |model_| is NULL.
258 if (!model_.get()) {
263 return model_->GetItemCount();
483 model_.reset(new ui::SimpleMenuModel(NULL));
493 model_->AddRadioItem(COMMAND_ID_INPUT_METHODS, dummy_label, i);
503 model_->AddSeparator();
506 model_->AddRadioItem(COMMAND_ID_IME_PROPERTIES, dummy_label, i);
515 model_->AddSeparator();
517 model_->AddRadioItem(COMMAND_ID_CUSTOMIZE_LANGUAGE, dummy_label,
524 DCHECK(model_.get());
525 if (index >= model_->GetItemCount()) {
529 return ((model_->GetTypeAt(index) == ui::MenuModel::TYPE_RADIO) &&
530 (model_->GetCommandIdAt(index) == COMMAND_ID_INPUT_METHODS) &&
538 DCHECK(model_.get());
539 if (index >= model_->GetItemCount()) {
543 if ((model_->GetTypeAt(index) == ui::MenuModel::TYPE_RADIO) &&
544 (model_->GetCommandIdAt(index) == COMMAND_ID_IME_PROPERTIES)) {
545 const int tmp_property_index = model_->GetGroupIdAt(index);
558 DCHECK(model_.get());
559 if (index >= model_->GetItemCount()) {
563 return ((model_->GetTypeAt(index) == ui::MenuModel::TYPE_RADIO) &&
564 (model_->GetCommandIdAt(index) == COMMAND_ID_CUSTOMIZE_LANGUAGE));