| 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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 | 481 |
| 482 bool RenderWidgetHostViewGuest::IsSpeaking() const { | 482 bool RenderWidgetHostViewGuest::IsSpeaking() const { |
| 483 return platform_view_->IsSpeaking(); | 483 return platform_view_->IsSpeaking(); |
| 484 } | 484 } |
| 485 | 485 |
| 486 void RenderWidgetHostViewGuest::StopSpeaking() { | 486 void RenderWidgetHostViewGuest::StopSpeaking() { |
| 487 platform_view_->StopSpeaking(); | 487 platform_view_->StopSpeaking(); |
| 488 } | 488 } |
| 489 #endif // defined(OS_MACOSX) | 489 #endif // defined(OS_MACOSX) |
| 490 | 490 |
| 491 void RenderWidgetHostViewGuest::LockCompositingSurface() { | |
| 492 NOTIMPLEMENTED(); | |
| 493 } | |
| 494 | |
| 495 void RenderWidgetHostViewGuest::UnlockCompositingSurface() { | |
| 496 NOTIMPLEMENTED(); | |
| 497 } | |
| 498 | |
| 499 RenderWidgetHostViewBase* | 491 RenderWidgetHostViewBase* |
| 500 RenderWidgetHostViewGuest::GetOwnerRenderWidgetHostView() const { | 492 RenderWidgetHostViewGuest::GetOwnerRenderWidgetHostView() const { |
| 501 return guest_ ? static_cast<RenderWidgetHostViewBase*>( | 493 return guest_ ? static_cast<RenderWidgetHostViewBase*>( |
| 502 guest_->GetOwnerRenderWidgetHostView()) | 494 guest_->GetOwnerRenderWidgetHostView()) |
| 503 : nullptr; | 495 : nullptr; |
| 504 } | 496 } |
| 505 | 497 |
| 506 // TODO(wjmaclean): When we remove BrowserPlugin, delete this code. | 498 // TODO(wjmaclean): When we remove BrowserPlugin, delete this code. |
| 507 // http://crbug.com/533069 | 499 // http://crbug.com/533069 |
| 508 void RenderWidgetHostViewGuest::MaybeSendSyntheticTapGesture( | 500 void RenderWidgetHostViewGuest::MaybeSendSyntheticTapGesture( |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 gesture_event.data.scrollUpdate.inertialPhase == | 639 gesture_event.data.scrollUpdate.inertialPhase == |
| 648 blink::WebGestureEvent::MomentumPhase) { | 640 blink::WebGestureEvent::MomentumPhase) { |
| 649 return; | 641 return; |
| 650 } | 642 } |
| 651 host_->ForwardGestureEvent(gesture_event); | 643 host_->ForwardGestureEvent(gesture_event); |
| 652 return; | 644 return; |
| 653 } | 645 } |
| 654 } | 646 } |
| 655 | 647 |
| 656 } // namespace content | 648 } // namespace content |
| OLD | NEW |