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

Unified Diff: chromeos/ime/fake_input_method_delegate.h

Issue 139803010: Support comma separated hardware keyboard layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing comments Created 6 years, 10 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: chromeos/ime/fake_input_method_delegate.h
diff --git a/chromeos/ime/fake_input_method_delegate.h b/chromeos/ime/fake_input_method_delegate.h
index 4f1a100642a03d3a1562bf5dbc0e104257c98f14..7d2301c011d6545e0495de69a81a0f7d2ff78fb1 100644
--- a/chromeos/ime/fake_input_method_delegate.h
+++ b/chromeos/ime/fake_input_method_delegate.h
@@ -5,6 +5,8 @@
#ifndef CHROMEOS_IME_FAKE_INPUT_METHOD_DELEGATE_H_
#define CHROMEOS_IME_FAKE_INPUT_METHOD_DELEGATE_H_
+#include <vector>
+
#include "base/basictypes.h"
#include "base/callback.h"
#include "base/compiler_specific.h"
@@ -25,12 +27,13 @@ class CHROMEOS_EXPORT FakeInputMethodDelegate : public InputMethodDelegate {
virtual ~FakeInputMethodDelegate();
// InputMethodDelegate implementation:
- virtual std::string GetHardwareKeyboardLayout() const OVERRIDE;
+ virtual void GetHardwareKeyboardLayouts(
+ std::vector<std::string>* out) const OVERRIDE;
virtual base::string16 GetLocalizedString(int resource_id) const OVERRIDE;
virtual base::string16 GetDisplayLanguageName(
const std::string& language_code) const OVERRIDE;
- void set_hardware_keyboard_layout(const std::string& value) {
+ void set_hardware_keyboard_layout(const std::vector<std::string>& value) {
hardware_keyboard_layout_ = value;
}
@@ -49,7 +52,7 @@ class CHROMEOS_EXPORT FakeInputMethodDelegate : public InputMethodDelegate {
}
private:
- std::string hardware_keyboard_layout_;
+ std::vector<std::string> hardware_keyboard_layout_;
std::string active_locale_;
LanguageNameLocalizationCallback get_display_language_name_callback_;
GetLocalizedStringCallback get_localized_string_callback_;

Powered by Google App Engine
This is Rietveld 408576698