Chromium Code Reviews| Index: chrome/browser/ui/webui/translate_internals/translate_internals_handler.h |
| diff --git a/chrome/browser/ui/webui/translate_internals/translate_internals_handler.h b/chrome/browser/ui/webui/translate_internals/translate_internals_handler.h |
| index 7293dc6740466044d17480fa523fda9ae2a1f9cd..208dcd45640f3a0b5f2b5b515dcfa801ca7bb106 100644 |
| --- a/chrome/browser/ui/webui/translate_internals/translate_internals_handler.h |
| +++ b/chrome/browser/ui/webui/translate_internals/translate_internals_handler.h |
| @@ -61,6 +61,10 @@ class TranslateInternalsHandler : public content::WebUIMessageHandler, |
| // when UI requests to remove an item in the preference. |
| void OnRemovePrefItem(const base::ListValue* args); |
| + // Handles the Javascript message 'overrideCountry'. This message is sent |
| + // when UI requests to override the stored country. |
| + void OnOverrideCountry(const base::ListValue* country); |
| + |
| // Handles the Javascript message 'requestInfo'. This message is sent |
| // when UI needs to show information concerned with the translation. |
| // For now, this returns only prefs to Javascript. |
| @@ -76,6 +80,10 @@ class TranslateInternalsHandler : public content::WebUIMessageHandler, |
| // Sends the languages currently supported by the server to JavaScript. |
| void SendSupportedLanguagesToJs(); |
| + // Sends the stored permanent country to Javascript. |
| + // |is_update| tells Javascript if the country has been updated or not. |
|
Alexei Svitkine (slow)
2016/04/20 21:46:44
Nit: Maybe a better name is |was_updated|?
hamelphi
2016/04/21 14:25:09
Done.
|
| + void SendCountryToJs(bool is_update); |
| + |
| // Subscription for translate events coming from the translate language list. |
| std::unique_ptr< |
| translate::TranslateLanguageList::EventCallbackList::Subscription> |