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/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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
376 } | 376 } |
377 } | 377 } |
378 | 378 |
379 void RenderWidgetHostViewChildFrame::UpdateViewportIntersection( | 379 void RenderWidgetHostViewChildFrame::UpdateViewportIntersection( |
380 const gfx::Rect& viewport_intersection) { | 380 const gfx::Rect& viewport_intersection) { |
381 if (host_) | 381 if (host_) |
382 host_->Send(new ViewMsg_SetViewportIntersection(host_->GetRoutingID(), | 382 host_->Send(new ViewMsg_SetViewportIntersection(host_->GetRoutingID(), |
383 viewport_intersection)); | 383 viewport_intersection)); |
384 } | 384 } |
385 | 385 |
386 void RenderWidgetHostViewChildFrame::SetIsInert(bool inert) { | |
387 if (host_) | |
388 host_->Send(new ViewMsg_SetIsInert(host_->GetRoutingID(), inert)); | |
alexmos
2017/06/16 02:17:57
To me it seemed a little confusing to have the ine
kenrb
2017/06/19 19:26:22
Originally I did it this way to be consistent with
alexmos
2017/06/20 18:46:09
Would there still be a problem if we have a(b(b)),
kenrb
2017/06/22 15:33:35
When the bottom child swaps, the newly created Rem
alexmos
2017/06/22 17:09:27
Acknowledged.
| |
389 } | |
390 | |
386 void RenderWidgetHostViewChildFrame::GestureEventAck( | 391 void RenderWidgetHostViewChildFrame::GestureEventAck( |
387 const blink::WebGestureEvent& event, | 392 const blink::WebGestureEvent& event, |
388 InputEventAckState ack_result) { | 393 InputEventAckState ack_result) { |
389 bool not_consumed = ack_result == INPUT_EVENT_ACK_STATE_NOT_CONSUMED || | 394 bool not_consumed = ack_result == INPUT_EVENT_ACK_STATE_NOT_CONSUMED || |
390 ack_result == INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS; | 395 ack_result == INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS; |
391 // GestureScrollBegin is consumed by the target frame and not forwarded, | 396 // GestureScrollBegin is consumed by the target frame and not forwarded, |
392 // because we don't know whether we will need to bubble scroll until we | 397 // because we don't know whether we will need to bubble scroll until we |
393 // receive a GestureScrollUpdate ACK. GestureScrollUpdate with unused | 398 // receive a GestureScrollUpdate ACK. GestureScrollUpdate with unused |
394 // scroll extent is forwarded for bubbling, while GestureScrollEnd is | 399 // scroll extent is forwarded for bubbling, while GestureScrollEnd is |
395 // always forwarded and handled according to current scroll state in the | 400 // always forwarded and handled according to current scroll state in the |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
844 auto origin = GetViewBounds().origin() - | 849 auto origin = GetViewBounds().origin() - |
845 frame_connector_->GetRootRenderWidgetHostView() | 850 frame_connector_->GetRootRenderWidgetHostView() |
846 ->GetViewBounds() | 851 ->GetViewBounds() |
847 .origin(); | 852 .origin(); |
848 return gfx::Point(origin.x(), origin.y()); | 853 return gfx::Point(origin.x(), origin.y()); |
849 } | 854 } |
850 return gfx::Point(); | 855 return gfx::Point(); |
851 } | 856 } |
852 | 857 |
853 } // namespace content | 858 } // namespace content |
OLD | NEW |