| 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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 } | 457 } |
| 458 | 458 |
| 459 bool RenderWidgetHostViewGuest::LockMouse() { | 459 bool RenderWidgetHostViewGuest::LockMouse() { |
| 460 return platform_view_->LockMouse(); | 460 return platform_view_->LockMouse(); |
| 461 } | 461 } |
| 462 | 462 |
| 463 void RenderWidgetHostViewGuest::UnlockMouse() { | 463 void RenderWidgetHostViewGuest::UnlockMouse() { |
| 464 return platform_view_->UnlockMouse(); | 464 return platform_view_->UnlockMouse(); |
| 465 } | 465 } |
| 466 | 466 |
| 467 void RenderWidgetHostViewGuest::GetScreenInfo(blink::WebScreenInfo* results) { | |
| 468 if (!guest_) | |
| 469 return; | |
| 470 RenderWidgetHostViewBase* embedder_view = GetOwnerRenderWidgetHostView(); | |
| 471 if (embedder_view) | |
| 472 embedder_view->GetScreenInfo(results); | |
| 473 } | |
| 474 | |
| 475 #if defined(OS_MACOSX) | 467 #if defined(OS_MACOSX) |
| 476 void RenderWidgetHostViewGuest::SetActive(bool active) { | 468 void RenderWidgetHostViewGuest::SetActive(bool active) { |
| 477 platform_view_->SetActive(active); | 469 platform_view_->SetActive(active); |
| 478 } | 470 } |
| 479 | 471 |
| 480 void RenderWidgetHostViewGuest::ShowDefinitionForSelection() { | 472 void RenderWidgetHostViewGuest::ShowDefinitionForSelection() { |
| 481 if (!guest_) | 473 if (!guest_) |
| 482 return; | 474 return; |
| 483 | 475 |
| 484 gfx::Point origin; | 476 gfx::Point origin; |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 667 gesture_event.data.scrollUpdate.inertialPhase == | 659 gesture_event.data.scrollUpdate.inertialPhase == |
| 668 blink::WebGestureEvent::MomentumPhase) { | 660 blink::WebGestureEvent::MomentumPhase) { |
| 669 return; | 661 return; |
| 670 } | 662 } |
| 671 host_->ForwardGestureEvent(gesture_event); | 663 host_->ForwardGestureEvent(gesture_event); |
| 672 return; | 664 return; |
| 673 } | 665 } |
| 674 } | 666 } |
| 675 | 667 |
| 676 } // namespace content | 668 } // namespace content |
| OLD | NEW |