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

Side by Side Diff: content/renderer/input/render_widget_input_handler.cc

Issue 2903833002: Reland: Update TextSelection for non-user initiated events
Patch Set: Add test for JS cursor movement Created 3 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/renderer/input/render_widget_input_handler.h" 5 #include "content/renderer/input/render_widget_input_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 } // namespace 190 } // namespace
191 191
192 RenderWidgetInputHandler::RenderWidgetInputHandler( 192 RenderWidgetInputHandler::RenderWidgetInputHandler(
193 RenderWidgetInputHandlerDelegate* delegate, 193 RenderWidgetInputHandlerDelegate* delegate,
194 RenderWidget* widget) 194 RenderWidget* widget)
195 : delegate_(delegate), 195 : delegate_(delegate),
196 widget_(widget), 196 widget_(widget),
197 handling_input_event_(false), 197 handling_input_event_(false),
198 handling_event_overscroll_(nullptr), 198 handling_event_overscroll_(nullptr),
199 handling_event_type_(WebInputEvent::kUndefined), 199 handling_event_type_(WebInputEvent::kUndefined),
200 suppress_next_char_events_(false) { 200 suppress_next_char_events_(false),
201 ime_composition_replacement_(false) {
201 DCHECK(delegate); 202 DCHECK(delegate);
202 DCHECK(widget); 203 DCHECK(widget);
203 delegate->SetInputHandler(this); 204 delegate->SetInputHandler(this);
204 } 205 }
205 206
206 RenderWidgetInputHandler::~RenderWidgetInputHandler() {} 207 RenderWidgetInputHandler::~RenderWidgetInputHandler() {}
207 208
208 void RenderWidgetInputHandler::HandleInputEvent( 209 void RenderWidgetInputHandler::HandleInputEvent(
209 const blink::WebCoalescedInputEvent& coalesced_event, 210 const blink::WebCoalescedInputEvent& coalesced_event,
210 const ui::LatencyInfo& latency_info, 211 const ui::LatencyInfo& latency_info,
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 // it can be bundled in the event ack. 437 // it can be bundled in the event ack.
437 if (handling_event_overscroll_) { 438 if (handling_event_overscroll_) {
438 *handling_event_overscroll_ = std::move(params); 439 *handling_event_overscroll_ = std::move(params);
439 return; 440 return;
440 } 441 }
441 442
442 delegate_->OnDidOverscroll(*params); 443 delegate_->OnDidOverscroll(*params);
443 } 444 }
444 445
445 } // namespace content 446 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/input/render_widget_input_handler.h ('k') | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698