OLD | NEW |
---|---|
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 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_ |
6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_ |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "ui/gfx/rect.h" | 9 #include "ui/gfx/rect.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 // The context information required by clients of the SpeechRecognitionManager | 13 // The context information required by clients of the SpeechRecognitionManager |
14 // (InputTagSpeechDispatcherHost) and its delegates for mapping the recognition | 14 // and its delegates for mapping the recognition session to other browser |
15 // session to other browser elements involved with the it (e.g., the page | 15 // elements involved with the it (e.g., the page element that requested the |
hans
2012/04/26 16:23:25
"with the it"?
Primiano Tucci (use gerrit)
2012/04/27 09:27:13
Oops.
| |
16 // element that requested the recognition). The SpeechRecognitionManager is | 16 // recognition). The SpeechRecognitionManager is not aware of the content of |
17 // not aware of the content of this struct and does NOT use it for its purposes. | 17 // this struct and does NOT use it for its purposes. However the manager keeps |
18 // However the manager keeps this struct "attached" to the recognition session | 18 // this struct "attached" to the recognition session during all the session |
19 // during all the session lifetime, making its contents available to clients | 19 // lifetime, making its contents available to clients (In this regard, see |
20 // (In this regard, see SpeechRecognitionManager::GetSessionContext and | 20 // SpeechRecognitionManager::GetSessionContext and |
21 // SpeechRecognitionManager::LookupSessionByContext methods). | 21 // SpeechRecognitionManager::LookupSessionByContext methods). |
22 struct CONTENT_EXPORT SpeechRecognitionSessionContext { | 22 struct CONTENT_EXPORT SpeechRecognitionSessionContext { |
23 SpeechRecognitionSessionContext() | 23 SpeechRecognitionSessionContext() |
24 : render_process_id(0), | 24 : render_process_id(0), |
25 render_view_id(0), | 25 render_view_id(0), |
26 render_request_id(0) {} | 26 render_request_id(0), |
27 js_handle_id(0) {} | |
27 ~SpeechRecognitionSessionContext() {} | 28 ~SpeechRecognitionSessionContext() {} |
28 | 29 |
29 int render_process_id; | 30 int render_process_id; |
30 int render_view_id; | 31 int render_view_id; |
31 int render_request_id; | 32 int render_request_id; |
33 int js_handle_id; | |
32 gfx::Rect element_rect; | 34 gfx::Rect element_rect; |
33 }; | 35 }; |
34 | 36 |
35 } // namespace content | 37 } // namespace content |
36 | 38 |
37 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_ | 39 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_ |
OLD | NEW |