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

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

Issue 10907196: Add the ability to filter out extension IMEs from the language settings page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mock input manager Created 8 years, 3 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 | Annotate | Revision Log
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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/chromeos/input_method/input_method_descriptor.h" 9 #include "chrome/browser/chromeos/input_method/input_method_descriptor.h"
10 #include "chrome/browser/ui/webui/options/language_options_handler.h" 10 #include "chrome/browser/ui/webui/options/language_options_handler.h"
(...skipping 28 matching lines...) Expand all
39 static base::ListValue* GetInputMethodList( 39 static base::ListValue* GetInputMethodList(
40 const input_method::InputMethodDescriptors& descriptors); 40 const input_method::InputMethodDescriptors& descriptors);
41 41
42 // Gets the list of languages from the given input descriptors. 42 // Gets the list of languages from the given input descriptors.
43 // The return value will look like: 43 // The return value will look like:
44 // [{'code': 'fi', 'displayName': 'Finnish', 'nativeDisplayName': 'suomi'}, 44 // [{'code': 'fi', 'displayName': 'Finnish', 'nativeDisplayName': 'suomi'},
45 // ...] 45 // ...]
46 static base::ListValue* GetLanguageList( 46 static base::ListValue* GetLanguageList(
47 const input_method::InputMethodDescriptors& descriptors); 47 const input_method::InputMethodDescriptors& descriptors);
48 48
49 // Gets the list of input methods that are implemented in an extension.
50 // The return value will look like:
51 // [{'id': '_ext_ime_nejguenhnsnjnwychcnsdsdjketest',
52 // 'displayName': 'Sample IME'}, ...]
53 static base::ListValue* GetExtensionImeList();
54
49 private: 55 private:
50 // LanguageOptionsHandlerCommon implementation. 56 // LanguageOptionsHandlerCommon implementation.
51 virtual string16 GetProductName() OVERRIDE; 57 virtual string16 GetProductName() OVERRIDE;
52 virtual void SetApplicationLocale(const std::string& language_code) OVERRIDE; 58 virtual void SetApplicationLocale(const std::string& language_code) OVERRIDE;
53 59
54 // Called when the sign-out button is clicked. 60 // Called when the sign-out button is clicked.
55 void RestartCallback(const base::ListValue* args); 61 void RestartCallback(const base::ListValue* args);
56 62
57 // Called when the input method is disabled. 63 // Called when the input method is disabled.
58 // |args| will contain the input method ID as string (ex. "mozc"). 64 // |args| will contain the input method ID as string (ex. "mozc").
59 void InputMethodDisableCallback(const base::ListValue* args); 65 void InputMethodDisableCallback(const base::ListValue* args);
60 66
61 // Called when the input method is enabled. 67 // Called when the input method is enabled.
62 // |args| will contain the input method ID as string (ex. "mozc"). 68 // |args| will contain the input method ID as string (ex. "mozc").
63 void InputMethodEnableCallback(const base::ListValue* args); 69 void InputMethodEnableCallback(const base::ListValue* args);
64 70
65 // Called when the input method options page is opened. 71 // Called when the input method options page is opened.
66 // |args| will contain the input method ID as string (ex. "mozc"). 72 // |args| will contain the input method ID as string (ex. "mozc").
67 void InputMethodOptionsOpenCallback(const base::ListValue* args); 73 void InputMethodOptionsOpenCallback(const base::ListValue* args);
68 74
69 DISALLOW_COPY_AND_ASSIGN(CrosLanguageOptionsHandler); 75 DISALLOW_COPY_AND_ASSIGN(CrosLanguageOptionsHandler);
70 }; 76 };
71 77
72 } // namespace options 78 } // namespace options
73 } // namespace chromeos 79 } // namespace chromeos
74 80
75 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CROS_LANGUAGE_OPTIONS_HANDLE R_H_ 81 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CROS_LANGUAGE_OPTIONS_HANDLE R_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698