/external/chromium_org/chrome/browser/translate/ |
D | translate_infobar_delegate.cc | 29 const size_t TranslateInfoBarDelegate::kNoIndex = TranslateUIDelegate::NO_INDEX; 31 TranslateInfoBarDelegate::~TranslateInfoBarDelegate() { in ~TranslateInfoBarDelegate() 35 void TranslateInfoBarDelegate::Create( in Create() 57 if ((infobar_type == TranslateInfoBarDelegate::AFTER_TRANSLATE) || in Create() 58 (infobar_type == TranslateInfoBarDelegate::TRANSLATING)) { in Create() 70 TranslateInfoBarDelegate* old_delegate = NULL; in Create() 83 scoped_ptr<TranslateInfoBarDelegate>(new TranslateInfoBarDelegate( in Create() 93 void TranslateInfoBarDelegate::UpdateOriginalLanguageIndex( in UpdateOriginalLanguageIndex() 98 void TranslateInfoBarDelegate::UpdateTargetLanguageIndex( in UpdateTargetLanguageIndex() 103 void TranslateInfoBarDelegate::Translate() { in Translate() [all …]
|
D | translate_infobar_delegate.h | 29 class TranslateInfoBarDelegate : public InfoBarDelegate { 48 virtual ~TranslateInfoBarDelegate(); 176 TranslateInfoBarDelegate(content::WebContents* web_contents, 178 TranslateInfoBarDelegate* old_delegate, 191 scoped_ptr<TranslateInfoBarDelegate> delegate); 199 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate() OVERRIDE; 217 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate);
|
D | translate_browsertest.cc | 76 TranslateInfoBarDelegate* GetExistingTranslateInfoBarDelegate() { in GetExistingTranslateInfoBarDelegate() 88 TranslateInfoBarDelegate* delegate = NULL; in GetExistingTranslateInfoBarDelegate() 99 TranslateInfoBarDelegate* translate = infobar_service_->infobar_at(i)-> in GetExistingTranslateInfoBarDelegate() 133 TranslateInfoBarDelegate* translate = GetExistingTranslateInfoBarDelegate(); in IN_PROC_BROWSER_TEST_F() 201 TranslateInfoBarDelegate* translate = GetExistingTranslateInfoBarDelegate(); in IN_PROC_BROWSER_TEST_F() 236 TranslateInfoBarDelegate* translate = GetExistingTranslateInfoBarDelegate(); in IN_PROC_BROWSER_TEST_F() 270 TranslateInfoBarDelegate* translate = GetExistingTranslateInfoBarDelegate(); in IN_PROC_BROWSER_TEST_F() 304 TranslateInfoBarDelegate* translate = GetExistingTranslateInfoBarDelegate(); in IN_PROC_BROWSER_TEST_F() 338 TranslateInfoBarDelegate* translate = GetExistingTranslateInfoBarDelegate(); in IN_PROC_BROWSER_TEST_F()
|
D | translate_manager_browsertest.cc | 153 TranslateInfoBarDelegate* GetTranslateInfoBar() { in GetTranslateInfoBar() 185 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); in DenyTranslation() 424 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); in TEST_F() 426 EXPECT_EQ(TranslateInfoBarDelegate::BEFORE_TRANSLATE, in TEST_F() 436 EXPECT_EQ(TranslateInfoBarDelegate::TRANSLATING, infobar->infobar_type()); in TEST_F() 455 EXPECT_EQ(TranslateInfoBarDelegate::AFTER_TRANSLATE, infobar->infobar_type()); in TEST_F() 488 EXPECT_EQ(TranslateInfoBarDelegate::BEFORE_TRANSLATE, in TEST_F() 495 EXPECT_EQ(TranslateInfoBarDelegate::TRANSLATING, infobar->infobar_type()); in TEST_F() 503 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); in TEST_F() 505 EXPECT_EQ(TranslateInfoBarDelegate::BEFORE_TRANSLATE, in TEST_F() [all …]
|
D | options_menu_model.h | 10 class TranslateInfoBarDelegate; variable 17 explicit OptionsMenuModel(TranslateInfoBarDelegate* translate_delegate); 29 TranslateInfoBarDelegate* translate_infobar_delegate_;
|
/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_;
|
/external/chromium_org/chrome/browser/ui/android/infobars/ |
D | translate_infobar.cc | 19 scoped_ptr<InfoBar> TranslateInfoBarDelegate::CreateInfoBar( in CreateInfoBar() 20 scoped_ptr<TranslateInfoBarDelegate> delegate) { in CreateInfoBar() 28 scoped_ptr<TranslateInfoBarDelegate> delegate) in TranslateInfoBar() 38 TranslateInfoBarDelegate* delegate = GetDelegate(); in CreateRenderInfoBar() 58 TranslateInfoBarDelegate* delegate = GetDelegate(); in ProcessButton() 75 TranslateInfoBarDelegate* delegate = GetDelegate(); in PassJavaInfoBar() 76 DCHECK_NE(TranslateInfoBarDelegate::BEFORE_TRANSLATE, in PassJavaInfoBar() 92 TranslateInfoBarDelegate* delegate = GetDelegate(); in ApplyTranslateOptions() 108 TranslateInfoBarDelegate::Type new_type) { in TransferOwnership() 124 TranslateInfoBarDelegate* delegate = GetDelegate(); in ShouldDisplayNeverTranslateInfoBarOnCancel() [all …]
|
D | translate_infobar.h | 15 explicit TranslateInfoBar(scoped_ptr<TranslateInfoBarDelegate> delegate); 36 TranslateInfoBarDelegate::Type new_type); 40 TranslateInfoBarDelegate* GetDelegate();
|
/external/chromium_org/chrome/browser/ui/gtk/infobars/ |
D | translate_infobar_base_gtk.cc | 25 scoped_ptr<InfoBar> TranslateInfoBarDelegate::CreateInfoBar( in CreateInfoBar() 26 scoped_ptr<TranslateInfoBarDelegate> delegate) { in CreateInfoBar() 38 scoped_ptr<TranslateInfoBarDelegate> delegate) in TranslateInfoBarBase() 41 TranslateInfoBarDelegate* translate_delegate = GetDelegate(); in TranslateInfoBarBase() 43 TranslateInfoBarDelegate::BackgroundAnimationType animation = in TranslateInfoBarBase() 45 if (animation != TranslateInfoBarDelegate::NONE) { in TranslateInfoBarBase() 49 if (animation == TranslateInfoBarDelegate::NORMAL_TO_ERROR) { in TranslateInfoBarBase() 52 DCHECK_EQ(TranslateInfoBarDelegate::ERROR_TO_NORMAL, animation); in TranslateInfoBarBase() 156 TranslateInfoBarDelegate* delegate = GetDelegate(); in CreateLanguageCombobox() 199 TranslateInfoBarDelegate* TranslateInfoBarBase::GetDelegate() { in GetDelegate() [all …]
|
D | after_translate_infobar_gtk.cc | 18 scoped_ptr<TranslateInfoBarDelegate> delegate) in AfterTranslateInfoBar() 32 TranslateInfoBarDelegate::kNoIndex; in PlatformSpecificSetOwner() 35 TranslateInfoBarDelegate::GetAfterTranslateStrings( in PlatformSpecificSetOwner() 51 target_language_index : TranslateInfoBarDelegate::kNoIndex); in PlatformSpecificSetOwner() 58 TranslateInfoBarDelegate::kNoIndex); in PlatformSpecificSetOwner()
|
D | translate_infobar_base_gtk.h | 12 class TranslateInfoBarDelegate; variable 18 explicit TranslateInfoBarBase(scoped_ptr<TranslateInfoBarDelegate> delegate); 47 TranslateInfoBarDelegate* GetDelegate();
|
/external/chromium_org/chrome/browser/ui/cocoa/infobars/ |
D | translate_infobar_unittest.mm | 30 TranslateInfoBarDelegate::Type kTranslateToolbarStates[] = { 31 TranslateInfoBarDelegate::BEFORE_TRANSLATE, 32 TranslateInfoBarDelegate::AFTER_TRANSLATE, 33 TranslateInfoBarDelegate::TRANSLATING, 34 TranslateInfoBarDelegate::TRANSLATION_ERROR 37 class MockTranslateInfoBarDelegate : public TranslateInfoBarDelegate { 40 TranslateInfoBarDelegate::Type type, 44 : TranslateInfoBarDelegate(web_contents, type, NULL, "en", "es", error, 86 void CreateInfoBar(TranslateInfoBarDelegate::Type type) { 88 if (type == TranslateInfoBarDelegate::TRANSLATION_ERROR) [all …]
|
/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();
|
/external/chromium_org/chrome/browser/ui/views/infobars/ |
D | translate_infobar_base.cc | 24 scoped_ptr<InfoBar> TranslateInfoBarDelegate::CreateInfoBar( in CreateInfoBar() 25 scoped_ptr<TranslateInfoBarDelegate> delegate) { in CreateInfoBar() 51 scoped_ptr<TranslateInfoBarDelegate> delegate) in TranslateInfoBarBase() 66 TranslateInfoBarDelegate::BackgroundAnimationType animation = in ViewHierarchyChanged() 68 if (animation == TranslateInfoBarDelegate::NORMAL_TO_ERROR) { in ViewHierarchyChanged() 70 } else if (animation == TranslateInfoBarDelegate::ERROR_TO_NORMAL) { in ViewHierarchyChanged() 82 TranslateInfoBarDelegate* TranslateInfoBarBase::GetDelegate() { in GetDelegate()
|
D | translate_language_menu_model.h | 11 class TranslateInfoBarDelegate; variable 28 TranslateInfoBarDelegate* infobar_delegate, 46 TranslateInfoBarDelegate* infobar_delegate_;
|
D | translate_infobar_base.h | 12 class TranslateInfoBarDelegate; variable 27 explicit TranslateInfoBarBase(scoped_ptr<TranslateInfoBarDelegate> delegate); 35 TranslateInfoBarDelegate* GetDelegate();
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/infobar/ |
D | TranslateInfoBarDelegate.java | 12 public class TranslateInfoBarDelegate { class 15 private TranslateInfoBarDelegate() {} in TranslateInfoBarDelegate() method in TranslateInfoBarDelegate 18 public static TranslateInfoBarDelegate create() { in create() 19 return new TranslateInfoBarDelegate(); in create()
|
/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 …]
|
/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()
|