| 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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 } | 436 } |
| 437 | 437 |
| 438 bool RenderWidgetHostViewGuest::LockMouse() { | 438 bool RenderWidgetHostViewGuest::LockMouse() { |
| 439 return platform_view_->LockMouse(); | 439 return platform_view_->LockMouse(); |
| 440 } | 440 } |
| 441 | 441 |
| 442 void RenderWidgetHostViewGuest::UnlockMouse() { | 442 void RenderWidgetHostViewGuest::UnlockMouse() { |
| 443 return platform_view_->UnlockMouse(); | 443 return platform_view_->UnlockMouse(); |
| 444 } | 444 } |
| 445 | 445 |
| 446 void RenderWidgetHostViewGuest::DidCreateNewRendererCompositorFrameSink( | |
| 447 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink) { | |
| 448 RenderWidgetHostViewChildFrame::DidCreateNewRendererCompositorFrameSink( | |
| 449 renderer_compositor_frame_sink); | |
| 450 platform_view_->DidCreateNewRendererCompositorFrameSink( | |
| 451 renderer_compositor_frame_sink); | |
| 452 } | |
| 453 | |
| 454 #if defined(OS_MACOSX) | 446 #if defined(OS_MACOSX) |
| 455 void RenderWidgetHostViewGuest::SetActive(bool active) { | 447 void RenderWidgetHostViewGuest::SetActive(bool active) { |
| 456 platform_view_->SetActive(active); | 448 platform_view_->SetActive(active); |
| 457 } | 449 } |
| 458 | 450 |
| 459 void RenderWidgetHostViewGuest::ShowDefinitionForSelection() { | 451 void RenderWidgetHostViewGuest::ShowDefinitionForSelection() { |
| 460 if (!guest_) | 452 if (!guest_) |
| 461 return; | 453 return; |
| 462 | 454 |
| 463 gfx::Point origin; | 455 gfx::Point origin; |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 host_->ForwardGestureEvent(gesture_event); | 645 host_->ForwardGestureEvent(gesture_event); |
| 654 return; | 646 return; |
| 655 } | 647 } |
| 656 } | 648 } |
| 657 | 649 |
| 658 bool RenderWidgetHostViewGuest::HasEmbedderChanged() { | 650 bool RenderWidgetHostViewGuest::HasEmbedderChanged() { |
| 659 return guest_ && guest_->has_attached_since_surface_set(); | 651 return guest_ && guest_->has_attached_since_surface_set(); |
| 660 } | 652 } |
| 661 | 653 |
| 662 } // namespace content | 654 } // namespace content |
| OLD | NEW |