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