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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |