| OLD | NEW |
| 1 // Copyright (c) 2009 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 "chrome/renderer/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 MockKeyboard::MockKeyboard() | 9 MockKeyboard::MockKeyboard() |
| 10 : keyboard_layout_(LAYOUT_NULL), | 10 : keyboard_layout_(LAYOUT_NULL), |
| 11 keyboard_modifiers_(INVALID) { | 11 keyboard_modifiers_(INVALID) { |
| 12 } | 12 } |
| 13 | 13 |
| 14 MockKeyboard::~MockKeyboard() { | 14 MockKeyboard::~MockKeyboard() { |
| 15 } | 15 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 38 keyboard_modifiers_ = modifiers; | 38 keyboard_modifiers_ = modifiers; |
| 39 } | 39 } |
| 40 | 40 |
| 41 // Retrieve Unicode characters associate with the key code. | 41 // Retrieve Unicode characters associate with the key code. |
| 42 return driver_.GetCharacters(key_code, output); | 42 return driver_.GetCharacters(key_code, output); |
| 43 #else | 43 #else |
| 44 NOTIMPLEMENTED(); | 44 NOTIMPLEMENTED(); |
| 45 return -1; | 45 return -1; |
| 46 #endif | 46 #endif |
| 47 } | 47 } |
| OLD | NEW |