Home
last modified time | relevance | path

Searched refs:TranslateInfoBarDelegate (Results 1 – 25 of 37) sorted by relevance

12

/external/chromium/chrome/browser/translate/
Dtranslate_infobar_delegate.cc24 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 …]
Dtranslate_infobar_delegate.h19 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);
Dtranslate_manager_browsertest.cc86 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 …]
Dtranslate_manager.cc339 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 …]
Doptions_menu_model.h11 class TranslateInfoBarDelegate; variable
18 explicit OptionsMenuModel(TranslateInfoBarDelegate* translate_delegate);
29 TranslateInfoBarDelegate* translate_infobar_delegate_;
Dlanguages_menu_model.h11 class TranslateInfoBarDelegate; variable
22 LanguagesMenuModel(TranslateInfoBarDelegate* translate_delegate,
34 TranslateInfoBarDelegate* translate_infobar_delegate_;
Dtranslate_manager.h27 class TranslateInfoBarDelegate; variable
147 void ShowInfoBar(TabContents* tab, TranslateInfoBarDelegate* infobar);
155 static TranslateInfoBarDelegate* GetTranslateInfoBarDelegate(
/external/chromium/chrome/browser/ui/views/infobars/
Dtranslate_infobar_base.cc22 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()
Dtranslate_infobar_base.h14 class TranslateInfoBarDelegate; variable
25 explicit TranslateInfoBarBase(TranslateInfoBarDelegate* delegate);
40 TranslateInfoBarDelegate* GetDelegate();
Dbefore_translate_infobar.h14 class TranslateInfoBarDelegate; variable
23 explicit BeforeTranslateInfoBar(TranslateInfoBarDelegate* delegate);
Dafter_translate_infobar.h14 class TranslateInfoBarDelegate; variable
23 explicit AfterTranslateInfoBar(TranslateInfoBarDelegate* delegate);
Dtranslate_message_infobar.cc12 TranslateInfoBarDelegate* delegate) in TranslateMessageInfoBar()
41 TranslateInfoBarDelegate* delegate = GetDelegate(); in ViewHierarchyChanged()
Dbefore_translate_infobar.cc16 TranslateInfoBarDelegate* delegate) in BeforeTranslateInfoBar()
117 TranslateInfoBarDelegate* delegate = GetDelegate(); in ViewHierarchyChanged()
165 TranslateInfoBarDelegate* delegate = GetDelegate(); in ButtonPressed()
Dtranslate_message_infobar.h13 explicit TranslateMessageInfoBar(TranslateInfoBarDelegate* delegate);
/external/chromium/chrome/browser/ui/cocoa/translate/
Dtranslate_infobar_unittest.mm26 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 …]
Dtranslate_message_infobar_controller.mm16 TranslateInfoBarDelegate* delegate = [self delegate];
37 TranslateInfoBarDelegate* delegate = [self delegate];
Dtranslate_infobar_base.mm111 // 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/
Dtranslate_infobar_base_gtk.cc33 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()
Dtranslate_infobar_base_gtk.h14 class TranslateInfoBarDelegate; variable
21 explicit TranslateInfoBarBase(TranslateInfoBarDelegate* delegate);
60 TranslateInfoBarDelegate* GetDelegate() const;
Dtranslate_message_infobar_gtk.h11 class TranslateInfoBarDelegate; variable
15 explicit TranslateMessageInfoBar(TranslateInfoBarDelegate* delegate);
Dbefore_translate_infobar_gtk.h11 class TranslateInfoBarDelegate; variable
15 explicit BeforeTranslateInfoBar(TranslateInfoBarDelegate* delegate);
Dafter_translate_infobar_gtk.h12 class TranslateInfoBarDelegate; variable
16 explicit AfterTranslateInfoBar(TranslateInfoBarDelegate* delegate);
Dafter_translate_infobar_gtk.cc15 TranslateInfoBarDelegate* delegate) in AfterTranslateInfoBar()
28 TranslateInfoBarDelegate::GetAfterTranslateStrings( in Init()
Dbefore_translate_infobar_gtk.cc14 TranslateInfoBarDelegate* delegate) in BeforeTranslateInfoBar()
54 TranslateInfoBarDelegate* delegate = GetDelegate(); in Init()
/external/chromium/chrome/browser/tab_contents/
Dinfobar_delegate.h21 class TranslateInfoBarDelegate; variable
95 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate();

12