| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 gfx::NativeViewAccessible RenderWidgetHostViewGuest::GetNativeViewAccessible() { | 320 gfx::NativeViewAccessible RenderWidgetHostViewGuest::GetNativeViewAccessible() { |
| 321 if (!guest_) | 321 if (!guest_) |
| 322 return gfx::NativeViewAccessible(); | 322 return gfx::NativeViewAccessible(); |
| 323 | 323 |
| 324 RenderWidgetHostView* rwhv = guest_->GetOwnerRenderWidgetHostView(); | 324 RenderWidgetHostView* rwhv = guest_->GetOwnerRenderWidgetHostView(); |
| 325 if (!rwhv) | 325 if (!rwhv) |
| 326 return gfx::NativeViewAccessible(); | 326 return gfx::NativeViewAccessible(); |
| 327 return rwhv->GetNativeViewAccessible(); | 327 return rwhv->GetNativeViewAccessible(); |
| 328 } | 328 } |
| 329 | 329 |
| 330 void RenderWidgetHostViewGuest::MovePluginWindows( | |
| 331 const std::vector<WebPluginGeometry>& moves) { | |
| 332 platform_view_->MovePluginWindows(moves); | |
| 333 } | |
| 334 | |
| 335 void RenderWidgetHostViewGuest::UpdateCursor(const WebCursor& cursor) { | 330 void RenderWidgetHostViewGuest::UpdateCursor(const WebCursor& cursor) { |
| 336 // InterstitialPages are not WebContents so we cannot intercept | 331 // InterstitialPages are not WebContents so we cannot intercept |
| 337 // ViewHostMsg_SetCursor for interstitial pages in BrowserPluginGuest. | 332 // ViewHostMsg_SetCursor for interstitial pages in BrowserPluginGuest. |
| 338 // All guest RenderViewHosts have RenderWidgetHostViewGuests however, | 333 // All guest RenderViewHosts have RenderWidgetHostViewGuests however, |
| 339 // and so we will always hit this code path. | 334 // and so we will always hit this code path. |
| 340 if (!guest_) | 335 if (!guest_) |
| 341 return; | 336 return; |
| 342 guest_->SendMessageToEmbedder( | 337 guest_->SendMessageToEmbedder( |
| 343 new BrowserPluginMsg_SetCursor(guest_->browser_plugin_instance_id(), | 338 new BrowserPluginMsg_SetCursor(guest_->browser_plugin_instance_id(), |
| 344 cursor)); | 339 cursor)); |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 if (gesture_event.type == blink::WebInputEvent::GestureScrollUpdate && | 625 if (gesture_event.type == blink::WebInputEvent::GestureScrollUpdate && |
| 631 gesture_event.data.scrollUpdate.inertial) { | 626 gesture_event.data.scrollUpdate.inertial) { |
| 632 return; | 627 return; |
| 633 } | 628 } |
| 634 host_->ForwardGestureEvent(gesture_event); | 629 host_->ForwardGestureEvent(gesture_event); |
| 635 return; | 630 return; |
| 636 } | 631 } |
| 637 } | 632 } |
| 638 | 633 |
| 639 } // namespace content | 634 } // namespace content |
| OLD | NEW |