| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 // Returns the ID of the default device for the given media device |type|. | 165 // Returns the ID of the default device for the given media device |type|. |
| 166 // If the returned value is an empty string, it means that there is no | 166 // If the returned value is an empty string, it means that there is no |
| 167 // default device for the given |type|. | 167 // default device for the given |type|. |
| 168 virtual std::string GetDefaultMediaDeviceID(MediaStreamType type); | 168 virtual std::string GetDefaultMediaDeviceID(MediaStreamType type); |
| 169 | 169 |
| 170 // Get the accessibility mode for the WebContents that owns this frame. | 170 // Get the accessibility mode for the WebContents that owns this frame. |
| 171 virtual AccessibilityMode GetAccessibilityMode() const; | 171 virtual AccessibilityMode GetAccessibilityMode() const; |
| 172 | 172 |
| 173 // Called when accessibility events or location changes are received | 173 // Called when accessibility events or location changes are received |
| 174 // from a render frame, when the accessibility mode has the | 174 // from a render frame, when the accessibility mode has the |
| 175 // ACCESSIBILITY_MODE_FLAG_WEB_CONTENTS flag set. | 175 // AccessibilityMode::kWebContents flag set. |
| 176 virtual void AccessibilityEventReceived( | 176 virtual void AccessibilityEventReceived( |
| 177 const std::vector<AXEventNotificationDetails>& details) {} | 177 const std::vector<AXEventNotificationDetails>& details) {} |
| 178 virtual void AccessibilityLocationChangesReceived( | 178 virtual void AccessibilityLocationChangesReceived( |
| 179 const std::vector<AXLocationChangeNotificationDetails>& details) {} | 179 const std::vector<AXLocationChangeNotificationDetails>& details) {} |
| 180 | 180 |
| 181 // Find a guest RenderFrameHost by its parent |render_frame_host| and | 181 // Find a guest RenderFrameHost by its parent |render_frame_host| and |
| 182 // |browser_plugin_instance_id|. | 182 // |browser_plugin_instance_id|. |
| 183 virtual RenderFrameHost* GetGuestByInstanceID( | 183 virtual RenderFrameHost* GetGuestByInstanceID( |
| 184 RenderFrameHost* render_frame_host, | 184 RenderFrameHost* render_frame_host, |
| 185 int browser_plugin_instance_id); | 185 int browser_plugin_instance_id); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 const url::Origin& origin, | 290 const url::Origin& origin, |
| 291 const GURL& resource_url); | 291 const GURL& resource_url); |
| 292 | 292 |
| 293 protected: | 293 protected: |
| 294 virtual ~RenderFrameHostDelegate() {} | 294 virtual ~RenderFrameHostDelegate() {} |
| 295 }; | 295 }; |
| 296 | 296 |
| 297 } // namespace content | 297 } // namespace content |
| 298 | 298 |
| 299 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 299 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |