diff options
Diffstat (limited to 'base/event_recorder.h')
-rw-r--r-- | base/event_recorder.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/base/event_recorder.h b/base/event_recorder.h index a258d3a..43278c6 100644 --- a/base/event_recorder.h +++ b/base/event_recorder.h @@ -6,7 +6,9 @@ #define BASE_EVENT_RECORDER_H_ #include <string> +#if defined(OS_WIN) #include <windows.h> +#endif #include "base/basictypes.h" namespace base { @@ -55,10 +57,12 @@ class EventRecorder { // Is the EventRecorder currently playing. bool is_playing() const { return is_playing_; } +#if defined(OS_WIN) // C-style callbacks for the EventRecorder. // Used for internal purposes only. LRESULT RecordWndProc(int nCode, WPARAM wParam, LPARAM lParam); LRESULT PlaybackWndProc(int nCode, WPARAM wParam, LPARAM lParam); +#endif private: // Create a new EventRecorder. Events are saved to the file filename. @@ -67,8 +71,10 @@ class EventRecorder { explicit EventRecorder() : is_recording_(false), is_playing_(false), +#if defined(OS_WIN) journal_hook_(NULL), file_(NULL), +#endif playback_first_msg_time_(0), playback_start_time_(0) { } @@ -78,9 +84,11 @@ class EventRecorder { bool is_recording_; bool is_playing_; +#if defined(OS_WIN) HHOOK journal_hook_; FILE* file_; EVENTMSG playback_msg_; +#endif int playback_first_msg_time_; int playback_start_time_; |