Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(453)

Side by Side Diff: content/browser/frame_host/render_widget_host_view_guest.cc

Issue 1914603002: Replace ViewHostMsg_TextInputState_Params with content::TextInputState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 guest_->SendMessageToEmbedder(new BrowserPluginMsg_SetCursor( 343 guest_->SendMessageToEmbedder(new BrowserPluginMsg_SetCursor(
344 guest_->browser_plugin_instance_id(), cursor)); 344 guest_->browser_plugin_instance_id(), cursor));
345 } 345 }
346 } 346 }
347 347
348 void RenderWidgetHostViewGuest::SetIsLoading(bool is_loading) { 348 void RenderWidgetHostViewGuest::SetIsLoading(bool is_loading) {
349 platform_view_->SetIsLoading(is_loading); 349 platform_view_->SetIsLoading(is_loading);
350 } 350 }
351 351
352 void RenderWidgetHostViewGuest::TextInputStateChanged( 352 void RenderWidgetHostViewGuest::TextInputStateChanged(
353 const ViewHostMsg_TextInputState_Params& params) { 353 const TextInputState& params) {
354 if (!guest_) 354 if (!guest_)
355 return; 355 return;
356 356
357 RenderWidgetHostViewBase* rwhv = GetOwnerRenderWidgetHostView(); 357 RenderWidgetHostViewBase* rwhv = GetOwnerRenderWidgetHostView();
358 if (!rwhv) 358 if (!rwhv)
359 return; 359 return;
360 // Forward the information to embedding RWHV. 360 // Forward the information to embedding RWHV.
361 rwhv->TextInputStateChanged(params); 361 rwhv->TextInputStateChanged(params);
362 } 362 }
363 363
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 if (gesture_event.type == blink::WebInputEvent::GestureScrollUpdate && 605 if (gesture_event.type == blink::WebInputEvent::GestureScrollUpdate &&
606 gesture_event.data.scrollUpdate.inertial) { 606 gesture_event.data.scrollUpdate.inertial) {
607 return; 607 return;
608 } 608 }
609 host_->ForwardGestureEvent(gesture_event); 609 host_->ForwardGestureEvent(gesture_event);
610 return; 610 return;
611 } 611 }
612 } 612 }
613 613
614 } // namespace content 614 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698