Home | History | Annotate | Download | only in translate

Lines Matching refs:Translate

13 #include "chrome/browser/translate/translate_infobar_delegate.h"
14 #include "chrome/browser/translate/translate_manager.h"
15 #include "chrome/browser/translate/translate_prefs.h"
84 // Returns the translate infobar if there is 1 infobar and it is a translate
92 // If there is 1 infobar and it is a translate infobar, closes it and returns
125 // If there is 1 infobar and it is a translate infobar, deny translation and
152 // Also clears the translate script so it is fetched everytime and sets the
289 // Simulate clicking translate.
291 infobar->Translate();
298 // Simulate the translate script being retrieved (it only needs to be done
313 // The after translate infobar should be showing.
357 // Simulate clicking translate.
359 infobar->Translate();
360 // Simulate a failure retrieving the translate script.
363 // We should not have sent any message to translate to the renderer.
373 // the language (the translate server may or not detect the language).
382 // Translate the page anyway throught the context menu.
389 SimulateURLFetch(false); // Simulate a failure to fetch the translate script.
402 // The after translate infobar should be showing.
440 // true if we expect a translate infobar for that language.
488 // We should not have a translate infobar.
506 // Tests auto-translate on page.
514 infobar->Translate();
515 SimulateURLFetch(true); // Simulate the translate script being retrieved.
536 // This should not have triggered a translate.
545 // Simulate clicking 'Nope' (don't translate).
615 // Tests that a closed translate infobar does not reappear when navigating
634 // Tests that a closed translate infobar does not reappear when navigating
665 // Simulate clicking 'Nope' (don't translate).
686 infobar->Translate();
687 SimulateURLFetch(true); // Simulate the translate script being retrieved.
700 // the auto-translate feature (it would translate the page automatically and
701 // the before translate inforbar would not be shown).
706 // Tests that the after translate the infobar still shows when navigating
715 infobar->Translate();
716 SimulateURLFetch(true); // Simulate the translate script being retrieved.
719 // The after translate infobar is showing.
740 // Tests that no translate infobar is shown when navigating to a page in an
759 infobar->Translate();
785 // Tests that no translate infobar is shown when Chrome is in a language that
786 // the translate server does not support.
793 // Simulate navigating to a page in a language supported by the translate
803 // Tests that the translate enabled preference is honored.
805 // Make sure the pref allows translate.
816 // Disable translate.
826 // a translate infobar.
832 // Tests the "Never translate <language>" pref.
841 // Select never translate this language.
861 // There should not be a translate infobar.
873 // There should be a translate infobar.
877 // Tests the "Never translate this site" pref.
887 // Select never translate this site.
907 // There should not be a translate infobar.
919 // There should be a translate infobar.
923 // Tests the "Always translate this language" pref.
925 // Select always translate French to English.
945 SimulateURLFetch(true); // Simulate the translate script being retrieved.
970 // Now revert the always translate pref and make sure we go back to expected
971 // behavior, which is show a "before translate" infobar.
991 // Simulate navigating to a page in French. The translate menu should show but
1007 // Use the menu to translate the page.
1015 SimulateURLFetch(true); // Simulate the translate script being retrieved.
1031 // The translate menu should now be disabled.
1037 // Test that selecting translate in the context menu WHILE the page is being
1043 infobar->Translate();
1053 // Now test that selecting translate in the context menu AFTER the page has
1058 infobar->Translate();
1070 // Test that the translate context menu is enabled when the page is in an
1078 // Test that the translate context menu is disabled when the page is in an
1087 // Tests that an extra always/never translate button is shown on the "before
1088 // translate" infobar when the translation is accepted/declined 3 times,
1112 infobar->Translate();
1120 // Simulate the user pressing "Always translate French".
1123 // Simulate the translate script being retrieved (it only needs to be done
1126 // That should have triggered a page translate.
1132 // Now test that declining the translation causes a "never translate" button
1151 // Simulate the user pressing "Never translate French".
1160 // Tests that we don't show a translate infobar when a page instructs that it
1186 infobar->Translate();
1199 infobar->Translate();