Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(666)

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 2164483006: [MacViews] Implemented text context menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698