| 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/basictypes.h" | 10 #include "base/macros.h" |
| 11 #include "build/build_config.h" |
| 11 | 12 |
| 12 #if defined(OS_WIN) | 13 #if defined(OS_WIN) |
| 13 #include "content/test/mock_keyboard_driver_win.h" | 14 #include "content/test/mock_keyboard_driver_win.h" |
| 14 #endif | 15 #endif |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 | 18 |
| 18 // A mock keyboard interface. | 19 // A mock keyboard interface. |
| 19 // This class defines a pseudo keyboard device, which implements mappings from | 20 // This class defines a pseudo keyboard device, which implements mappings from |
| 20 // a tuple (layout, key code, modifiers) to Unicode characters so that | 21 // a tuple (layout, key code, modifiers) to Unicode characters so that |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 #if defined(OS_WIN) | 102 #if defined(OS_WIN) |
| 102 MockKeyboardDriverWin driver_; | 103 MockKeyboardDriverWin driver_; |
| 103 #endif | 104 #endif |
| 104 | 105 |
| 105 DISALLOW_COPY_AND_ASSIGN(MockKeyboard); | 106 DISALLOW_COPY_AND_ASSIGN(MockKeyboard); |
| 106 }; | 107 }; |
| 107 | 108 |
| 108 } // namespace content | 109 } // namespace content |
| 109 | 110 |
| 110 #endif // CONTENT_TEST_MOCK_KEYBOARD_H_ | 111 #endif // CONTENT_TEST_MOCK_KEYBOARD_H_ |
| OLD | NEW |