| Index: content/public/browser/speech_recognition_session_context.h
|
| diff --git a/content/public/browser/speech_recognition_session_context.h b/content/public/browser/speech_recognition_session_context.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..90f667a78a1f815770509615f3a977dd9048c4b8
|
| --- /dev/null
|
| +++ b/content/public/browser/speech_recognition_session_context.h
|
| @@ -0,0 +1,35 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_
|
| +#define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_
|
| +
|
| +#include "content/common/content_export.h"
|
| +#include "ui/gfx/rect.h"
|
| +
|
| +namespace content {
|
| +
|
| +// The context information required by clients of the SpeechRecognitionManager
|
| +// (InputTagSpeechDispatcherHost) and its delegates
|
| +// (ChromeSpeechRecognitionManagerDelegate) for mapping the recognition session
|
| +// to other browser elements involved with the it (e.g., the page element that
|
| +// requested the recognition, the UI bubbles). The SpeechRecognitionManager is
|
| +// not aware of the content if this struct and does NOT use it for its purposes.
|
| +// However the manager keeps this struct "attached" to the recognition session
|
| +// during all the session lifetime, making its contents available to clients
|
| +// (In this regard, see SpeechRecognitionManager::GetSessionContext and
|
| +// SpeechRecognitionManager::LookupSessionByContext methods).
|
| +struct CONTENT_EXPORT SpeechRecognitionSessionContext {
|
| + int render_process_id;
|
| + int render_view_id;
|
| + int render_request_id;
|
| + gfx::Rect element_rect;
|
| +
|
| + SpeechRecognitionSessionContext();
|
| + ~SpeechRecognitionSessionContext();
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_
|
|
|