/external/chromium/chrome/browser/translate/ |
D | translate_infobar_delegate.cc | 24 const size_t TranslateInfoBarDelegate::kNoIndex = static_cast<size_t>(-1); 27 TranslateInfoBarDelegate* TranslateInfoBarDelegate::CreateDelegate( in CreateDelegate() 42 TranslateInfoBarDelegate* delegate = in CreateDelegate() 43 new TranslateInfoBarDelegate(type, TranslateErrors::NONE, tab_contents, in CreateDelegate() 49 TranslateInfoBarDelegate* TranslateInfoBarDelegate::CreateErrorDelegate( in CreateErrorDelegate() 54 return new TranslateInfoBarDelegate(TRANSLATION_ERROR, error, tab_contents, in CreateErrorDelegate() 58 TranslateInfoBarDelegate::~TranslateInfoBarDelegate() { in ~TranslateInfoBarDelegate() 61 std::string TranslateInfoBarDelegate::GetLanguageCodeAt(size_t index) const { in GetLanguageCodeAt() 66 string16 TranslateInfoBarDelegate::GetLanguageDisplayableNameAt( in GetLanguageDisplayableNameAt() 72 std::string TranslateInfoBarDelegate::GetOriginalLanguageCode() const { in GetOriginalLanguageCode() [all …]
|
D | translate_infobar_delegate.h | 19 class TranslateInfoBarDelegate : public InfoBarDelegate { 43 static TranslateInfoBarDelegate* CreateDelegate( 50 static TranslateInfoBarDelegate* CreateErrorDelegate( 56 virtual ~TranslateInfoBarDelegate(); 133 void UpdateBackgroundAnimation(TranslateInfoBarDelegate* previous_infobar); 151 TranslateInfoBarDelegate(Type infobar_type, 167 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); 207 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate);
|
D | translate_manager_browsertest.cc | 86 TranslateInfoBarDelegate* GetTranslateInfoBar() { in GetTranslateInfoBar() 128 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); in DenyTranslation() 285 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); in TEST_F() 287 EXPECT_EQ(TranslateInfoBarDelegate::BEFORE_TRANSLATE, infobar->type()); in TEST_F() 296 EXPECT_EQ(TranslateInfoBarDelegate::TRANSLATING, infobar->type()); in TEST_F() 316 EXPECT_EQ(TranslateInfoBarDelegate::AFTER_TRANSLATE, infobar->type()); in TEST_F() 329 TranslateInfoBarDelegate* new_infobar = GetTranslateInfoBar(); in TEST_F() 353 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); in TEST_F() 355 EXPECT_EQ(TranslateInfoBarDelegate::BEFORE_TRANSLATE, infobar->type()); in TEST_F() 369 EXPECT_EQ(TranslateInfoBarDelegate::TRANSLATION_ERROR, infobar->type()); in TEST_F() [all …]
|
D | translate_manager.cc | 339 ShowInfoBar(tab, TranslateInfoBarDelegate::CreateErrorDelegate( in OnURLFetchComplete() 431 tab->AddInfoBar(TranslateInfoBarDelegate::CreateDelegate( in InitiateTranslation() 432 TranslateInfoBarDelegate::BEFORE_TRANSLATE, tab, page_lang, target_lang)); in InitiateTranslation() 459 TranslateInfoBarDelegate* infobar = TranslateInfoBarDelegate::CreateDelegate( in TranslatePage() 460 TranslateInfoBarDelegate::TRANSLATING, tab_contents, in TranslatePage() 558 TranslateInfoBarDelegate* infobar; in PageTranslated() 560 infobar = TranslateInfoBarDelegate::CreateErrorDelegate(details->error_type, in PageTranslated() 567 infobar = TranslateInfoBarDelegate::CreateErrorDelegate( in PageTranslated() 571 infobar = TranslateInfoBarDelegate::CreateDelegate( in PageTranslated() 572 TranslateInfoBarDelegate::AFTER_TRANSLATE, tab, in PageTranslated() [all …]
|
D | options_menu_model.h | 11 class TranslateInfoBarDelegate; variable 18 explicit OptionsMenuModel(TranslateInfoBarDelegate* translate_delegate); 29 TranslateInfoBarDelegate* translate_infobar_delegate_;
|
D | languages_menu_model.h | 11 class TranslateInfoBarDelegate; variable 22 LanguagesMenuModel(TranslateInfoBarDelegate* translate_delegate, 34 TranslateInfoBarDelegate* translate_infobar_delegate_;
|
D | translate_manager.h | 27 class TranslateInfoBarDelegate; variable 147 void ShowInfoBar(TabContents* tab, TranslateInfoBarDelegate* infobar); 155 static TranslateInfoBarDelegate* GetTranslateInfoBarDelegate(
|
/external/chromium/chrome/browser/ui/views/infobars/ |
D | translate_infobar_base.cc | 22 InfoBar* TranslateInfoBarDelegate::CreateInfoBar() { in CreateInfoBar() 47 TranslateInfoBarBase::TranslateInfoBarBase(TranslateInfoBarDelegate* delegate) in TranslateInfoBarBase() 62 TranslateInfoBarDelegate::BackgroundAnimationType animation = in ViewHierarchyChanged() 64 if (animation == TranslateInfoBarDelegate::NORMAL_TO_ERROR) { in ViewHierarchyChanged() 66 } else if (animation == TranslateInfoBarDelegate::ERROR_TO_NORMAL) { in ViewHierarchyChanged() 81 TranslateInfoBarDelegate* delegate = GetDelegate(); in UpdateLanguageButtonText() 91 TranslateInfoBarDelegate* TranslateInfoBarBase::GetDelegate() { in GetDelegate()
|
D | translate_infobar_base.h | 14 class TranslateInfoBarDelegate; variable 25 explicit TranslateInfoBarBase(TranslateInfoBarDelegate* delegate); 40 TranslateInfoBarDelegate* GetDelegate();
|
D | before_translate_infobar.h | 14 class TranslateInfoBarDelegate; variable 23 explicit BeforeTranslateInfoBar(TranslateInfoBarDelegate* delegate);
|
D | after_translate_infobar.h | 14 class TranslateInfoBarDelegate; variable 23 explicit AfterTranslateInfoBar(TranslateInfoBarDelegate* delegate);
|
D | translate_message_infobar.cc | 12 TranslateInfoBarDelegate* delegate) in TranslateMessageInfoBar() 41 TranslateInfoBarDelegate* delegate = GetDelegate(); in ViewHierarchyChanged()
|
D | before_translate_infobar.cc | 16 TranslateInfoBarDelegate* delegate) in BeforeTranslateInfoBar() 117 TranslateInfoBarDelegate* delegate = GetDelegate(); in ViewHierarchyChanged() 165 TranslateInfoBarDelegate* delegate = GetDelegate(); in ButtonPressed()
|
D | translate_message_infobar.h | 13 explicit TranslateMessageInfoBar(TranslateInfoBarDelegate* delegate);
|
/external/chromium/chrome/browser/ui/cocoa/translate/ |
D | translate_infobar_unittest.mm | 26 TranslateInfoBarDelegate::Type kTranslateToolbarStates[] = { 27 TranslateInfoBarDelegate::BEFORE_TRANSLATE, 28 TranslateInfoBarDelegate::AFTER_TRANSLATE, 29 TranslateInfoBarDelegate::TRANSLATING, 30 TranslateInfoBarDelegate::TRANSLATION_ERROR 33 class MockTranslateInfoBarDelegate : public TranslateInfoBarDelegate { 35 MockTranslateInfoBarDelegate(TranslateInfoBarDelegate::Type type, 38 : TranslateInfoBarDelegate(type, error, contents, "en", "es"){ 90 CreateInfoBar(TranslateInfoBarDelegate::BEFORE_TRANSLATE); 93 void CreateInfoBar(TranslateInfoBarDelegate::Type type) { [all …]
|
D | translate_message_infobar_controller.mm | 16 TranslateInfoBarDelegate* delegate = [self delegate]; 37 TranslateInfoBarDelegate* delegate = [self delegate];
|
D | translate_infobar_base.mm | 111 // TranslateInfoBarDelegate views specific method: 112 InfoBar* TranslateInfoBarDelegate::CreateInfoBar() { 195 - (TranslateInfoBarDelegate*)delegate { 196 return reinterpret_cast<TranslateInfoBarDelegate*>(delegate_); 220 DCHECK_NE(TranslateInfoBarDelegate::kNoIndex, newLanguageIdxSizeT); 231 DCHECK_NE(TranslateInfoBarDelegate::kNoIndex, newLanguageIdxSizeT); 512 TranslateInfoBarDelegate* delegate = [self delegate]; 513 TranslateInfoBarDelegate::Type state = delegate->type(); 514 DCHECK(state == TranslateInfoBarDelegate::BEFORE_TRANSLATE || 515 state == TranslateInfoBarDelegate::TRANSLATION_ERROR); [all …]
|
/external/chromium/chrome/browser/ui/gtk/infobars/ |
D | translate_infobar_base_gtk.cc | 33 TranslateInfoBarBase::TranslateInfoBarBase(TranslateInfoBarDelegate* delegate) in TranslateInfoBarBase() 35 TranslateInfoBarDelegate::BackgroundAnimationType animation = in TranslateInfoBarBase() 37 if (animation != TranslateInfoBarDelegate::NONE) { in TranslateInfoBarBase() 41 if (animation == TranslateInfoBarDelegate::NORMAL_TO_ERROR) { in TranslateInfoBarBase() 44 DCHECK_EQ(TranslateInfoBarDelegate::ERROR_TO_NORMAL, animation); in TranslateInfoBarBase() 144 TranslateInfoBarDelegate* delegate = GetDelegate(); in CreateLanguageCombobox() 187 TranslateInfoBarDelegate* TranslateInfoBarBase::GetDelegate() const { in GetDelegate() 188 return static_cast<TranslateInfoBarDelegate*>(delegate()); in GetDelegate() 221 InfoBar* TranslateInfoBarDelegate::CreateInfoBar() { in CreateInfoBar()
|
D | translate_infobar_base_gtk.h | 14 class TranslateInfoBarDelegate; variable 21 explicit TranslateInfoBarBase(TranslateInfoBarDelegate* delegate); 60 TranslateInfoBarDelegate* GetDelegate() const;
|
D | translate_message_infobar_gtk.h | 11 class TranslateInfoBarDelegate; variable 15 explicit TranslateMessageInfoBar(TranslateInfoBarDelegate* delegate);
|
D | before_translate_infobar_gtk.h | 11 class TranslateInfoBarDelegate; variable 15 explicit BeforeTranslateInfoBar(TranslateInfoBarDelegate* delegate);
|
D | after_translate_infobar_gtk.h | 12 class TranslateInfoBarDelegate; variable 16 explicit AfterTranslateInfoBar(TranslateInfoBarDelegate* delegate);
|
D | after_translate_infobar_gtk.cc | 15 TranslateInfoBarDelegate* delegate) in AfterTranslateInfoBar() 28 TranslateInfoBarDelegate::GetAfterTranslateStrings( in Init()
|
D | before_translate_infobar_gtk.cc | 14 TranslateInfoBarDelegate* delegate) in BeforeTranslateInfoBar() 54 TranslateInfoBarDelegate* delegate = GetDelegate(); in Init()
|
/external/chromium/chrome/browser/tab_contents/ |
D | infobar_delegate.h | 21 class TranslateInfoBarDelegate; variable 95 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate();
|