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 GeolocationServiceContext; | |
30 class RenderFrameHost; | 29 class RenderFrameHost; |
31 class WebContents; | 30 class WebContents; |
32 struct AXEventNotificationDetails; | 31 struct AXEventNotificationDetails; |
33 struct ContextMenuParams; | 32 struct ContextMenuParams; |
34 struct TransitionLayerData; | 33 struct TransitionLayerData; |
35 | 34 |
36 // An interface implemented by an object interested in knowing about the state | 35 // An interface implemented by an object interested in knowing about the state |
37 // of the RenderFrameHost. | 36 // of the RenderFrameHost. |
38 class CONTENT_EXPORT RenderFrameHostDelegate { | 37 class CONTENT_EXPORT RenderFrameHostDelegate { |
39 public: | 38 public: |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 virtual AccessibilityMode GetAccessibilityMode() const; | 140 virtual AccessibilityMode GetAccessibilityMode() const; |
142 | 141 |
143 // Invoked when an accessibility event is received from the renderer. | 142 // Invoked when an accessibility event is received from the renderer. |
144 virtual void AccessibilityEventReceived( | 143 virtual void AccessibilityEventReceived( |
145 const std::vector<AXEventNotificationDetails>& details) {} | 144 const std::vector<AXEventNotificationDetails>& details) {} |
146 | 145 |
147 // Find a guest RenderFrameHost by its browser plugin instance id. | 146 // Find a guest RenderFrameHost by its browser plugin instance id. |
148 virtual RenderFrameHost* GetGuestByInstanceID( | 147 virtual RenderFrameHost* GetGuestByInstanceID( |
149 int browser_plugin_instance_id); | 148 int browser_plugin_instance_id); |
150 | 149 |
151 // Gets the GeolocationServiceContext associated with this delegate. | |
152 virtual GeolocationServiceContext* GetGeolocationServiceContext(); | |
153 | |
154 #if defined(OS_WIN) | 150 #if defined(OS_WIN) |
155 // Returns the frame's parent's NativeViewAccessible. | 151 // Returns the frame's parent's NativeViewAccessible. |
156 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 152 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
157 #endif | 153 #endif |
158 | 154 |
159 protected: | 155 protected: |
160 virtual ~RenderFrameHostDelegate() {} | 156 virtual ~RenderFrameHostDelegate() {} |
161 }; | 157 }; |
162 | 158 |
163 } // namespace content | 159 } // namespace content |
164 | 160 |
165 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 161 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |