Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.h

Issue 389913002: Moving IME manifests to chrome resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed duplicated XKB extension loading. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "chrome/browser/ui/webui/options/language_options_handler.h" 12 #include "chrome/browser/ui/webui/options/language_options_handler.h"
13 #include "chromeos/ime/component_extension_ime_manager.h" 13 #include "chromeos/ime/component_extension_ime_manager.h"
14 #include "chromeos/ime/input_method_descriptor.h" 14 #include "chromeos/ime/input_method_descriptor.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 namespace options { 17 namespace options {
18 18
19 // Language options page UI handler for Chrome OS. For non-Chrome OS, 19 // Language options page UI handler for Chrome OS. For non-Chrome OS,
20 // see LanguageOptionsHnadler. 20 // see LanguageOptionsHnadler.
21 class CrosLanguageOptionsHandler 21 class CrosLanguageOptionsHandler
22 : public ::options::LanguageOptionsHandlerCommon, 22 : public ::options::LanguageOptionsHandlerCommon {
23 public ComponentExtensionIMEManager::Observer {
24 public: 23 public:
25 CrosLanguageOptionsHandler(); 24 CrosLanguageOptionsHandler();
26 virtual ~CrosLanguageOptionsHandler(); 25 virtual ~CrosLanguageOptionsHandler();
27 26
28 // OptionsPageUIHandler implementation. 27 // OptionsPageUIHandler implementation.
29 virtual void GetLocalizedValues( 28 virtual void GetLocalizedValues(
30 base::DictionaryValue* localized_strings) OVERRIDE; 29 base::DictionaryValue* localized_strings) OVERRIDE;
31 30
32 // DOMMessageHandler implementation. 31 // DOMMessageHandler implementation.
33 virtual void RegisterMessages() OVERRIDE; 32 virtual void RegisterMessages() OVERRIDE;
(...skipping 29 matching lines...) Expand all
63 void InputMethodDisableCallback(const base::ListValue* args); 62 void InputMethodDisableCallback(const base::ListValue* args);
64 63
65 // Called when the input method is enabled. 64 // Called when the input method is enabled.
66 // |args| will contain the input method ID as string (ex. "mozc"). 65 // |args| will contain the input method ID as string (ex. "mozc").
67 void InputMethodEnableCallback(const base::ListValue* args); 66 void InputMethodEnableCallback(const base::ListValue* args);
68 67
69 // Called when the input method options page is opened. 68 // Called when the input method options page is opened.
70 // |args| will contain the input method ID as string (ex. "mozc"). 69 // |args| will contain the input method ID as string (ex. "mozc").
71 void InputMethodOptionsOpenCallback(const base::ListValue* args); 70 void InputMethodOptionsOpenCallback(const base::ListValue* args);
72 71
73 // ComponentExtensionIMEManager::Observer override.
74 virtual void OnImeComponentExtensionInitialized() OVERRIDE;
75
76 // OptionsPageUIHandler implementation.
77 virtual void InitializePage() OVERRIDE;
78
79 // Adds the name of the extension that provides the IME to each entry in the 72 // Adds the name of the extension that provides the IME to each entry in the
80 // |list| of extension IMEs. 73 // |list| of extension IMEs.
81 void AddImeProvider(base::ListValue* list); 74 void AddImeProvider(base::ListValue* list);
82 75
83 // True if the component extension list was appended into input method list.
84 bool composition_extension_appended_;
85
86 // True if this page was initialized.
87 bool is_page_initialized_;
88
89 DISALLOW_COPY_AND_ASSIGN(CrosLanguageOptionsHandler); 76 DISALLOW_COPY_AND_ASSIGN(CrosLanguageOptionsHandler);
90 }; 77 };
91 78
92 } // namespace options 79 } // namespace options
93 } // namespace chromeos 80 } // namespace chromeos
94 81
95 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CROS_LANGUAGE_OPTIONS_HANDLE R_H_ 82 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CROS_LANGUAGE_OPTIONS_HANDLE R_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698