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