Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: content/common/speech_recognition_messages.h

Issue 415933002: Turn webspeech on/off when tab goes fore/background (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge the previous change Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Multiply-included message file, hence no include guard. 5 // Multiply-included message file, hence no include guard.
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "content/public/common/speech_recognition_error.h" 9 #include "content/public/common/speech_recognition_error.h"
10 #include "content/public/common/speech_recognition_grammar.h" 10 #include "content/public/common/speech_recognition_grammar.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Whether the user requested interim results or not. 63 // Whether the user requested interim results or not.
64 IPC_STRUCT_MEMBER(bool, interim_results) 64 IPC_STRUCT_MEMBER(bool, interim_results)
65 IPC_STRUCT_END() 65 IPC_STRUCT_END()
66 66
67 67
68 // Requests the speech recognition service to start speech recognition. 68 // Requests the speech recognition service to start speech recognition.
69 IPC_MESSAGE_CONTROL1(SpeechRecognitionHostMsg_StartRequest, 69 IPC_MESSAGE_CONTROL1(SpeechRecognitionHostMsg_StartRequest,
70 SpeechRecognitionHostMsg_StartRequest_Params) 70 SpeechRecognitionHostMsg_StartRequest_Params)
71 71
72 // Requests the speech recognition service to abort speech recognition on 72 // Requests the speech recognition service to abort speech recognition on
73 // behalf of the given |render_view_id|. If speech recognition is not happening 73 // behalf of the given |render_view_id| and |request_id|. If there are no
74 // or is happening on behalf of some other render view, this call does nothing. 74 // sessions associated with the |request_id| in the render view, this call
75 // does nothing.
75 IPC_MESSAGE_CONTROL2(SpeechRecognitionHostMsg_AbortRequest, 76 IPC_MESSAGE_CONTROL2(SpeechRecognitionHostMsg_AbortRequest,
76 int /* render_view_id */, 77 int /* render_view_id */,
77 int /* request_id */) 78 int /* request_id */)
78 79
80 // Requests the speech recognition service to abort all speech recognitions on
81 // behalf of the given |render_view_id|. If speech recognition is not happening
82 // or is happening on behalf of some other render view, this call does nothing.
83 IPC_MESSAGE_CONTROL1(SpeechRecognitionHostMsg_AbortAllRequests,
84 int /* render_view_id */)
85
79 // Requests the speech recognition service to stop audio capture on behalf of 86 // Requests the speech recognition service to stop audio capture on behalf of
80 // the given |render_view_id|. Any audio recorded so far will be fed to the 87 // the given |render_view_id|. Any audio recorded so far will be fed to the
81 // speech recognizer. If speech recognition is not happening nor or is 88 // speech recognizer. If speech recognition is not happening nor or is
82 // happening on behalf of some other render view, this call does nothing. 89 // happening on behalf of some other render view, this call does nothing.
83 IPC_MESSAGE_CONTROL2(SpeechRecognitionHostMsg_StopCaptureRequest, 90 IPC_MESSAGE_CONTROL2(SpeechRecognitionHostMsg_StopCaptureRequest,
84 int /* render_view_id */, 91 int /* render_view_id */,
85 int /* request_id */) 92 int /* request_id */)
86 93
87 // Browser -> Renderer messages. 94 // Browser -> Renderer messages.
88 95
(...skipping 11 matching lines...) Expand all
100 107
101 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioStarted, int /* request_id */) 108 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioStarted, int /* request_id */)
102 109
103 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_SoundStarted, int /* request_id */) 110 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_SoundStarted, int /* request_id */)
104 111
105 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_SoundEnded, int /* request_id */) 112 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_SoundEnded, int /* request_id */)
106 113
107 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioEnded, int /* request_id */) 114 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioEnded, int /* request_id */)
108 115
109 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_Ended, int /* request_id */) 116 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_Ended, int /* request_id */)
OLDNEW
« no previous file with comments | « content/browser/speech/speech_recognition_dispatcher_host.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698