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

Side by Side Diff: content/browser/frame_host/render_frame_host_delegate.h

Issue 2646833002: Add IPC to query capabilities of video input devices. (Closed)
Patch Set: address comment from clamy Created 3 years, 10 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
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/frame_host/render_frame_host_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // The render frame has requested access to media devices listed in 148 // The render frame has requested access to media devices listed in
149 // |request|, and the client should grant or deny that permission by 149 // |request|, and the client should grant or deny that permission by
150 // calling |callback|. 150 // calling |callback|.
151 virtual void RequestMediaAccessPermission( 151 virtual void RequestMediaAccessPermission(
152 const MediaStreamRequest& request, 152 const MediaStreamRequest& request,
153 const MediaResponseCallback& callback); 153 const MediaResponseCallback& callback);
154 154
155 // Checks if we have permission to access the microphone or camera. Note that 155 // Checks if we have permission to access the microphone or camera. Note that
156 // this does not query the user. |type| must be MEDIA_DEVICE_AUDIO_CAPTURE 156 // this does not query the user. |type| must be MEDIA_DEVICE_AUDIO_CAPTURE
157 // or MEDIA_DEVICE_VIDEO_CAPTURE. 157 // or MEDIA_DEVICE_VIDEO_CAPTURE.
158 // TODO(guidou): use url::Origin for |security_origin|. See crbug.com/683115.
158 virtual bool CheckMediaAccessPermission(const GURL& security_origin, 159 virtual bool CheckMediaAccessPermission(const GURL& security_origin,
159 MediaStreamType type); 160 MediaStreamType type);
160 161
162 // Returns the ID of the default device for the given media device |type|.
163 // If the returned value is an empty string, it means that there is no
164 // default device for the given |type|.
165 virtual std::string GetDefaultMediaDeviceID(MediaStreamType type);
166
161 // Get the accessibility mode for the WebContents that owns this frame. 167 // Get the accessibility mode for the WebContents that owns this frame.
162 virtual AccessibilityMode GetAccessibilityMode() const; 168 virtual AccessibilityMode GetAccessibilityMode() const;
163 169
164 // Called when accessibility events or location changes are received 170 // Called when accessibility events or location changes are received
165 // from a render frame, when the accessibility mode has the 171 // from a render frame, when the accessibility mode has the
166 // ACCESSIBILITY_MODE_FLAG_WEB_CONTENTS flag set. 172 // ACCESSIBILITY_MODE_FLAG_WEB_CONTENTS flag set.
167 virtual void AccessibilityEventReceived( 173 virtual void AccessibilityEventReceived(
168 const std::vector<AXEventNotificationDetails>& details) {} 174 const std::vector<AXEventNotificationDetails>& details) {}
169 virtual void AccessibilityLocationChangesReceived( 175 virtual void AccessibilityLocationChangesReceived(
170 const std::vector<AXLocationChangeNotificationDetails>& details) {} 176 const std::vector<AXLocationChangeNotificationDetails>& details) {}
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 const gfx::Rect& initial_rect, 275 const gfx::Rect& initial_rect,
270 bool user_gesture) {} 276 bool user_gesture) {}
271 277
272 protected: 278 protected:
273 virtual ~RenderFrameHostDelegate() {} 279 virtual ~RenderFrameHostDelegate() {}
274 }; 280 };
275 281
276 } // namespace content 282 } // namespace content
277 283
278 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 284 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/frame_host/render_frame_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698