| 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 #include "third_party/WebKit/public/platform/WebFocusType.h" |
| 13 #include "third_party/WebKit/public/web/WebRemoteFrame.h" | 14 #include "third_party/WebKit/public/web/WebRemoteFrame.h" |
| 14 #include "third_party/WebKit/public/web/WebRemoteFrameClient.h" | 15 #include "third_party/WebKit/public/web/WebRemoteFrameClient.h" |
| 15 #include "url/origin.h" | 16 #include "url/origin.h" |
| 16 | 17 |
| 17 struct FrameMsg_BuffersSwapped_Params; | 18 struct FrameMsg_BuffersSwapped_Params; |
| 18 struct FrameMsg_CompositorFrameSwapped_Params; | 19 struct FrameMsg_CompositorFrameSwapped_Params; |
| 19 | 20 |
| 20 namespace blink { | 21 namespace blink { |
| 21 class WebInputEvent; | 22 class WebInputEvent; |
| 22 struct WebRect; | 23 struct WebRect; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 blink::WebRemoteFrame* targetFrame, | 126 blink::WebRemoteFrame* targetFrame, |
| 126 blink::WebSecurityOrigin target, | 127 blink::WebSecurityOrigin target, |
| 127 blink::WebDOMMessageEvent event) override; | 128 blink::WebDOMMessageEvent event) override; |
| 128 void initializeChildFrame(const blink::WebRect& frame_rect, | 129 void initializeChildFrame(const blink::WebRect& frame_rect, |
| 129 float scale_factor) override; | 130 float scale_factor) override; |
| 130 void navigate(const blink::WebURLRequest& request, | 131 void navigate(const blink::WebURLRequest& request, |
| 131 bool should_replace_current_entry) override; | 132 bool should_replace_current_entry) override; |
| 132 void forwardInputEvent(const blink::WebInputEvent* event) override; | 133 void forwardInputEvent(const blink::WebInputEvent* event) override; |
| 133 void frameRectsChanged(const blink::WebRect& frame_rect) override; | 134 void frameRectsChanged(const blink::WebRect& frame_rect) override; |
| 134 void didChangeOpener(blink::WebFrame* opener) override; | 135 void didChangeOpener(blink::WebFrame* opener) override; |
| 136 void advanceFocus(blink::WebFocusType type, |
| 137 blink::WebLocalFrame* source) override; |
| 135 | 138 |
| 136 // IPC handlers | 139 // IPC handlers |
| 137 void OnDidStartLoading(); | 140 void OnDidStartLoading(); |
| 138 | 141 |
| 139 private: | 142 private: |
| 140 RenderFrameProxy(int routing_id, int frame_routing_id); | 143 RenderFrameProxy(int routing_id, int frame_routing_id); |
| 141 | 144 |
| 142 void Init(blink::WebRemoteFrame* frame, RenderViewImpl* render_view); | 145 void Init(blink::WebRemoteFrame* frame, RenderViewImpl* render_view); |
| 143 | 146 |
| 144 // IPC::Listener | 147 // IPC::Listener |
| (...skipping 28 matching lines...) Expand all Loading... |
| 173 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; | 176 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; |
| 174 | 177 |
| 175 RenderViewImpl* render_view_; | 178 RenderViewImpl* render_view_; |
| 176 | 179 |
| 177 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); | 180 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); |
| 178 }; | 181 }; |
| 179 | 182 |
| 180 } // namespace | 183 } // namespace |
| 181 | 184 |
| 182 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ | 185 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ |
| OLD | NEW |