| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |