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 #ifndef CONTENT_TEST_MOCK_KEYBOARD_DRIVER_WIN_H_ | 5 #ifndef CONTENT_TEST_MOCK_KEYBOARD_DRIVER_WIN_H_ |
6 #define CONTENT_TEST_MOCK_KEYBOARD_DRIVER_WIN_H_ | 6 #define CONTENT_TEST_MOCK_KEYBOARD_DRIVER_WIN_H_ |
7 #pragma once | |
8 | 7 |
9 #include <windows.h> | 8 #include <windows.h> |
10 | 9 |
11 #include <string> | 10 #include <string> |
12 #include <vector> | 11 #include <vector> |
13 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
14 | 13 |
15 // Implements the platform-dependent part of a pseudo keyboard device for | 14 // Implements the platform-dependent part of a pseudo keyboard device for |
16 // Windows. | 15 // Windows. |
17 class MockKeyboardDriverWin { | 16 class MockKeyboardDriverWin { |
(...skipping 15 matching lines...) Expand all Loading... |
33 // The currently active driver. | 32 // The currently active driver. |
34 HKL active_keyboard_layout_; | 33 HKL active_keyboard_layout_; |
35 BYTE original_keyboard_states_[256]; | 34 BYTE original_keyboard_states_[256]; |
36 | 35 |
37 BYTE keyboard_states_[256]; | 36 BYTE keyboard_states_[256]; |
38 | 37 |
39 DISALLOW_COPY_AND_ASSIGN(MockKeyboardDriverWin); | 38 DISALLOW_COPY_AND_ASSIGN(MockKeyboardDriverWin); |
40 }; | 39 }; |
41 | 40 |
42 #endif // CONTENT_TEST_MOCK_KEYBOARD_DRIVER_WIN_H_ | 41 #endif // CONTENT_TEST_MOCK_KEYBOARD_DRIVER_WIN_H_ |
OLD | NEW |