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

Side by Side Diff: content/public/browser/speech_recognition_session_context.h

Issue 260903010: Start removing support for the experimental x-webkit-speech API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't touch histograms.xml Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <string> 8 #include <string>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 28 matching lines...) Expand all
39 39
40 // The pair (|embedder_render_process_id|, |embedder_render_view_id|) 40 // The pair (|embedder_render_process_id|, |embedder_render_view_id|)
41 // represents a Browser plugin guest's embedder. This is filled in if the 41 // represents a Browser plugin guest's embedder. This is filled in if the
42 // session is from a guest Web Speech API. We use these to check if the 42 // session is from a guest Web Speech API. We use these to check if the
43 // embedder (app) is permitted to use audio. 43 // embedder (app) is permitted to use audio.
44 int embedder_render_process_id; 44 int embedder_render_process_id;
45 int embedder_render_view_id; 45 int embedder_render_view_id;
46 46
47 int request_id; 47 int request_id;
48 48
49 // Determines whether recognition was requested by a page element (in which
50 // case its coordinates are passed in |element_rect|).
51 bool requested_by_page_element;
52
53 // The coordinates of the page element for placing the bubble (valid only when
54 // |requested_by_page_element| = true).
55 gfx::Rect element_rect;
56
57 // A texual description of the context (website, extension name) that is 49 // A texual description of the context (website, extension name) that is
58 // requesting recognition, for prompting security notifications to the user. 50 // requesting recognition, for prompting security notifications to the user.
59 std::string context_name; 51 std::string context_name;
60 52
61 // The label for the permission request, it is used for request abortion. 53 // The label for the permission request, it is used for request abortion.
62 std::string label; 54 std::string label;
63 55
64 // A list of devices being used by the recognition session. 56 // A list of devices being used by the recognition session.
65 MediaStreamDevices devices; 57 MediaStreamDevices devices;
66 }; 58 };
67 59
68 } // namespace content 60 } // namespace content
69 61
70 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_ 62 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698