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