OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CROS_LANGUAGE_OPTIONS_HANDLER_H
_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CROS_LANGUAGE_OPTIONS_HANDLER_H
_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CROS_LANGUAGE_OPTIONS_HANDLER_H
_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CROS_LANGUAGE_OPTIONS_HANDLER_H
_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/ui/webui/options/language_options_handler.h" | 9 #include "chrome/browser/ui/webui/options/language_options_handler.h" |
10 #include "chromeos/ime/component_extension_ime_manager.h" | 10 #include "chromeos/ime/component_extension_ime_manager.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 // Called when the input method is enabled. | 89 // Called when the input method is enabled. |
90 // |args| will contain the input method ID as string (ex. "mozc"). | 90 // |args| will contain the input method ID as string (ex. "mozc"). |
91 void InputMethodEnableCallback(const base::ListValue* args); | 91 void InputMethodEnableCallback(const base::ListValue* args); |
92 | 92 |
93 // Called when the input method options page is opened. | 93 // Called when the input method options page is opened. |
94 // |args| will contain the input method ID as string (ex. "mozc"). | 94 // |args| will contain the input method ID as string (ex. "mozc"). |
95 void InputMethodOptionsOpenCallback(const base::ListValue* args); | 95 void InputMethodOptionsOpenCallback(const base::ListValue* args); |
96 | 96 |
97 // ComponentExtensionIMEManager::Observer override. | 97 // ComponentExtensionIMEManager::Observer override. |
98 virtual void OnInitialized() OVERRIDE; | 98 virtual void OnImeComponentExtensionInitialized() OVERRIDE; |
99 | 99 |
100 // Gets the list of languages with |descriptors| based on | 100 // Gets the list of languages with |descriptors| based on |
101 // |base_language_codes|. | 101 // |base_language_codes|. |
102 // |insert_divider| means to insert entry with "code" attribute set to | 102 // |insert_divider| means to insert entry with "code" attribute set to |
103 // kVendorOtherLanguagesListDivider between "most relevant" languages and | 103 // kVendorOtherLanguagesListDivider between "most relevant" languages and |
104 // other. | 104 // other. |
105 static base::ListValue* GetLanguageListInternal( | 105 static base::ListValue* GetLanguageListInternal( |
106 const input_method::InputMethodDescriptors& descriptors, | 106 const input_method::InputMethodDescriptors& descriptors, |
107 const std::vector<std::string>& base_language_codes, | 107 const std::vector<std::string>& base_language_codes, |
108 bool insert_divider); | 108 bool insert_divider); |
109 | 109 |
110 // OptionsPageUIHandler implementation. | 110 // OptionsPageUIHandler implementation. |
111 virtual void InitializePage() OVERRIDE; | 111 virtual void InitializePage() OVERRIDE; |
112 | 112 |
113 // True if the component extension list was appended into input method list. | 113 // True if the component extension list was appended into input method list. |
114 bool composition_extension_appended_; | 114 bool composition_extension_appended_; |
115 | 115 |
116 // True if this page was initialized. | 116 // True if this page was initialized. |
117 bool is_page_initialized_; | 117 bool is_page_initialized_; |
118 | 118 |
119 DISALLOW_COPY_AND_ASSIGN(CrosLanguageOptionsHandler); | 119 DISALLOW_COPY_AND_ASSIGN(CrosLanguageOptionsHandler); |
120 }; | 120 }; |
121 | 121 |
122 } // namespace options | 122 } // namespace options |
123 } // namespace chromeos | 123 } // namespace chromeos |
124 | 124 |
125 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CROS_LANGUAGE_OPTIONS_HANDLE
R_H_ | 125 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CROS_LANGUAGE_OPTIONS_HANDLE
R_H_ |
OLD | NEW |