| 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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 RenderWidgetHostViewChildFrame::GetAcceleratedWidgetMac() const { | 565 RenderWidgetHostViewChildFrame::GetAcceleratedWidgetMac() const { |
| 566 return nullptr; | 566 return nullptr; |
| 567 } | 567 } |
| 568 | 568 |
| 569 void RenderWidgetHostViewChildFrame::SetActive(bool active) { | 569 void RenderWidgetHostViewChildFrame::SetActive(bool active) { |
| 570 } | 570 } |
| 571 | 571 |
| 572 void RenderWidgetHostViewChildFrame::ShowDefinitionForSelection() { | 572 void RenderWidgetHostViewChildFrame::ShowDefinitionForSelection() { |
| 573 } | 573 } |
| 574 | 574 |
| 575 bool RenderWidgetHostViewChildFrame::SupportsSpeech() const { | |
| 576 return false; | |
| 577 } | |
| 578 | |
| 579 void RenderWidgetHostViewChildFrame::SpeakSelection() { | 575 void RenderWidgetHostViewChildFrame::SpeakSelection() { |
| 580 } | 576 } |
| 581 | 577 |
| 582 bool RenderWidgetHostViewChildFrame::IsSpeaking() const { | |
| 583 return false; | |
| 584 } | |
| 585 | |
| 586 void RenderWidgetHostViewChildFrame::StopSpeaking() { | |
| 587 } | |
| 588 #endif // defined(OS_MACOSX) | 578 #endif // defined(OS_MACOSX) |
| 589 | 579 |
| 590 void RenderWidgetHostViewChildFrame::RegisterFrameSwappedCallback( | 580 void RenderWidgetHostViewChildFrame::RegisterFrameSwappedCallback( |
| 591 std::unique_ptr<base::Closure> callback) { | 581 std::unique_ptr<base::Closure> callback) { |
| 592 frame_swapped_callbacks_.push_back(std::move(callback)); | 582 frame_swapped_callbacks_.push_back(std::move(callback)); |
| 593 } | 583 } |
| 594 | 584 |
| 595 void RenderWidgetHostViewChildFrame::CopyFromCompositingSurface( | 585 void RenderWidgetHostViewChildFrame::CopyFromCompositingSurface( |
| 596 const gfx::Rect& src_subrect, | 586 const gfx::Rect& src_subrect, |
| 597 const gfx::Size& output_size, | 587 const gfx::Size& output_size, |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 | 727 |
| 738 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { | 728 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { |
| 739 return true; | 729 return true; |
| 740 } | 730 } |
| 741 | 731 |
| 742 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { | 732 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { |
| 743 return cc::SurfaceId(frame_sink_id_, local_frame_id_); | 733 return cc::SurfaceId(frame_sink_id_, local_frame_id_); |
| 744 }; | 734 }; |
| 745 | 735 |
| 746 } // namespace content | 736 } // namespace content |
| OLD | NEW |