Commit 5834fe5e authored by creis's avatar creis Committed by Commit bot

Move forwardInputEvent from RenderFrame to RenderFrameProxy.

Depends on https://codereview.chromium.org/642203002.

BUG=346764
TEST=Input events work in OOPIFs with --site-per-process.

Review URL: https://codereview.chromium.org/647653002

Cr-Commit-Position: refs/heads/master@{#299196}
parent e0da0964
...@@ -3161,10 +3161,6 @@ void RenderFrameImpl::didLoseWebGLContext(blink::WebLocalFrame* frame, ...@@ -3161,10 +3161,6 @@ void RenderFrameImpl::didLoseWebGLContext(blink::WebLocalFrame* frame,
arb_robustness_status_code)); arb_robustness_status_code));
} }
void RenderFrameImpl::forwardInputEvent(const blink::WebInputEvent* event) {
Send(new FrameHostMsg_ForwardInputEvent(routing_id_, event));
}
blink::WebScreenOrientationClient* blink::WebScreenOrientationClient*
RenderFrameImpl::webScreenOrientationClient() { RenderFrameImpl::webScreenOrientationClient() {
if (!screen_orientation_dispatcher_) if (!screen_orientation_dispatcher_)
......
...@@ -41,7 +41,6 @@ struct FrameMsg_CommitNavigation_Params; ...@@ -41,7 +41,6 @@ struct FrameMsg_CommitNavigation_Params;
namespace blink { namespace blink {
class WebGeolocationClient; class WebGeolocationClient;
class WebInputEvent;
class WebMouseEvent; class WebMouseEvent;
class WebContentDecryptionModule; class WebContentDecryptionModule;
class WebMediaPlayer; class WebMediaPlayer;
...@@ -450,7 +449,6 @@ class CONTENT_EXPORT RenderFrameImpl ...@@ -450,7 +449,6 @@ class CONTENT_EXPORT RenderFrameImpl
virtual bool allowWebGL(blink::WebLocalFrame* frame, bool default_value); virtual bool allowWebGL(blink::WebLocalFrame* frame, bool default_value);
virtual void didLoseWebGLContext(blink::WebLocalFrame* frame, virtual void didLoseWebGLContext(blink::WebLocalFrame* frame,
int arb_robustness_status_code); int arb_robustness_status_code);
virtual void forwardInputEvent(const blink::WebInputEvent* event);
virtual blink::WebScreenOrientationClient* webScreenOrientationClient(); virtual blink::WebScreenOrientationClient* webScreenOrientationClient();
virtual bool isControlledByServiceWorker(blink::WebDataSource&); virtual bool isControlledByServiceWorker(blink::WebDataSource&);
virtual void postAccessibilityEvent(const blink::WebAXObject& obj, virtual void postAccessibilityEvent(const blink::WebAXObject& obj,
......
...@@ -294,4 +294,8 @@ void RenderFrameProxy::navigate(const blink::WebURLRequest& request, ...@@ -294,4 +294,8 @@ void RenderFrameProxy::navigate(const blink::WebURLRequest& request,
Send(new FrameHostMsg_OpenURL(routing_id_, params)); Send(new FrameHostMsg_OpenURL(routing_id_, params));
} }
void RenderFrameProxy::forwardInputEvent(const blink::WebInputEvent* event) {
Send(new FrameHostMsg_ForwardInputEvent(routing_id_, event));
}
} // namespace } // namespace
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
struct FrameMsg_BuffersSwapped_Params; struct FrameMsg_BuffersSwapped_Params;
struct FrameMsg_CompositorFrameSwapped_Params; struct FrameMsg_CompositorFrameSwapped_Params;
namespace blink {
class WebInputEvent;
}
namespace content { namespace content {
class ChildFrameCompositingHelper; class ChildFrameCompositingHelper;
...@@ -104,6 +108,7 @@ class CONTENT_EXPORT RenderFrameProxy ...@@ -104,6 +108,7 @@ class CONTENT_EXPORT RenderFrameProxy
float scale_factor); float scale_factor);
virtual void navigate(const blink::WebURLRequest& request, virtual void navigate(const blink::WebURLRequest& request,
bool should_replace_current_entry); bool should_replace_current_entry);
virtual void forwardInputEvent(const blink::WebInputEvent* event);
private: private:
RenderFrameProxy(int routing_id, int frame_routing_id); RenderFrameProxy(int routing_id, int frame_routing_id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment