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 BASE_EVENT_RECORDER_H_ | 5 #ifndef BASE_EVENT_RECORDER_H_ |
6 #define BASE_EVENT_RECORDER_H_ | 6 #define BASE_EVENT_RECORDER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(OS_WIN) | |
10 #include <windows.h> | |
11 #include <stdio.h> | |
12 #endif | |
13 | |
14 #include "base/base_api.h" | 9 #include "base/base_api.h" |
15 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "build/build_config.h" |
| 12 |
| 13 #if defined(OS_WIN) |
| 14 #include <stdio.h> |
| 15 #include <string.h> |
| 16 #include <windows.h> |
| 17 #endif |
16 | 18 |
17 class FilePath; | 19 class FilePath; |
18 | 20 |
19 namespace base { | 21 namespace base { |
20 | 22 |
21 // A class for recording and playing back keyboard and mouse input events. | 23 // A class for recording and playing back keyboard and mouse input events. |
22 // | 24 // |
23 // Note - if you record events, and the playback with the windows in | 25 // Note - if you record events, and the playback with the windows in |
24 // different sizes or positions, the playback will fail. When | 26 // different sizes or positions, the playback will fail. When |
25 // recording and playing, you should move the relevant windows | 27 // recording and playing, you should move the relevant windows |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 #endif | 101 #endif |
100 int playback_first_msg_time_; | 102 int playback_first_msg_time_; |
101 int playback_start_time_; | 103 int playback_start_time_; |
102 | 104 |
103 DISALLOW_COPY_AND_ASSIGN(EventRecorder); | 105 DISALLOW_COPY_AND_ASSIGN(EventRecorder); |
104 }; | 106 }; |
105 | 107 |
106 } // namespace base | 108 } // namespace base |
107 | 109 |
108 #endif // BASE_EVENT_RECORDER_H_ | 110 #endif // BASE_EVENT_RECORDER_H_ |
OLD | NEW |