| 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 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 RenderWidgetHostViewChildFrame::GetAcceleratedWidgetMac() const { | 584 RenderWidgetHostViewChildFrame::GetAcceleratedWidgetMac() const { |
| 585 return nullptr; | 585 return nullptr; |
| 586 } | 586 } |
| 587 | 587 |
| 588 void RenderWidgetHostViewChildFrame::SetActive(bool active) { | 588 void RenderWidgetHostViewChildFrame::SetActive(bool active) { |
| 589 } | 589 } |
| 590 | 590 |
| 591 void RenderWidgetHostViewChildFrame::ShowDefinitionForSelection() { | 591 void RenderWidgetHostViewChildFrame::ShowDefinitionForSelection() { |
| 592 } | 592 } |
| 593 | 593 |
| 594 bool RenderWidgetHostViewChildFrame::SupportsSpeech() const { | |
| 595 return false; | |
| 596 } | |
| 597 | |
| 598 void RenderWidgetHostViewChildFrame::SpeakSelection() { | 594 void RenderWidgetHostViewChildFrame::SpeakSelection() { |
| 599 } | 595 } |
| 600 | 596 |
| 601 bool RenderWidgetHostViewChildFrame::IsSpeaking() const { | |
| 602 return false; | |
| 603 } | |
| 604 | |
| 605 void RenderWidgetHostViewChildFrame::StopSpeaking() { | |
| 606 } | |
| 607 #endif // defined(OS_MACOSX) | 597 #endif // defined(OS_MACOSX) |
| 608 | 598 |
| 609 void RenderWidgetHostViewChildFrame::RegisterFrameSwappedCallback( | 599 void RenderWidgetHostViewChildFrame::RegisterFrameSwappedCallback( |
| 610 std::unique_ptr<base::Closure> callback) { | 600 std::unique_ptr<base::Closure> callback) { |
| 611 frame_swapped_callbacks_.push_back(std::move(callback)); | 601 frame_swapped_callbacks_.push_back(std::move(callback)); |
| 612 } | 602 } |
| 613 | 603 |
| 614 void RenderWidgetHostViewChildFrame::CopyFromCompositingSurface( | 604 void RenderWidgetHostViewChildFrame::CopyFromCompositingSurface( |
| 615 const gfx::Rect& src_subrect, | 605 const gfx::Rect& src_subrect, |
| 616 const gfx::Size& output_size, | 606 const gfx::Size& output_size, |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 | 746 |
| 757 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { | 747 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { |
| 758 return true; | 748 return true; |
| 759 } | 749 } |
| 760 | 750 |
| 761 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { | 751 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { |
| 762 return cc::SurfaceId(frame_sink_id_, local_surface_id_); | 752 return cc::SurfaceId(frame_sink_id_, local_surface_id_); |
| 763 }; | 753 }; |
| 764 | 754 |
| 765 } // namespace content | 755 } // namespace content |
| OLD | NEW |