OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_RENDERER_RENDER_FRAME_PROXY_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ |
6 #define CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "ipc/ipc_listener.h" | 11 #include "ipc/ipc_listener.h" |
12 #include "ipc/ipc_sender.h" | 12 #include "ipc/ipc_sender.h" |
13 | 13 |
14 #include "third_party/WebKit/public/web/WebRemoteFrame.h" | 14 #include "third_party/WebKit/public/web/WebRemoteFrame.h" |
15 #include "third_party/WebKit/public/web/WebRemoteFrameClient.h" | 15 #include "third_party/WebKit/public/web/WebRemoteFrameClient.h" |
16 | 16 |
17 struct FrameMsg_BuffersSwapped_Params; | 17 struct FrameMsg_BuffersSwapped_Params; |
18 struct FrameMsg_CompositorFrameSwapped_Params; | 18 struct FrameMsg_CompositorFrameSwapped_Params; |
19 | 19 |
| 20 namespace blink { |
| 21 class WebInputEvent; |
| 22 } |
| 23 |
20 namespace content { | 24 namespace content { |
21 | 25 |
22 class ChildFrameCompositingHelper; | 26 class ChildFrameCompositingHelper; |
23 class RenderFrameImpl; | 27 class RenderFrameImpl; |
24 class RenderViewImpl; | 28 class RenderViewImpl; |
25 | 29 |
26 // When a page's frames are rendered by multiple processes, each renderer has a | 30 // When a page's frames are rendered by multiple processes, each renderer has a |
27 // full copy of the frame tree. It has full RenderFrames for the frames it is | 31 // full copy of the frame tree. It has full RenderFrames for the frames it is |
28 // responsible for rendering and placeholder objects for frames rendered by | 32 // responsible for rendering and placeholder objects for frames rendered by |
29 // other processes. This class is the renderer-side object for the placeholder. | 33 // other processes. This class is the renderer-side object for the placeholder. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 virtual void postMessageEvent( | 101 virtual void postMessageEvent( |
98 blink::WebLocalFrame* sourceFrame, | 102 blink::WebLocalFrame* sourceFrame, |
99 blink::WebRemoteFrame* targetFrame, | 103 blink::WebRemoteFrame* targetFrame, |
100 blink::WebSecurityOrigin target, | 104 blink::WebSecurityOrigin target, |
101 blink::WebDOMMessageEvent event); | 105 blink::WebDOMMessageEvent event); |
102 virtual void initializeChildFrame( | 106 virtual void initializeChildFrame( |
103 const blink::WebRect& frame_rect, | 107 const blink::WebRect& frame_rect, |
104 float scale_factor); | 108 float scale_factor); |
105 virtual void navigate(const blink::WebURLRequest& request, | 109 virtual void navigate(const blink::WebURLRequest& request, |
106 bool should_replace_current_entry); | 110 bool should_replace_current_entry); |
| 111 virtual void forwardInputEvent(const blink::WebInputEvent* event); |
107 | 112 |
108 private: | 113 private: |
109 RenderFrameProxy(int routing_id, int frame_routing_id); | 114 RenderFrameProxy(int routing_id, int frame_routing_id); |
110 | 115 |
111 void Init(blink::WebRemoteFrame* frame, RenderViewImpl* render_view); | 116 void Init(blink::WebRemoteFrame* frame, RenderViewImpl* render_view); |
112 | 117 |
113 // IPC::Listener | 118 // IPC::Listener |
114 virtual bool OnMessageReceived(const IPC::Message& msg) override; | 119 virtual bool OnMessageReceived(const IPC::Message& msg) override; |
115 | 120 |
116 // IPC handlers | 121 // IPC handlers |
(...skipping 14 matching lines...) Expand all Loading... |
131 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; | 136 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; |
132 | 137 |
133 RenderViewImpl* render_view_; | 138 RenderViewImpl* render_view_; |
134 | 139 |
135 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); | 140 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); |
136 }; | 141 }; |
137 | 142 |
138 } // namespace | 143 } // namespace |
139 | 144 |
140 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ | 145 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ |
OLD | NEW |