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_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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
464 guest_bounds.x() - embedder_bounds.x(), | 464 guest_bounds.x() - embedder_bounds.x(), |
465 // Vertical offset from guest's top to embedder's bottom edge. | 465 // Vertical offset from guest's top to embedder's bottom edge. |
466 embedder_bounds.bottom() - guest_bounds.y()); | 466 embedder_bounds.bottom() - guest_bounds.y()); |
467 | 467 |
468 RenderWidgetHostViewMacDictionaryHelper helper(platform_view_.get()); | 468 RenderWidgetHostViewMacDictionaryHelper helper(platform_view_.get()); |
469 helper.SetTargetView(rwhv); | 469 helper.SetTargetView(rwhv); |
470 helper.set_offset(guest_offset); | 470 helper.set_offset(guest_offset); |
471 helper.ShowDefinitionForSelection(); | 471 helper.ShowDefinitionForSelection(); |
472 } | 472 } |
473 | 473 |
474 bool RenderWidgetHostViewGuest::SupportsSpeech() const { | |
475 return platform_view_->SupportsSpeech(); | |
476 } | |
477 | |
478 void RenderWidgetHostViewGuest::SpeakSelection() { | 474 void RenderWidgetHostViewGuest::SpeakSelection() { |
nasko
2017/01/31 15:37:29
Why does this method stay around and the others ar
spqchan
2017/02/01 00:32:39
In Mac, there is a menu item in the main menu that
| |
479 platform_view_->SpeakSelection(); | 475 platform_view_->SpeakSelection(); |
480 } | 476 } |
481 | 477 |
482 bool RenderWidgetHostViewGuest::IsSpeaking() const { | |
483 return platform_view_->IsSpeaking(); | |
484 } | |
485 | |
486 void RenderWidgetHostViewGuest::StopSpeaking() { | |
487 platform_view_->StopSpeaking(); | |
488 } | |
489 #endif // defined(OS_MACOSX) | 478 #endif // defined(OS_MACOSX) |
490 | 479 |
491 void RenderWidgetHostViewGuest::LockCompositingSurface() { | 480 void RenderWidgetHostViewGuest::LockCompositingSurface() { |
492 NOTIMPLEMENTED(); | 481 NOTIMPLEMENTED(); |
493 } | 482 } |
494 | 483 |
495 void RenderWidgetHostViewGuest::UnlockCompositingSurface() { | 484 void RenderWidgetHostViewGuest::UnlockCompositingSurface() { |
496 NOTIMPLEMENTED(); | 485 NOTIMPLEMENTED(); |
497 } | 486 } |
498 | 487 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
647 gesture_event.data.scrollUpdate.inertialPhase == | 636 gesture_event.data.scrollUpdate.inertialPhase == |
648 blink::WebGestureEvent::MomentumPhase) { | 637 blink::WebGestureEvent::MomentumPhase) { |
649 return; | 638 return; |
650 } | 639 } |
651 host_->ForwardGestureEvent(gesture_event); | 640 host_->ForwardGestureEvent(gesture_event); |
652 return; | 641 return; |
653 } | 642 } |
654 } | 643 } |
655 | 644 |
656 } // namespace content | 645 } // namespace content |
OLD | NEW |