OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_ | |
6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_ | |
7 | |
8 #include "content/common/content_export.h" | |
9 #include "ui/gfx/rect.h" | |
10 | |
11 namespace content { | |
12 | |
13 // The context information required by clients of the SpeechRecognitionManager | |
14 // (InputTagSpeechDispatcherHost) and its delegates | |
15 // (ChromeSpeechRecognitionManagerDelegate) for mapping the recognition session | |
jam
2012/04/24 15:56:32
nit: don't mention chrome classes in the public ap
Primiano Tucci (use gerrit)
2012/04/25 11:30:03
Done.
| |
16 // to other browser elements involved with the it (e.g., the page element that | |
17 // requested the recognition, the UI bubbles). The SpeechRecognitionManager is | |
18 // not aware of the content of this struct and does NOT use it for its purposes. | |
19 // However the manager keeps this struct "attached" to the recognition session | |
20 // during all the session lifetime, making its contents available to clients | |
21 // (In this regard, see SpeechRecognitionManager::GetSessionContext and | |
22 // SpeechRecognitionManager::LookupSessionByContext methods). | |
23 struct CONTENT_EXPORT SpeechRecognitionSessionContext { | |
jam
2012/04/24 15:56:32
nit: are you sure you need a CONTENT_EXPORT for th
Primiano Tucci (use gerrit)
2012/04/25 11:30:03
It is used by tests (speech_recognition_browsertes
| |
24 SpeechRecognitionSessionContext(); | |
25 ~SpeechRecognitionSessionContext(); | |
26 | |
27 int render_process_id; | |
28 int render_view_id; | |
29 int render_request_id; | |
30 gfx::Rect element_rect; | |
31 }; | |
32 | |
33 } // namespace content | |
34 | |
35 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_ | |
OLD | NEW |