| OLD | NEW |
| (Empty) |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROMEOS_IME_MOCK_INPUT_METHOD_DELEGATE_H_ | |
| 6 #define CHROMEOS_IME_MOCK_INPUT_METHOD_DELEGATE_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/compiler_specific.h" | |
| 10 #include "chromeos/chromeos_export.h" | |
| 11 #include "chromeos/ime/input_method_delegate.h" | |
| 12 | |
| 13 namespace chromeos { | |
| 14 namespace input_method { | |
| 15 | |
| 16 class CHROMEOS_EXPORT MockInputMethodDelegate : public InputMethodDelegate { | |
| 17 public: | |
| 18 MockInputMethodDelegate(); | |
| 19 virtual ~MockInputMethodDelegate(); | |
| 20 | |
| 21 // InputMethodDelegate implementation: | |
| 22 virtual std::string GetHardwareKeyboardLayout() const OVERRIDE; | |
| 23 virtual std::string GetActiveLocale() const OVERRIDE; | |
| 24 | |
| 25 void set_hardware_keyboard_layout(const std::string& value) { | |
| 26 hardware_keyboard_layout_ = value; | |
| 27 } | |
| 28 | |
| 29 void set_active_locale(const std::string& value) { | |
| 30 active_locale_ = value; | |
| 31 } | |
| 32 | |
| 33 private: | |
| 34 std::string hardware_keyboard_layout_; | |
| 35 std::string active_locale_; | |
| 36 DISALLOW_COPY_AND_ASSIGN(MockInputMethodDelegate); | |
| 37 }; | |
| 38 | |
| 39 } // namespace input_method | |
| 40 } // namespace chromeos | |
| 41 | |
| 42 #endif // CHROMEOS_IME_MOCK_INPUT_METHOD_DELEGATE_H_ | |
| OLD | NEW |