| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 module translate.mojom; | 5 module translate.mojom; |
| 6 | 6 |
| 7 import "mojo/common/common_custom_types.mojom"; | 7 import "mojo/common/time.mojom"; |
| 8 import "url/mojo/url.mojom"; | 8 import "url/mojo/url.mojom"; |
| 9 | 9 |
| 10 enum TranslateError { | 10 enum TranslateError { |
| 11 NONE, | 11 NONE, |
| 12 NETWORK, | 12 NETWORK, |
| 13 INITIALIZATION_ERROR, | 13 INITIALIZATION_ERROR, |
| 14 UNKNOWN_LANGUAGE, | 14 UNKNOWN_LANGUAGE, |
| 15 UNSUPPORTED_LANGUAGE, | 15 UNSUPPORTED_LANGUAGE, |
| 16 IDENTICAL_LANGUAGES, | 16 IDENTICAL_LANGUAGES, |
| 17 TRANSLATION_ERROR, | 17 TRANSLATION_ERROR, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // no translation applied. | 56 // no translation applied. |
| 57 RevertTranslation(); | 57 RevertTranslation(); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 interface ContentTranslateDriver { | 60 interface ContentTranslateDriver { |
| 61 // Notification that a new page is ready to translate, | 61 // Notification that a new page is ready to translate, |
| 62 // and the language for it has been determined. | 62 // and the language for it has been determined. |
| 63 RegisterPage(Page page, LanguageDetectionDetails details, | 63 RegisterPage(Page page, LanguageDetectionDetails details, |
| 64 bool page_needs_translation); | 64 bool page_needs_translation); |
| 65 }; | 65 }; |
| OLD | NEW |