Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: content/renderer/render_frame_proxy.cc

Issue 2431473003: Intersection Observer support for OOPIF (Closed)
Patch Set: dcheng comments addressed Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_frame_proxy.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 12 matching lines...) Expand all
23 #include "content/common/swapped_out_messages.h" 23 #include "content/common/swapped_out_messages.h"
24 #include "content/common/view_messages.h" 24 #include "content/common/view_messages.h"
25 #include "content/renderer/child_frame_compositing_helper.h" 25 #include "content/renderer/child_frame_compositing_helper.h"
26 #include "content/renderer/render_frame_impl.h" 26 #include "content/renderer/render_frame_impl.h"
27 #include "content/renderer/render_thread_impl.h" 27 #include "content/renderer/render_thread_impl.h"
28 #include "content/renderer/render_view_impl.h" 28 #include "content/renderer/render_view_impl.h"
29 #include "content/renderer/render_widget.h" 29 #include "content/renderer/render_widget.h"
30 #include "ipc/ipc_message_macros.h" 30 #include "ipc/ipc_message_macros.h"
31 #include "third_party/WebKit/public/platform/URLConversion.h" 31 #include "third_party/WebKit/public/platform/URLConversion.h"
32 #include "third_party/WebKit/public/platform/WebFeaturePolicy.h" 32 #include "third_party/WebKit/public/platform/WebFeaturePolicy.h"
33 #include "third_party/WebKit/public/platform/WebRect.h"
33 #include "third_party/WebKit/public/platform/WebString.h" 34 #include "third_party/WebKit/public/platform/WebString.h"
34 #include "third_party/WebKit/public/web/WebLocalFrame.h" 35 #include "third_party/WebKit/public/web/WebLocalFrame.h"
35 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" 36 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h"
36 #include "third_party/WebKit/public/web/WebView.h" 37 #include "third_party/WebKit/public/web/WebView.h"
37 38
38 namespace content { 39 namespace content {
39 40
40 namespace { 41 namespace {
41 42
42 // Facilitates lookup of RenderFrameProxy by routing_id. 43 // Facilitates lookup of RenderFrameProxy by routing_id.
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 486
486 void RenderFrameProxy::frameRectsChanged(const blink::WebRect& frame_rect) { 487 void RenderFrameProxy::frameRectsChanged(const blink::WebRect& frame_rect) {
487 gfx::Rect rect = frame_rect; 488 gfx::Rect rect = frame_rect;
488 if (IsUseZoomForDSFEnabled()) { 489 if (IsUseZoomForDSFEnabled()) {
489 rect = gfx::ScaleToEnclosingRect( 490 rect = gfx::ScaleToEnclosingRect(
490 rect, 1.f / render_widget_->GetOriginalDeviceScaleFactor()); 491 rect, 1.f / render_widget_->GetOriginalDeviceScaleFactor());
491 } 492 }
492 Send(new FrameHostMsg_FrameRectChanged(routing_id_, rect)); 493 Send(new FrameHostMsg_FrameRectChanged(routing_id_, rect));
493 } 494 }
494 495
496 void RenderFrameProxy::updateRemoteViewportIntersection(
497 const blink::WebRect& viewportIntersection) {
498 Send(new FrameHostMsg_UpdateViewportIntersection(
499 routing_id_, gfx::Rect(viewportIntersection)));
500 }
501
495 void RenderFrameProxy::visibilityChanged(bool visible) { 502 void RenderFrameProxy::visibilityChanged(bool visible) {
496 Send(new FrameHostMsg_VisibilityChanged(routing_id_, visible)); 503 Send(new FrameHostMsg_VisibilityChanged(routing_id_, visible));
497 } 504 }
498 505
499 void RenderFrameProxy::setHasReceivedUserGesture() { 506 void RenderFrameProxy::setHasReceivedUserGesture() {
500 Send(new FrameHostMsg_SetHasReceivedUserGesture(routing_id_)); 507 Send(new FrameHostMsg_SetHasReceivedUserGesture(routing_id_));
501 } 508 }
502 509
503 void RenderFrameProxy::didChangeOpener(blink::WebFrame* opener) { 510 void RenderFrameProxy::didChangeOpener(blink::WebFrame* opener) {
504 // A proxy shouldn't normally be disowning its opener. It is possible to get 511 // A proxy shouldn't normally be disowning its opener. It is possible to get
(...skipping 15 matching lines...) Expand all
520 blink::WebLocalFrame* source) { 527 blink::WebLocalFrame* source) {
521 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); 528 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID();
522 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); 529 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id));
523 } 530 }
524 531
525 void RenderFrameProxy::frameFocused() { 532 void RenderFrameProxy::frameFocused() {
526 Send(new FrameHostMsg_FrameFocused(routing_id_)); 533 Send(new FrameHostMsg_FrameFocused(routing_id_));
527 } 534 }
528 535
529 } // namespace 536 } // namespace
OLDNEW
« no previous file with comments | « content/renderer/render_frame_proxy.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698