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

Unified Diff: chrome/browser/chromeos/input_method/input_method_whitelist.cc

Issue 10388181: Remove virtual keyboard support from input_method_descriptor.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/input_method/input_method_whitelist.cc
diff --git a/chrome/browser/chromeos/input_method/input_method_whitelist.cc b/chrome/browser/chromeos/input_method/input_method_whitelist.cc
index ed79d3e52a95c04af3b08add6ee9cb4b71205948..9d4aa7af9a4cee8c9eabfe20d557334cb6138f42 100644
--- a/chrome/browser/chromeos/input_method/input_method_whitelist.cc
+++ b/chrome/browser/chromeos/input_method/input_method_whitelist.cc
@@ -16,9 +16,6 @@ InputMethodWhitelist::InputMethodWhitelist() {
for (size_t i = 0; i < arraysize(kInputMethods); ++i) {
supported_input_methods_.insert(kInputMethods[i].input_method_id);
}
- for (size_t i = 0; i < arraysize(kInputMethods); ++i) {
- supported_layouts_.insert(kInputMethods[i].xkb_layout_id);
- }
}
InputMethodWhitelist::~InputMethodWhitelist() {
@@ -29,17 +26,11 @@ bool InputMethodWhitelist::InputMethodIdIsWhitelisted(
return supported_input_methods_.count(input_method_id) > 0;
}
-bool InputMethodWhitelist::XkbLayoutIsSupported(
- const std::string& xkb_layout) const {
- return supported_layouts_.count(xkb_layout) > 0;
-}
-
InputMethodDescriptors* InputMethodWhitelist::GetSupportedInputMethods() const {
InputMethodDescriptors* input_methods = new InputMethodDescriptors;
input_methods->reserve(arraysize(kInputMethods));
for (size_t i = 0; i < arraysize(kInputMethods); ++i) {
input_methods->push_back(InputMethodDescriptor(
- *this,
kInputMethods[i].input_method_id,
"",
kInputMethods[i].xkb_layout_id,

Powered by Google App Engine
This is Rietveld 408576698