| 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 CONTENT_TEST_MOCK_KEYBOARD_H_ | 5 #ifndef CONTENT_TEST_MOCK_KEYBOARD_H_ |
| 6 #define CONTENT_TEST_MOCK_KEYBOARD_H_ | 6 #define CONTENT_TEST_MOCK_KEYBOARD_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // layout, key code, and modifiers, i.e. characters returned when we type | 89 // layout, key code, and modifiers, i.e. characters returned when we type |
| 90 // specified keys on a specified layout. | 90 // specified keys on a specified layout. |
| 91 // This function returns the length of Unicode characters filled in the | 91 // This function returns the length of Unicode characters filled in the |
| 92 // |output| parameter. | 92 // |output| parameter. |
| 93 int GetCharacters(Layout layout, | 93 int GetCharacters(Layout layout, |
| 94 int key_code, | 94 int key_code, |
| 95 Modifiers modifiers, | 95 Modifiers modifiers, |
| 96 std::wstring* output); | 96 std::wstring* output); |
| 97 | 97 |
| 98 private: | 98 private: |
| 99 Layout keyboard_layout_; | |
| 100 Modifiers keyboard_modifiers_; | |
| 101 | |
| 102 #if defined(OS_WIN) | 99 #if defined(OS_WIN) |
| 100 Layout keyboard_layout_ = LAYOUT_NULL; |
| 101 Modifiers keyboard_modifiers_ = INVALID; |
| 103 MockKeyboardDriverWin driver_; | 102 MockKeyboardDriverWin driver_; |
| 104 #endif | 103 #endif |
| 105 | 104 |
| 106 DISALLOW_COPY_AND_ASSIGN(MockKeyboard); | 105 DISALLOW_COPY_AND_ASSIGN(MockKeyboard); |
| 107 }; | 106 }; |
| 108 | 107 |
| 109 } // namespace content | 108 } // namespace content |
| 110 | 109 |
| 111 #endif // CONTENT_TEST_MOCK_KEYBOARD_H_ | 110 #endif // CONTENT_TEST_MOCK_KEYBOARD_H_ |
| OLD | NEW |