diff options
author | amanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-26 16:33:29 +0000 |
---|---|---|
committer | amanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-26 16:33:29 +0000 |
commit | 238a20d1987f93f79895a8f8710ac9912e8d60a0 (patch) | |
tree | e6650a8c0e4eeeee8f98d6d3b3a6f335e8545d15 /base/event_recorder.h | |
parent | 7c19b87b028f32ccb4664699fc3386f1ba97d083 (diff) | |
download | chromium_src-238a20d1987f93f79895a8f8710ac9912e8d60a0.zip chromium_src-238a20d1987f93f79895a8f8710ac9912e8d60a0.tar.gz chromium_src-238a20d1987f93f79895a8f8710ac9912e8d60a0.tar.bz2 |
Unfork test_shell_main:
- remove Mac version
- move platform-specific operations into PlatformDelegate and
remove #ifdefs
- add event recorder link stubs for use by platforms that don't
have event recording working yet
Notes:
There's a bunch of stuff in test_shell_{gtk,mac,win} that should
also be pulled into the platform delegate so that the TestShell
class can also be unforked, but those can be worked on independently
per platform after this refactoring.
Review URL: http://codereview.chromium.org/18451
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8629 0039d316-1c4b-4281-b951-d872f2087c98
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_; |