diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-01 04:31:22 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-01 04:31:22 +0000 |
commit | 4f09393e0d9f357a271353b727246864378fdf17 (patch) | |
tree | c3b561d3384c9287cb11f545fa6adcae9b8d5a55 /base | |
parent | e0291ec704fd21a4e99e99c60766c768f58ebcb3 (diff) | |
download | chromium_src-4f09393e0d9f357a271353b727246864378fdf17.zip chromium_src-4f09393e0d9f357a271353b727246864378fdf17.tar.gz chromium_src-4f09393e0d9f357a271353b727246864378fdf17.tar.bz2 |
Deprecate wstring version of PathService::Get() in webkit.
Review URL: http://codereview.chromium.org/99266
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15032 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/event_recorder.cc | 4 | ||||
-rw-r--r-- | base/event_recorder.h | 6 | ||||
-rw-r--r-- | base/event_recorder_stubs.cc | 4 |
3 files changed, 8 insertions, 6 deletions
diff --git a/base/event_recorder.cc b/base/event_recorder.cc index 3bcd0e26..92128af 100644 --- a/base/event_recorder.cc +++ b/base/event_recorder.cc @@ -42,7 +42,7 @@ EventRecorder::~EventRecorder() { DCHECK(!is_recording_ && !is_playing_); } -bool EventRecorder::StartRecording(const std::wstring& filename) { +bool EventRecorder::StartRecording(const FilePath& filename) { if (journal_hook_ != NULL) return false; if (is_recording_ || is_playing_) @@ -93,7 +93,7 @@ void EventRecorder::StopRecording() { } } -bool EventRecorder::StartPlayback(const std::wstring& filename) { +bool EventRecorder::StartPlayback(const FilePath& filename) { if (journal_hook_ != NULL) return false; if (is_recording_ || is_playing_) diff --git a/base/event_recorder.h b/base/event_recorder.h index 43278c6..29ed350 100644 --- a/base/event_recorder.h +++ b/base/event_recorder.h @@ -11,6 +11,8 @@ #endif #include "base/basictypes.h" +class FilePath; + namespace base { // A class for recording and playing back keyboard and mouse input events. @@ -39,7 +41,7 @@ class EventRecorder { // Starts recording events. // Will clobber the file if it already exists. // Returns true on success, or false if an error occurred. - bool StartRecording(const std::wstring& filename); + bool StartRecording(const FilePath& filename); // Stops recording. void StopRecording(); @@ -49,7 +51,7 @@ class EventRecorder { // Plays events previously recorded. // Returns true on success, or false if an error occurred. - bool StartPlayback(const std::wstring& filename); + bool StartPlayback(const FilePath& filename); // Stops playback. void StopPlayback(); diff --git a/base/event_recorder_stubs.cc b/base/event_recorder_stubs.cc index 9499c75..91f2e07 100644 --- a/base/event_recorder_stubs.cc +++ b/base/event_recorder_stubs.cc @@ -11,14 +11,14 @@ namespace base { EventRecorder* EventRecorder::current_; // Our singleton. -bool EventRecorder::StartRecording(const std::wstring& filename) { +bool EventRecorder::StartRecording(const FilePath& filename) { return true; } void EventRecorder::StopRecording() { } -bool EventRecorder::StartPlayback(const std::wstring& filename) { +bool EventRecorder::StartPlayback(const FilePath& filename) { return false; } |