| 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 | 456 |
| 457 gfx::Point RenderWidgetHostViewChildFrame::TransformPointToRootCoordSpace( | 457 gfx::Point RenderWidgetHostViewChildFrame::TransformPointToRootCoordSpace( |
| 458 const gfx::Point& point) { | 458 const gfx::Point& point) { |
| 459 if (!frame_connector_) | 459 if (!frame_connector_) |
| 460 return point; | 460 return point; |
| 461 | 461 |
| 462 return frame_connector_->TransformPointToRootCoordSpace(point, surface_id_); | 462 return frame_connector_->TransformPointToRootCoordSpace(point, surface_id_); |
| 463 } | 463 } |
| 464 | 464 |
| 465 #if defined(OS_MACOSX) | 465 #if defined(OS_MACOSX) |
| 466 ui::AcceleratedWidgetMac* |
| 467 RenderWidgetHostViewChildFrame::GetAcceleratedWidgetMac() const { |
| 468 return nullptr; |
| 469 } |
| 470 |
| 466 void RenderWidgetHostViewChildFrame::SetActive(bool active) { | 471 void RenderWidgetHostViewChildFrame::SetActive(bool active) { |
| 467 } | 472 } |
| 468 | 473 |
| 469 void RenderWidgetHostViewChildFrame::ShowDefinitionForSelection() { | 474 void RenderWidgetHostViewChildFrame::ShowDefinitionForSelection() { |
| 470 } | 475 } |
| 471 | 476 |
| 472 bool RenderWidgetHostViewChildFrame::SupportsSpeech() const { | 477 bool RenderWidgetHostViewChildFrame::SupportsSpeech() const { |
| 473 return false; | 478 return false; |
| 474 } | 479 } |
| 475 | 480 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 | 585 |
| 581 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { | 586 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { |
| 582 return true; | 587 return true; |
| 583 } | 588 } |
| 584 | 589 |
| 585 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { | 590 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { |
| 586 return surface_id_; | 591 return surface_id_; |
| 587 }; | 592 }; |
| 588 | 593 |
| 589 } // namespace content | 594 } // namespace content |
| OLD | NEW |