| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "content/test/mock_keyboard.h" | 5 #include "content/test/mock_keyboard.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 | 11 |
| 12 MockKeyboard::MockKeyboard() | 12 MockKeyboard::MockKeyboard() {} |
| 13 : keyboard_layout_(LAYOUT_NULL), | |
| 14 keyboard_modifiers_(INVALID) { | |
| 15 } | |
| 16 | 13 |
| 17 MockKeyboard::~MockKeyboard() { | 14 MockKeyboard::~MockKeyboard() { |
| 18 } | 15 } |
| 19 | 16 |
| 20 int MockKeyboard::GetCharacters(Layout layout, | 17 int MockKeyboard::GetCharacters(Layout layout, |
| 21 int key_code, | 18 int key_code, |
| 22 Modifiers modifiers, | 19 Modifiers modifiers, |
| 23 std::wstring* output) { | 20 std::wstring* output) { |
| 24 #if defined(OS_WIN) | 21 #if defined(OS_WIN) |
| 25 CHECK(output); | 22 CHECK(output); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 43 | 40 |
| 44 // Retrieve Unicode characters associate with the key code. | 41 // Retrieve Unicode characters associate with the key code. |
| 45 return driver_.GetCharacters(key_code, output); | 42 return driver_.GetCharacters(key_code, output); |
| 46 #else | 43 #else |
| 47 NOTIMPLEMENTED(); | 44 NOTIMPLEMENTED(); |
| 48 return -1; | 45 return -1; |
| 49 #endif | 46 #endif |
| 50 } | 47 } |
| 51 | 48 |
| 52 } // namespace content | 49 } // namespace content |
| OLD | NEW |