| 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 RenderFrameHost; | 29 class RenderFrameHost; | 
|  | 30 class ScreenOrientationProvider; | 
| 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: | 
| 39   // This is used to give the delegate a chance to filter IPC messages. | 40   // This is used to give the delegate a chance to filter IPC messages. | 
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 134   virtual AccessibilityMode GetAccessibilityMode() const; | 135   virtual AccessibilityMode GetAccessibilityMode() const; | 
| 135 | 136 | 
| 136   // Invoked when an accessibility event is received from the renderer. | 137   // Invoked when an accessibility event is received from the renderer. | 
| 137   virtual void AccessibilityEventReceived( | 138   virtual void AccessibilityEventReceived( | 
| 138       const std::vector<AXEventNotificationDetails>& details) {} | 139       const std::vector<AXEventNotificationDetails>& details) {} | 
| 139 | 140 | 
| 140   // Find a guest RenderFrameHost by its browser plugin instance id. | 141   // Find a guest RenderFrameHost by its browser plugin instance id. | 
| 141   virtual RenderFrameHost* GetGuestByInstanceID( | 142   virtual RenderFrameHost* GetGuestByInstanceID( | 
| 142       int browser_plugin_instance_id); | 143       int browser_plugin_instance_id); | 
| 143 | 144 | 
|  | 145   // Returns the ScreenOrientationProvider instance associated with the | 
|  | 146   // delegate. | 
|  | 147   virtual ScreenOrientationProvider* GetScreenOrientationProvider(); | 
|  | 148 | 
| 144 #if defined(OS_WIN) | 149 #if defined(OS_WIN) | 
| 145   // Returns the frame's parent's NativeViewAccessible. | 150   // Returns the frame's parent's NativeViewAccessible. | 
| 146   virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 151   virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 
| 147 #endif | 152 #endif | 
| 148 | 153 | 
| 149  protected: | 154  protected: | 
| 150   virtual ~RenderFrameHostDelegate() {} | 155   virtual ~RenderFrameHostDelegate() {} | 
| 151 }; | 156 }; | 
| 152 | 157 | 
| 153 }  // namespace content | 158 }  // namespace content | 
| 154 | 159 | 
| 155 #endif  // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 160 #endif  // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 
| OLD | NEW | 
|---|