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 | 9 |
9 namespace content { | 10 namespace content { |
10 | 11 |
11 MockKeyboard::MockKeyboard() | 12 MockKeyboard::MockKeyboard() |
12 : keyboard_layout_(LAYOUT_NULL), | 13 : keyboard_layout_(LAYOUT_NULL), |
13 keyboard_modifiers_(INVALID) { | 14 keyboard_modifiers_(INVALID) { |
14 } | 15 } |
15 | 16 |
16 MockKeyboard::~MockKeyboard() { | 17 MockKeyboard::~MockKeyboard() { |
17 } | 18 } |
(...skipping 24 matching lines...) Expand all Loading... |
42 | 43 |
43 // Retrieve Unicode characters associate with the key code. | 44 // Retrieve Unicode characters associate with the key code. |
44 return driver_.GetCharacters(key_code, output); | 45 return driver_.GetCharacters(key_code, output); |
45 #else | 46 #else |
46 NOTIMPLEMENTED(); | 47 NOTIMPLEMENTED(); |
47 return -1; | 48 return -1; |
48 #endif | 49 #endif |
49 } | 50 } |
50 | 51 |
51 } // namespace content | 52 } // namespace content |
OLD | NEW |