| 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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 RenderWidgetHostViewChildFrame::GetAcceleratedWidgetMac() const { | 576 RenderWidgetHostViewChildFrame::GetAcceleratedWidgetMac() const { |
| 577 return nullptr; | 577 return nullptr; |
| 578 } | 578 } |
| 579 | 579 |
| 580 void RenderWidgetHostViewChildFrame::SetActive(bool active) { | 580 void RenderWidgetHostViewChildFrame::SetActive(bool active) { |
| 581 } | 581 } |
| 582 | 582 |
| 583 void RenderWidgetHostViewChildFrame::ShowDefinitionForSelection() { | 583 void RenderWidgetHostViewChildFrame::ShowDefinitionForSelection() { |
| 584 } | 584 } |
| 585 | 585 |
| 586 bool RenderWidgetHostViewChildFrame::SupportsSpeech() const { |
| 587 return false; |
| 588 } |
| 589 |
| 586 void RenderWidgetHostViewChildFrame::SpeakSelection() { | 590 void RenderWidgetHostViewChildFrame::SpeakSelection() { |
| 587 } | 591 } |
| 588 | 592 |
| 593 bool RenderWidgetHostViewChildFrame::IsSpeaking() const { |
| 594 return false; |
| 595 } |
| 596 |
| 597 void RenderWidgetHostViewChildFrame::StopSpeaking() {} |
| 589 #endif // defined(OS_MACOSX) | 598 #endif // defined(OS_MACOSX) |
| 590 | 599 |
| 591 void RenderWidgetHostViewChildFrame::RegisterFrameSwappedCallback( | 600 void RenderWidgetHostViewChildFrame::RegisterFrameSwappedCallback( |
| 592 std::unique_ptr<base::Closure> callback) { | 601 std::unique_ptr<base::Closure> callback) { |
| 593 frame_swapped_callbacks_.push_back(std::move(callback)); | 602 frame_swapped_callbacks_.push_back(std::move(callback)); |
| 594 } | 603 } |
| 595 | 604 |
| 596 void RenderWidgetHostViewChildFrame::CopyFromCompositingSurface( | 605 void RenderWidgetHostViewChildFrame::CopyFromCompositingSurface( |
| 597 const gfx::Rect& src_subrect, | 606 const gfx::Rect& src_subrect, |
| 598 const gfx::Size& output_size, | 607 const gfx::Size& output_size, |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 | 747 |
| 739 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { | 748 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { |
| 740 return true; | 749 return true; |
| 741 } | 750 } |
| 742 | 751 |
| 743 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { | 752 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { |
| 744 return cc::SurfaceId(frame_sink_id_, local_surface_id_); | 753 return cc::SurfaceId(frame_sink_id_, local_surface_id_); |
| 745 }; | 754 }; |
| 746 | 755 |
| 747 } // namespace content | 756 } // namespace content |
| OLD | NEW |