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

Unified Diff: content/public/browser/speech_recognition_session_context.h

Issue 10377082: SpeechInputExtensionManager now interface with SpeechRecognitionManagerDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
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
index 70a533ae4fd23793de25650336f303bc51facdad..00e451bb511a3d5ae05123770901799a4c189ba2 100644
--- a/content/public/browser/speech_recognition_session_context.h
+++ b/content/public/browser/speech_recognition_session_context.h
@@ -6,31 +6,44 @@
#define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_
#pragma once
+#include "base/string16.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 for mapping the recognition
-// session to other browser elements involved with the it (e.g., the page
-// element that requested the recognition). The SpeechRecognitionManager is
-// not aware of the content of 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
+// and its delegates for mapping the recognition session to other browser
+// elements involved with the it (e.g., the page element that requested the
+// recognition). The SpeechRecognitionManager is not aware of the content of
+// 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 {
- SpeechRecognitionSessionContext()
- : render_process_id(0),
- render_view_id(0),
- render_request_id(0) {}
- ~SpeechRecognitionSessionContext() {}
+ SpeechRecognitionSessionContext();
+ ~SpeechRecognitionSessionContext();
int render_process_id;
int render_view_id;
int render_request_id;
+
+ // Determines whether recognition shall use an active bubble on a page element
+ // (which coordinates are passed in |element_rect|) or a background tray icon.
+ bool use_bubble_on_element;
+
+ // The coordinates of the page element for placing the bubble (valid only when
+ // |use_bubble_on_element| = true).
gfx::Rect element_rect;
+
+ // Determines whether a security notification balloon shall pop-up together
+ // with the tray icon (valid only when |use_bubble_on_element| = false).
+ bool show_security_balloon;
+
+ // A texual description of the context (website, extension name) that is
+ // requesting recognition, for prompting security notifications to the user.
+ string16 context_name;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698