OLD | NEW |
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_CHROMEOS_INPUT_METHOD_MOCK_XKEYBOARD_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_XKEYBOARD_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_XKEYBOARD_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_XKEYBOARD_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/chromeos/input_method/xkeyboard.h" | 9 #include "chrome/browser/chromeos/input_method/xkeyboard.h" |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 virtual bool CapsLockIsEnabled() OVERRIDE; | 34 virtual bool CapsLockIsEnabled() OVERRIDE; |
35 virtual std::string CreateFullXkbLayoutName( | 35 virtual std::string CreateFullXkbLayoutName( |
36 const std::string& layout_name, | 36 const std::string& layout_name, |
37 const ModifierMap& modifire_map) OVERRIDE; | 37 const ModifierMap& modifire_map) OVERRIDE; |
38 virtual unsigned int GetNumLockMask() OVERRIDE; | 38 virtual unsigned int GetNumLockMask() OVERRIDE; |
39 virtual void GetLockedModifiers(bool* out_caps_lock_enabled, | 39 virtual void GetLockedModifiers(bool* out_caps_lock_enabled, |
40 bool* out_num_lock_enabled) OVERRIDE; | 40 bool* out_num_lock_enabled) OVERRIDE; |
41 | 41 |
42 int set_current_keyboard_layout_by_name_count_; | 42 int set_current_keyboard_layout_by_name_count_; |
43 std::string last_layout_; | 43 std::string last_layout_; |
| 44 bool caps_lock_is_enabled_; |
| 45 bool num_lock_is_enabled_; |
44 // TODO(yusukes): Add more variables for counting the numbers of the API calls | 46 // TODO(yusukes): Add more variables for counting the numbers of the API calls |
45 | 47 |
46 private: | 48 private: |
47 DISALLOW_COPY_AND_ASSIGN(MockXKeyboard); | 49 DISALLOW_COPY_AND_ASSIGN(MockXKeyboard); |
48 }; | 50 }; |
49 | 51 |
50 // TODO(yusukes): Use the mock in ui/views/ash/caps_lock_handler_browsertest.cc. | 52 // TODO(yusukes): Use the mock in ui/views/ash/caps_lock_handler_browsertest.cc. |
51 | 53 |
52 } // namespace input_method | 54 } // namespace input_method |
53 } // namespace chromeos | 55 } // namespace chromeos |
54 | 56 |
55 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_XKEYBOARD_H_ | 57 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_XKEYBOARD_H_ |
OLD | NEW |