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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.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
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/browser/frame_host/render_widget_host_view_child_frame.h" 5 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 } 329 }
330 330
331 void RenderWidgetHostViewChildFrame::UnregisterFrameSinkId() { 331 void RenderWidgetHostViewChildFrame::UnregisterFrameSinkId() {
332 DCHECK(host_); 332 DCHECK(host_);
333 if (host_->delegate() && host_->delegate()->GetInputEventRouter()) { 333 if (host_->delegate() && host_->delegate()->GetInputEventRouter()) {
334 host_->delegate()->GetInputEventRouter()->RemoveFrameSinkIdOwner( 334 host_->delegate()->GetInputEventRouter()->RemoveFrameSinkIdOwner(
335 frame_sink_id_); 335 frame_sink_id_);
336 } 336 }
337 } 337 }
338 338
339 void RenderWidgetHostViewChildFrame::UpdateViewportIntersection(
340 const gfx::Rect& viewport_intersection) {
341 if (host_)
342 host_->Send(new ViewMsg_SetViewportIntersection(host_->GetRoutingID(),
343 viewport_intersection));
344 }
345
339 void RenderWidgetHostViewChildFrame::GestureEventAck( 346 void RenderWidgetHostViewChildFrame::GestureEventAck(
340 const blink::WebGestureEvent& event, 347 const blink::WebGestureEvent& event,
341 InputEventAckState ack_result) { 348 InputEventAckState ack_result) {
342 bool not_consumed = ack_result == INPUT_EVENT_ACK_STATE_NOT_CONSUMED || 349 bool not_consumed = ack_result == INPUT_EVENT_ACK_STATE_NOT_CONSUMED ||
343 ack_result == INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS; 350 ack_result == INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS;
344 // GestureScrollBegin is consumed by the target frame and not forwarded, 351 // GestureScrollBegin is consumed by the target frame and not forwarded,
345 // because we don't know whether we will need to bubble scroll until we 352 // because we don't know whether we will need to bubble scroll until we
346 // receive a GestureScrollUpdate ACK. GestureScrollUpdate with unused 353 // receive a GestureScrollUpdate ACK. GestureScrollUpdate with unused
347 // scroll extent is forwarded for bubbling, while GestureScrollEnd is 354 // scroll extent is forwarded for bubbling, while GestureScrollEnd is
348 // always forwarded and handled according to current scroll state in the 355 // always forwarded and handled according to current scroll state in the
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 744
738 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { 745 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const {
739 return true; 746 return true;
740 } 747 }
741 748
742 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { 749 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const {
743 return cc::SurfaceId(frame_sink_id_, local_frame_id_); 750 return cc::SurfaceId(frame_sink_id_, local_frame_id_);
744 }; 751 };
745 752
746 } // namespace content 753 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_child_frame.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698