| 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 #include "content/renderer/render_frame_proxy.h" | 5 #include "content/renderer/render_frame_proxy.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 params.referrer = Referrer( | 477 params.referrer = Referrer( |
| 478 blink::WebStringToGURL( | 478 blink::WebStringToGURL( |
| 479 request.httpHeaderField(blink::WebString::fromUTF8("Referer"))), | 479 request.httpHeaderField(blink::WebString::fromUTF8("Referer"))), |
| 480 request.getReferrerPolicy()); | 480 request.getReferrerPolicy()); |
| 481 params.disposition = WindowOpenDisposition::CURRENT_TAB; | 481 params.disposition = WindowOpenDisposition::CURRENT_TAB; |
| 482 params.should_replace_current_entry = should_replace_current_entry; | 482 params.should_replace_current_entry = should_replace_current_entry; |
| 483 params.user_gesture = request.hasUserGesture(); | 483 params.user_gesture = request.hasUserGesture(); |
| 484 Send(new FrameHostMsg_OpenURL(routing_id_, params)); | 484 Send(new FrameHostMsg_OpenURL(routing_id_, params)); |
| 485 } | 485 } |
| 486 | 486 |
| 487 void RenderFrameProxy::forwardInputEvent(const blink::WebInputEvent* event) { | |
| 488 Send(new FrameHostMsg_ForwardInputEvent(routing_id_, event)); | |
| 489 } | |
| 490 | |
| 491 void RenderFrameProxy::frameRectsChanged(const blink::WebRect& frame_rect) { | 487 void RenderFrameProxy::frameRectsChanged(const blink::WebRect& frame_rect) { |
| 492 gfx::Rect rect = frame_rect; | 488 gfx::Rect rect = frame_rect; |
| 493 if (IsUseZoomForDSFEnabled()) { | 489 if (IsUseZoomForDSFEnabled()) { |
| 494 rect = gfx::ScaleToEnclosingRect( | 490 rect = gfx::ScaleToEnclosingRect( |
| 495 rect, 1.f / render_widget_->GetOriginalDeviceScaleFactor()); | 491 rect, 1.f / render_widget_->GetOriginalDeviceScaleFactor()); |
| 496 } | 492 } |
| 497 Send(new FrameHostMsg_FrameRectChanged(routing_id_, rect)); | 493 Send(new FrameHostMsg_FrameRectChanged(routing_id_, rect)); |
| 498 } | 494 } |
| 499 | 495 |
| 500 void RenderFrameProxy::updateRemoteViewportIntersection( | 496 void RenderFrameProxy::updateRemoteViewportIntersection( |
| (...skipping 26 matching lines...) Expand all Loading... |
| 527 blink::WebLocalFrame* source) { | 523 blink::WebLocalFrame* source) { |
| 528 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); | 524 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); |
| 529 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); | 525 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); |
| 530 } | 526 } |
| 531 | 527 |
| 532 void RenderFrameProxy::frameFocused() { | 528 void RenderFrameProxy::frameFocused() { |
| 533 Send(new FrameHostMsg_FrameFocused(routing_id_)); | 529 Send(new FrameHostMsg_FrameFocused(routing_id_)); |
| 534 } | 530 } |
| 535 | 531 |
| 536 } // namespace | 532 } // namespace |
| OLD | NEW |