| 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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 | 607 |
| 608 return frame_connector_->TransformPointToCoordSpaceForView( | 608 return frame_connector_->TransformPointToCoordSpaceForView( |
| 609 point, target_view, cc::SurfaceId(frame_sink_id_, local_surface_id_), | 609 point, target_view, cc::SurfaceId(frame_sink_id_, local_surface_id_), |
| 610 transformed_point); | 610 transformed_point); |
| 611 } | 611 } |
| 612 | 612 |
| 613 bool RenderWidgetHostViewChildFrame::IsRenderWidgetHostViewChildFrame() { | 613 bool RenderWidgetHostViewChildFrame::IsRenderWidgetHostViewChildFrame() { |
| 614 return true; | 614 return true; |
| 615 } | 615 } |
| 616 | 616 |
| 617 void RenderWidgetHostViewChildFrame::WillSendScreenRects() { |
| 618 if (frame_connector_) |
| 619 UpdateViewportIntersection(frame_connector_->viewport_intersection()); |
| 620 } |
| 621 |
| 617 #if defined(OS_MACOSX) | 622 #if defined(OS_MACOSX) |
| 618 ui::AcceleratedWidgetMac* | 623 ui::AcceleratedWidgetMac* |
| 619 RenderWidgetHostViewChildFrame::GetAcceleratedWidgetMac() const { | 624 RenderWidgetHostViewChildFrame::GetAcceleratedWidgetMac() const { |
| 620 return nullptr; | 625 return nullptr; |
| 621 } | 626 } |
| 622 | 627 |
| 623 void RenderWidgetHostViewChildFrame::SetActive(bool active) { | 628 void RenderWidgetHostViewChildFrame::SetActive(bool active) { |
| 624 } | 629 } |
| 625 | 630 |
| 626 void RenderWidgetHostViewChildFrame::ShowDefinitionForSelection() { | 631 void RenderWidgetHostViewChildFrame::ShowDefinitionForSelection() { |
| (...skipping 190 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 |