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" |
11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "content/common/frame_message_enums.h" | 13 #include "content/common/frame_message_enums.h" |
14 #include "content/public/common/javascript_message_type.h" | 14 #include "content/public/common/javascript_message_type.h" |
15 #include "content/public/common/media_stream_request.h" | 15 #include "content/public/common/media_stream_request.h" |
16 #include "net/http/http_response_headers.h" | 16 #include "net/http/http_response_headers.h" |
17 | 17 |
18 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
19 #include "ui/gfx/native_widget_types.h" | 19 #include "ui/gfx/native_widget_types.h" |
20 #endif | 20 #endif |
21 | 21 |
22 class GURL; | 22 class GURL; |
23 | 23 |
24 namespace IPC { | 24 namespace IPC { |
25 class Message; | 25 class Message; |
26 } | 26 } |
27 | 27 |
28 namespace content { | 28 namespace content { |
29 class GeolocationServiceImplContext; | |
29 class RenderFrameHost; | 30 class RenderFrameHost; |
30 class WebContents; | 31 class WebContents; |
31 struct AXEventNotificationDetails; | 32 struct AXEventNotificationDetails; |
32 struct ContextMenuParams; | 33 struct ContextMenuParams; |
33 struct TransitionLayerData; | 34 struct TransitionLayerData; |
34 | 35 |
35 // An interface implemented by an object interested in knowing about the state | 36 // An interface implemented by an object interested in knowing about the state |
36 // of the RenderFrameHost. | 37 // of the RenderFrameHost. |
37 class CONTENT_EXPORT RenderFrameHostDelegate { | 38 class CONTENT_EXPORT RenderFrameHostDelegate { |
38 public: | 39 public: |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
140 virtual AccessibilityMode GetAccessibilityMode() const; | 141 virtual AccessibilityMode GetAccessibilityMode() const; |
141 | 142 |
142 // Invoked when an accessibility event is received from the renderer. | 143 // Invoked when an accessibility event is received from the renderer. |
143 virtual void AccessibilityEventReceived( | 144 virtual void AccessibilityEventReceived( |
144 const std::vector<AXEventNotificationDetails>& details) {} | 145 const std::vector<AXEventNotificationDetails>& details) {} |
145 | 146 |
146 // Find a guest RenderFrameHost by its browser plugin instance id. | 147 // Find a guest RenderFrameHost by its browser plugin instance id. |
147 virtual RenderFrameHost* GetGuestByInstanceID( | 148 virtual RenderFrameHost* GetGuestByInstanceID( |
148 int browser_plugin_instance_id); | 149 int browser_plugin_instance_id); |
149 | 150 |
151 // Gets the geolocation context associated with this delegate. | |
152 virtual GeolocationServiceImplContext* GetGeolocationContext(); | |
Michael van Ouwerkerk
2014/10/08 14:13:07
Please disambiguate in method name and documentati
blundell
2014/10/09 08:32:52
Done.
| |
153 | |
150 #if defined(OS_WIN) | 154 #if defined(OS_WIN) |
151 // Returns the frame's parent's NativeViewAccessible. | 155 // Returns the frame's parent's NativeViewAccessible. |
152 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 156 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
153 #endif | 157 #endif |
154 | 158 |
155 protected: | 159 protected: |
156 virtual ~RenderFrameHostDelegate() {} | 160 virtual ~RenderFrameHostDelegate() {} |
157 }; | 161 }; |
158 | 162 |
159 } // namespace content | 163 } // namespace content |
160 | 164 |
161 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 165 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |