summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/speech_input_dispatcher.cc
diff options
context:
space:
mode:
authorsatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-06 15:08:05 +0000
committersatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-06 15:08:05 +0000
commit71cc21bb16d17c79b51d10fa4ad54ddfc2d3c8c1 (patch)
treebd7e8a0f4f27863bb2c376b9eddb7dc6fa1999b5 /chrome/renderer/speech_input_dispatcher.cc
parenta07790009cbd384861f39bcebc36191d07eb4792 (diff)
downloadchromium_src-71cc21bb16d17c79b51d10fa4ad54ddfc2d3c8c1.zip
chromium_src-71cc21bb16d17c79b51d10fa4ad54ddfc2d3c8c1.tar.gz
chromium_src-71cc21bb16d17c79b51d10fa4ad54ddfc2d3c8c1.tar.bz2
Added more logging to debug a test which fails in the build bots.
This test times out regularly in the vista build bots and infrequently in others. I added some logs earlier and making progress, so adding more logs to narrow down the issue. BUG=51337 TEST=none Review URL: http://codereview.chromium.org/3618008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61642 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/speech_input_dispatcher.cc')
-rw-r--r--chrome/renderer/speech_input_dispatcher.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/renderer/speech_input_dispatcher.cc b/chrome/renderer/speech_input_dispatcher.cc
index 54adfa8..88ea447 100644
--- a/chrome/renderer/speech_input_dispatcher.cc
+++ b/chrome/renderer/speech_input_dispatcher.cc
@@ -35,33 +35,45 @@ bool SpeechInputDispatcher::OnMessageReceived(const IPC::Message& message) {
bool SpeechInputDispatcher::startRecognition(
int request_id, const WebKit::WebRect& element_rect) {
+ LOG(INFO) << "SpeechInputDispatcher::startRecognition enter";
gfx::Size scroll = render_view_->webview()->mainFrame()->scrollOffset();
gfx::Rect rect = element_rect;
rect.Offset(-scroll.width(), -scroll.height());
render_view_->Send(new ViewHostMsg_SpeechInput_StartRecognition(
render_view_->routing_id(), request_id, rect));
+ LOG(INFO) << "SpeechInputDispatcher::startRecognition exit";
return true;
}
void SpeechInputDispatcher::cancelRecognition(int request_id) {
+ LOG(INFO) << "SpeechInputDispatcher::cancelRecognition enter";
render_view_->Send(new ViewHostMsg_SpeechInput_CancelRecognition(
render_view_->routing_id(), request_id));
+ LOG(INFO) << "SpeechInputDispatcher::cancelRecognition exit";
}
void SpeechInputDispatcher::stopRecording(int request_id) {
+ LOG(INFO) << "SpeechInputDispatcher::stopRecording enter";
render_view_->Send(new ViewHostMsg_SpeechInput_StopRecording(
render_view_->routing_id(), request_id));
+ LOG(INFO) << "SpeechInputDispatcher::stopRecording exit";
}
void SpeechInputDispatcher::OnSpeechRecognitionResult(
int request_id, const string16& result) {
+ LOG(INFO) << "SpeechInputDispatcher::OnSpeechRecognitionResult enter";
listener_->setRecognitionResult(request_id, result);
+ LOG(INFO) << "SpeechInputDispatcher::OnSpeechRecognitionResult exit";
}
void SpeechInputDispatcher::OnSpeechRecordingComplete(int request_id) {
+ LOG(INFO) << "SpeechInputDispatcher::OnSpeechRecordingComplete enter";
listener_->didCompleteRecording(request_id);
+ LOG(INFO) << "SpeechInputDispatcher::OnSpeechRecordingComplete exit";
}
void SpeechInputDispatcher::OnSpeechRecognitionComplete(int request_id) {
+ LOG(INFO) << "SpeechInputDispatcher::OnSpeechRecognitionComplete enter";
listener_->didCompleteRecognition(request_id);
+ LOG(INFO) << "SpeechInputDispatcher::OnSpeechRecognitionComplete exit";
}