Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 virtual bool CheckMediaAccessPermission(const GURL& security_origin, | 158 virtual bool CheckMediaAccessPermission(const GURL& security_origin, |
|
dcheng
2017/01/20 07:56:50
It's not introduced by this CL, but please add a T
Guido Urdaneta
2017/01/20 12:40:58
Done.
| |
| 159 MediaStreamType type); | 159 MediaStreamType type); |
| 160 | 160 |
| 161 // Returns the ID of the default device for the given media device |type|. | |
| 162 // If the returned value is an empty string, it means that there is no | |
| 163 // default device for the given |type|. | |
| 164 virtual std::string GetDefaultMediaDeviceID(MediaStreamType type); | |
| 165 | |
| 161 // Get the accessibility mode for the WebContents that owns this frame. | 166 // Get the accessibility mode for the WebContents that owns this frame. |
| 162 virtual AccessibilityMode GetAccessibilityMode() const; | 167 virtual AccessibilityMode GetAccessibilityMode() const; |
| 163 | 168 |
| 164 // Called when accessibility events or location changes are received | 169 // Called when accessibility events or location changes are received |
| 165 // from a render frame, when the accessibility mode has the | 170 // from a render frame, when the accessibility mode has the |
| 166 // ACCESSIBILITY_MODE_FLAG_WEB_CONTENTS flag set. | 171 // ACCESSIBILITY_MODE_FLAG_WEB_CONTENTS flag set. |
| 167 virtual void AccessibilityEventReceived( | 172 virtual void AccessibilityEventReceived( |
| 168 const std::vector<AXEventNotificationDetails>& details) {} | 173 const std::vector<AXEventNotificationDetails>& details) {} |
| 169 virtual void AccessibilityLocationChangesReceived( | 174 virtual void AccessibilityLocationChangesReceived( |
| 170 const std::vector<AXLocationChangeNotificationDetails>& details) {} | 175 const std::vector<AXLocationChangeNotificationDetails>& details) {} |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 269 const gfx::Rect& initial_rect, | 274 const gfx::Rect& initial_rect, |
| 270 bool user_gesture) {} | 275 bool user_gesture) {} |
| 271 | 276 |
| 272 protected: | 277 protected: |
| 273 virtual ~RenderFrameHostDelegate() {} | 278 virtual ~RenderFrameHostDelegate() {} |
| 274 }; | 279 }; |
| 275 | 280 |
| 276 } // namespace content | 281 } // namespace content |
| 277 | 282 |
| 278 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 283 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |