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 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 guest_bounds.x() - embedder_bounds.x(), | 510 guest_bounds.x() - embedder_bounds.x(), |
511 // Vertical offset from guest's top to embedder's bottom edge. | 511 // Vertical offset from guest's top to embedder's bottom edge. |
512 embedder_bounds.bottom() - guest_bounds.y()); | 512 embedder_bounds.bottom() - guest_bounds.y()); |
513 | 513 |
514 RenderWidgetHostViewMacDictionaryHelper helper(platform_view_.get()); | 514 RenderWidgetHostViewMacDictionaryHelper helper(platform_view_.get()); |
515 helper.SetTargetView(rwhv); | 515 helper.SetTargetView(rwhv); |
516 helper.set_offset(guest_offset); | 516 helper.set_offset(guest_offset); |
517 helper.ShowDefinitionForSelection(); | 517 helper.ShowDefinitionForSelection(); |
518 } | 518 } |
519 | 519 |
520 bool RenderWidgetHostViewGuest::SupportsSpeech() const { | |
521 return platform_view_->SupportsSpeech(); | |
522 } | |
523 | |
524 void RenderWidgetHostViewGuest::SpeakSelection() { | 520 void RenderWidgetHostViewGuest::SpeakSelection() { |
525 platform_view_->SpeakSelection(); | 521 platform_view_->SpeakSelection(); |
526 } | 522 } |
527 | 523 |
528 bool RenderWidgetHostViewGuest::IsSpeaking() const { | |
529 return platform_view_->IsSpeaking(); | |
530 } | |
531 | |
532 void RenderWidgetHostViewGuest::StopSpeaking() { | |
533 platform_view_->StopSpeaking(); | |
534 } | |
535 #endif // defined(OS_MACOSX) | 524 #endif // defined(OS_MACOSX) |
536 | 525 |
537 void RenderWidgetHostViewGuest::LockCompositingSurface() { | 526 void RenderWidgetHostViewGuest::LockCompositingSurface() { |
538 NOTIMPLEMENTED(); | 527 NOTIMPLEMENTED(); |
539 } | 528 } |
540 | 529 |
541 void RenderWidgetHostViewGuest::UnlockCompositingSurface() { | 530 void RenderWidgetHostViewGuest::UnlockCompositingSurface() { |
542 NOTIMPLEMENTED(); | 531 NOTIMPLEMENTED(); |
543 } | 532 } |
544 | 533 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 gesture_event.data.scrollUpdate.inertialPhase == | 678 gesture_event.data.scrollUpdate.inertialPhase == |
690 blink::WebGestureEvent::MomentumPhase) { | 679 blink::WebGestureEvent::MomentumPhase) { |
691 return; | 680 return; |
692 } | 681 } |
693 host_->ForwardGestureEvent(gesture_event); | 682 host_->ForwardGestureEvent(gesture_event); |
694 return; | 683 return; |
695 } | 684 } |
696 } | 685 } |
697 | 686 |
698 } // namespace content | 687 } // namespace content |
OLD | NEW |