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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 } | 321 } |
322 } | 322 } |
323 | 323 |
324 void RenderWidgetHostViewChildFrame::UpdateViewportIntersection( | 324 void RenderWidgetHostViewChildFrame::UpdateViewportIntersection( |
325 const gfx::Rect& viewport_intersection) { | 325 const gfx::Rect& viewport_intersection) { |
326 if (host_) | 326 if (host_) |
327 host_->Send(new ViewMsg_SetViewportIntersection(host_->GetRoutingID(), | 327 host_->Send(new ViewMsg_SetViewportIntersection(host_->GetRoutingID(), |
328 viewport_intersection)); | 328 viewport_intersection)); |
329 } | 329 } |
330 | 330 |
| 331 void RenderWidgetHostViewChildFrame::SetIsInert(bool inert) { |
| 332 if (host_) |
| 333 host_->Send(new ViewMsg_SetIsInert(host_->GetRoutingID(), inert)); |
| 334 } |
| 335 |
331 void RenderWidgetHostViewChildFrame::GestureEventAck( | 336 void RenderWidgetHostViewChildFrame::GestureEventAck( |
332 const blink::WebGestureEvent& event, | 337 const blink::WebGestureEvent& event, |
333 InputEventAckState ack_result) { | 338 InputEventAckState ack_result) { |
334 bool not_consumed = ack_result == INPUT_EVENT_ACK_STATE_NOT_CONSUMED || | 339 bool not_consumed = ack_result == INPUT_EVENT_ACK_STATE_NOT_CONSUMED || |
335 ack_result == INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS; | 340 ack_result == INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS; |
336 // GestureScrollBegin is consumed by the target frame and not forwarded, | 341 // GestureScrollBegin is consumed by the target frame and not forwarded, |
337 // because we don't know whether we will need to bubble scroll until we | 342 // because we don't know whether we will need to bubble scroll until we |
338 // receive a GestureScrollUpdate ACK. GestureScrollUpdate with unused | 343 // receive a GestureScrollUpdate ACK. GestureScrollUpdate with unused |
339 // scroll extent is forwarded for bubbling, while GestureScrollEnd is | 344 // scroll extent is forwarded for bubbling, while GestureScrollEnd is |
340 // always forwarded and handled according to current scroll state in the | 345 // always forwarded and handled according to current scroll state in the |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 frame_sink_id_); | 729 frame_sink_id_); |
725 } | 730 } |
726 support_.reset(); | 731 support_.reset(); |
727 } | 732 } |
728 | 733 |
729 bool RenderWidgetHostViewChildFrame::HasEmbedderChanged() { | 734 bool RenderWidgetHostViewChildFrame::HasEmbedderChanged() { |
730 return false; | 735 return false; |
731 } | 736 } |
732 | 737 |
733 } // namespace content | 738 } // namespace content |
OLD | NEW |