Searched refs:ui_delegate_ (Results 1 – 4 of 4) sorted by relevance
14 : ui_delegate_(ui_delegate.Pass()), in TranslateBubbleModelImpl()31 ui_delegate_->OnErrorShown(error_type); in ShowError()39 return ui_delegate_->GetNumberOfLanguages(); in GetNumberOfLanguages()43 return ui_delegate_->GetLanguageNameAt(index); in GetLanguageNameAt()47 return ui_delegate_->GetOriginalLanguageIndex(); in GetOriginalLanguageIndex()51 ui_delegate_->UpdateOriginalLanguageIndex(index); in UpdateOriginalLanguageIndex()55 return ui_delegate_->GetTargetLanguageIndex(); in GetTargetLanguageIndex()59 ui_delegate_->UpdateTargetLanguageIndex(index); in UpdateTargetLanguageIndex()63 ui_delegate_->SetLanguageBlocked(value); in SetNeverTranslateLanguage()67 ui_delegate_->SetSiteBlacklist(value); in SetNeverTranslateSite()[all …]
44 scoped_ptr<TranslateUIDelegate> ui_delegate_;
95 ui_delegate_.UpdateOriginalLanguageIndex(language_index); in UpdateOriginalLanguageIndex()100 ui_delegate_.UpdateTargetLanguageIndex(language_index); in UpdateTargetLanguageIndex()104 ui_delegate_.Translate(); in Translate()108 ui_delegate_.RevertTranslation(); in RevertTranslation()118 ui_delegate_.TranslationDeclined(false); in TranslationDeclined()130 if (ui_delegate_.IsLanguageBlocked()) { in ToggleTranslatableLanguageByPrefs()131 ui_delegate_.SetLanguageBlocked(false); in ToggleTranslatableLanguageByPrefs()133 ui_delegate_.SetLanguageBlocked(true); in ToggleTranslatableLanguageByPrefs()139 return ui_delegate_.IsSiteBlacklisted(); in IsSiteBlacklisted()143 if (ui_delegate_.IsSiteBlacklisted()) { in ToggleSiteBlacklist()[all …]
73 size_t num_languages() const { return ui_delegate_.GetNumberOfLanguages(); } in num_languages()77 return ui_delegate_.GetLanguageCodeAt(index); in language_code_at()82 return ui_delegate_.GetLanguageNameAt(index); in language_name_at()90 return ui_delegate_.GetOriginalLanguageIndex(); in original_language_index()95 return ui_delegate_.GetTargetLanguageIndex(); in target_language_index()101 return ui_delegate_.GetOriginalLanguageCode(); in original_language_code()104 return ui_delegate_.GetTargetLanguageCode(); in target_language_code()207 TranslateUIDelegate ui_delegate_; variable