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 |
| 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 if 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 { |
| 24 int render_process_id; |
| 25 int render_view_id; |
| 26 int render_request_id; |
| 27 gfx::Rect element_rect; |
| 28 |
| 29 SpeechRecognitionSessionContext(); |
| 30 ~SpeechRecognitionSessionContext(); |
| 31 }; |
| 32 |
| 33 } // namespace content |
| 34 |
| 35 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_ |
OLD | NEW |