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

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

Issue 2164483006: [MacViews] Implemented text context menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ditto Created 4 years, 5 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_guest.h" 5 #include "content/browser/frame_host/render_widget_host_view_guest.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 guest_bounds.x() - embedder_bounds.x(), 476 guest_bounds.x() - embedder_bounds.x(),
477 // Vertical offset from guest's top to embedder's bottom edge. 477 // Vertical offset from guest's top to embedder's bottom edge.
478 embedder_bounds.bottom() - guest_bounds.y()); 478 embedder_bounds.bottom() - guest_bounds.y());
479 479
480 RenderWidgetHostViewMacDictionaryHelper helper(platform_view_.get()); 480 RenderWidgetHostViewMacDictionaryHelper helper(platform_view_.get());
481 helper.SetTargetView(rwhv); 481 helper.SetTargetView(rwhv);
482 helper.set_offset(guest_offset); 482 helper.set_offset(guest_offset);
483 helper.ShowDefinitionForSelection(); 483 helper.ShowDefinitionForSelection();
484 } 484 }
485 485
486 bool RenderWidgetHostViewGuest::SupportsSpeech() const {
487 return platform_view_->SupportsSpeech();
488 }
489
490 void RenderWidgetHostViewGuest::SpeakSelection() { 486 void RenderWidgetHostViewGuest::SpeakSelection() {
491 platform_view_->SpeakSelection(); 487 platform_view_->SpeakSelection();
492 } 488 }
493 489
494 bool RenderWidgetHostViewGuest::IsSpeaking() const {
495 return platform_view_->IsSpeaking();
496 }
497
498 void RenderWidgetHostViewGuest::StopSpeaking() {
499 platform_view_->StopSpeaking();
500 }
501 #endif // defined(OS_MACOSX) 490 #endif // defined(OS_MACOSX)
502 491
503 void RenderWidgetHostViewGuest::LockCompositingSurface() { 492 void RenderWidgetHostViewGuest::LockCompositingSurface() {
504 NOTIMPLEMENTED(); 493 NOTIMPLEMENTED();
505 } 494 }
506 495
507 void RenderWidgetHostViewGuest::UnlockCompositingSurface() { 496 void RenderWidgetHostViewGuest::UnlockCompositingSurface() {
508 NOTIMPLEMENTED(); 497 NOTIMPLEMENTED();
509 } 498 }
510 499
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 gesture_event.data.scrollUpdate.inertialPhase == 592 gesture_event.data.scrollUpdate.inertialPhase ==
604 blink::WebGestureEvent::MomentumPhase) { 593 blink::WebGestureEvent::MomentumPhase) {
605 return; 594 return;
606 } 595 }
607 host_->ForwardGestureEvent(gesture_event); 596 host_->ForwardGestureEvent(gesture_event);
608 return; 597 return;
609 } 598 }
610 } 599 }
611 600
612 } // namespace content 601 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698