| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_CLIENT_H_ | 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_CLIENT_H_ |
| 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_CLIENT_H_ | 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 // Called when the embedder should present UI to the user corresponding to the | 39 // Called when the embedder should present UI to the user corresponding to the |
| 40 // user's current |step|. | 40 // user's current |step|. |
| 41 virtual void ShowTranslateUI(translate::TranslateStep step, | 41 virtual void ShowTranslateUI(translate::TranslateStep step, |
| 42 const std::string source_language, | 42 const std::string source_language, |
| 43 const std::string target_language, | 43 const std::string target_language, |
| 44 TranslateErrors::Type error_type, | 44 TranslateErrors::Type error_type, |
| 45 bool triggered_from_menu) = 0; | 45 bool triggered_from_menu) = 0; |
| 46 | 46 |
| 47 // Returns true if the URL can be translated. | 47 // Returns true if the URL can be translated. |
| 48 virtual bool IsTranslatableURL(const GURL& url) = 0; | 48 virtual bool IsTranslatableURL(const GURL& url) = 0; |
| 49 |
| 50 // Presents |report_url|, a URL containing information relating to reporting |
| 51 // a language detection error, to the user to allow them to report language |
| 52 // detection errors as desired. |
| 53 virtual void ShowReportLanguageDetectionErrorUI(const GURL& report_url) = 0; |
| 49 }; | 54 }; |
| 50 | 55 |
| 51 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_CLIENT_H_ | 56 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_CLIENT_H_ |
| OLD | NEW |