| 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 gfx::Point RenderWidgetHostViewChildFrame::TransformPointToCoordSpaceForView( | 530 gfx::Point RenderWidgetHostViewChildFrame::TransformPointToCoordSpaceForView( |
| 531 const gfx::Point& point, | 531 const gfx::Point& point, |
| 532 RenderWidgetHostViewBase* target_view) { | 532 RenderWidgetHostViewBase* target_view) { |
| 533 if (!frame_connector_ || surface_id_.is_null() || target_view == this) | 533 if (!frame_connector_ || surface_id_.is_null() || target_view == this) |
| 534 return point; | 534 return point; |
| 535 | 535 |
| 536 return frame_connector_->TransformPointToCoordSpaceForView(point, target_view, | 536 return frame_connector_->TransformPointToCoordSpaceForView(point, target_view, |
| 537 surface_id_); | 537 surface_id_); |
| 538 } | 538 } |
| 539 | 539 |
| 540 bool RenderWidgetHostViewChildFrame::IsRenderWidgetHostViewChildFrame() { |
| 541 return true; |
| 542 } |
| 543 |
| 540 #if defined(OS_MACOSX) | 544 #if defined(OS_MACOSX) |
| 541 ui::AcceleratedWidgetMac* | 545 ui::AcceleratedWidgetMac* |
| 542 RenderWidgetHostViewChildFrame::GetAcceleratedWidgetMac() const { | 546 RenderWidgetHostViewChildFrame::GetAcceleratedWidgetMac() const { |
| 543 return nullptr; | 547 return nullptr; |
| 544 } | 548 } |
| 545 | 549 |
| 546 void RenderWidgetHostViewChildFrame::SetActive(bool active) { | 550 void RenderWidgetHostViewChildFrame::SetActive(bool active) { |
| 547 } | 551 } |
| 548 | 552 |
| 549 void RenderWidgetHostViewChildFrame::ShowDefinitionForSelection() { | 553 void RenderWidgetHostViewChildFrame::ShowDefinitionForSelection() { |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 | 719 |
| 716 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { | 720 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { |
| 717 return true; | 721 return true; |
| 718 } | 722 } |
| 719 | 723 |
| 720 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { | 724 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { |
| 721 return surface_id_; | 725 return surface_id_; |
| 722 }; | 726 }; |
| 723 | 727 |
| 724 } // namespace content | 728 } // namespace content |
| OLD | NEW |