| 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 guest_->SendMessageToEmbedder(new BrowserPluginMsg_SetCursor( | 340 guest_->SendMessageToEmbedder(new BrowserPluginMsg_SetCursor( |
| 341 guest_->browser_plugin_instance_id(), cursor)); | 341 guest_->browser_plugin_instance_id(), cursor)); |
| 342 } | 342 } |
| 343 } | 343 } |
| 344 | 344 |
| 345 void RenderWidgetHostViewGuest::SetIsLoading(bool is_loading) { | 345 void RenderWidgetHostViewGuest::SetIsLoading(bool is_loading) { |
| 346 platform_view_->SetIsLoading(is_loading); | 346 platform_view_->SetIsLoading(is_loading); |
| 347 } | 347 } |
| 348 | 348 |
| 349 void RenderWidgetHostViewGuest::TextInputStateChanged( | 349 void RenderWidgetHostViewGuest::TextInputStateChanged( |
| 350 const ViewHostMsg_TextInputState_Params& params) { | 350 const TextInputState& params) { |
| 351 if (!guest_) | 351 if (!guest_) |
| 352 return; | 352 return; |
| 353 | 353 |
| 354 RenderWidgetHostViewBase* rwhv = GetOwnerRenderWidgetHostView(); | 354 RenderWidgetHostViewBase* rwhv = GetOwnerRenderWidgetHostView(); |
| 355 if (!rwhv) | 355 if (!rwhv) |
| 356 return; | 356 return; |
| 357 // Forward the information to embedding RWHV. | 357 // Forward the information to embedding RWHV. |
| 358 rwhv->TextInputStateChanged(params); | 358 rwhv->TextInputStateChanged(params); |
| 359 } | 359 } |
| 360 | 360 |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 if (gesture_event.type == blink::WebInputEvent::GestureScrollUpdate && | 592 if (gesture_event.type == blink::WebInputEvent::GestureScrollUpdate && |
| 593 gesture_event.data.scrollUpdate.inertial) { | 593 gesture_event.data.scrollUpdate.inertial) { |
| 594 return; | 594 return; |
| 595 } | 595 } |
| 596 host_->ForwardGestureEvent(gesture_event); | 596 host_->ForwardGestureEvent(gesture_event); |
| 597 return; | 597 return; |
| 598 } | 598 } |
| 599 } | 599 } |
| 600 | 600 |
| 601 } // namespace content | 601 } // namespace content |
| OLD | NEW |