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