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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 } | 371 } |
372 } | 372 } |
373 | 373 |
374 void RenderWidgetHostViewChildFrame::UpdateViewportIntersection( | 374 void RenderWidgetHostViewChildFrame::UpdateViewportIntersection( |
375 const gfx::Rect& viewport_intersection) { | 375 const gfx::Rect& viewport_intersection) { |
376 if (host_) | 376 if (host_) |
377 host_->Send(new ViewMsg_SetViewportIntersection(host_->GetRoutingID(), | 377 host_->Send(new ViewMsg_SetViewportIntersection(host_->GetRoutingID(), |
378 viewport_intersection)); | 378 viewport_intersection)); |
379 } | 379 } |
380 | 380 |
| 381 void RenderWidgetHostViewChildFrame::SetIsInert(bool inert) { |
| 382 if (host_) |
| 383 host_->Send(new ViewMsg_SetIsInert(host_->GetRoutingID(), inert)); |
| 384 } |
| 385 |
381 void RenderWidgetHostViewChildFrame::GestureEventAck( | 386 void RenderWidgetHostViewChildFrame::GestureEventAck( |
382 const blink::WebGestureEvent& event, | 387 const blink::WebGestureEvent& event, |
383 InputEventAckState ack_result) { | 388 InputEventAckState ack_result) { |
384 bool not_consumed = ack_result == INPUT_EVENT_ACK_STATE_NOT_CONSUMED || | 389 bool not_consumed = ack_result == INPUT_EVENT_ACK_STATE_NOT_CONSUMED || |
385 ack_result == INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS; | 390 ack_result == INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS; |
386 // GestureScrollBegin is consumed by the target frame and not forwarded, | 391 // GestureScrollBegin is consumed by the target frame and not forwarded, |
387 // because we don't know whether we will need to bubble scroll until we | 392 // because we don't know whether we will need to bubble scroll until we |
388 // receive a GestureScrollUpdate ACK. GestureScrollUpdate with unused | 393 // receive a GestureScrollUpdate ACK. GestureScrollUpdate with unused |
389 // scroll extent is forwarded for bubbling, while GestureScrollEnd is | 394 // scroll extent is forwarded for bubbling, while GestureScrollEnd is |
390 // always forwarded and handled according to current scroll state in the | 395 // always forwarded and handled according to current scroll state in the |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 auto origin = GetViewBounds().origin() - | 822 auto origin = GetViewBounds().origin() - |
818 frame_connector_->GetRootRenderWidgetHostView() | 823 frame_connector_->GetRootRenderWidgetHostView() |
819 ->GetViewBounds() | 824 ->GetViewBounds() |
820 .origin(); | 825 .origin(); |
821 return gfx::Point(origin.x(), origin.y()); | 826 return gfx::Point(origin.x(), origin.y()); |
822 } | 827 } |
823 return gfx::Point(); | 828 return gfx::Point(); |
824 } | 829 } |
825 | 830 |
826 } // namespace content | 831 } // namespace content |
OLD | NEW |