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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
141 virtual bool CheckMediaAccessPermission(const GURL& security_origin, | 141 virtual bool CheckMediaAccessPermission(const GURL& security_origin, |
142 MediaStreamType type); | 142 MediaStreamType type); |
143 | 143 |
144 // Get the accessibility mode for the WebContents that owns this frame. | 144 // Get the accessibility mode for the WebContents that owns this frame. |
145 virtual AccessibilityMode GetAccessibilityMode() const; | 145 virtual AccessibilityMode GetAccessibilityMode() const; |
146 | 146 |
147 // Invoked when an accessibility event is received from the renderer. | 147 // Invoked when an accessibility event is received from the renderer. |
148 virtual void AccessibilityEventReceived( | 148 virtual void AccessibilityEventReceived( |
149 const std::vector<AXEventNotificationDetails>& details) {} | 149 const std::vector<AXEventNotificationDetails>& details) {} |
150 | 150 |
151 // Find a guest RenderFrameHost by its browser plugin instance id. | 151 // Find a guest RenderFrameHost by its browser plugin instance id. |
Charlie Reis
2015/02/13 21:21:56
nit: Update comment.
Fady Samuel
2015/02/13 22:31:25
Done.
| |
152 virtual RenderFrameHost* GetGuestByInstanceID( | 152 virtual RenderFrameHost* GetGuestByInstanceID( |
153 RenderFrameHost* render_frame_host, | |
153 int browser_plugin_instance_id); | 154 int browser_plugin_instance_id); |
154 | 155 |
155 // Gets the GeolocationServiceContext associated with this delegate. | 156 // Gets the GeolocationServiceContext associated with this delegate. |
156 virtual GeolocationServiceContext* GetGeolocationServiceContext(); | 157 virtual GeolocationServiceContext* GetGeolocationServiceContext(); |
157 | 158 |
158 // Notification that the frame wants to go into fullscreen mode. | 159 // Notification that the frame wants to go into fullscreen mode. |
159 // |origin| represents the origin of the frame that requests fullscreen. | 160 // |origin| represents the origin of the frame that requests fullscreen. |
160 virtual void EnterFullscreenMode(const GURL& origin) {} | 161 virtual void EnterFullscreenMode(const GURL& origin) {} |
161 | 162 |
162 // Notification that the frame wants to go out of fullscreen mode. | 163 // Notification that the frame wants to go out of fullscreen mode. |
163 virtual void ExitFullscreenMode() {} | 164 virtual void ExitFullscreenMode() {} |
164 | 165 |
165 #if defined(OS_WIN) | 166 #if defined(OS_WIN) |
166 // Returns the frame's parent's NativeViewAccessible. | 167 // Returns the frame's parent's NativeViewAccessible. |
167 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 168 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
168 #endif | 169 #endif |
169 | 170 |
170 protected: | 171 protected: |
171 virtual ~RenderFrameHostDelegate() {} | 172 virtual ~RenderFrameHostDelegate() {} |
172 }; | 173 }; |
173 | 174 |
174 } // namespace content | 175 } // namespace content |
175 | 176 |
176 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 177 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |