| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 } // namespace | 191 } // namespace |
| 192 | 192 |
| 193 RenderWidgetInputHandler::RenderWidgetInputHandler( | 193 RenderWidgetInputHandler::RenderWidgetInputHandler( |
| 194 RenderWidgetInputHandlerDelegate* delegate, | 194 RenderWidgetInputHandlerDelegate* delegate, |
| 195 RenderWidget* widget) | 195 RenderWidget* widget) |
| 196 : delegate_(delegate), | 196 : delegate_(delegate), |
| 197 widget_(widget), | 197 widget_(widget), |
| 198 handling_input_event_(false), | 198 handling_input_event_(false), |
| 199 handling_event_overscroll_(nullptr), | 199 handling_event_overscroll_(nullptr), |
| 200 handling_event_type_(WebInputEvent::kUndefined), | 200 handling_event_type_(WebInputEvent::kUndefined), |
| 201 suppress_next_char_events_(false) { | 201 suppress_next_char_events_(false), |
| 202 ime_composition_replacement_(false) { |
| 202 DCHECK(delegate); | 203 DCHECK(delegate); |
| 203 DCHECK(widget); | 204 DCHECK(widget); |
| 204 delegate->SetInputHandler(this); | 205 delegate->SetInputHandler(this); |
| 205 } | 206 } |
| 206 | 207 |
| 207 RenderWidgetInputHandler::~RenderWidgetInputHandler() {} | 208 RenderWidgetInputHandler::~RenderWidgetInputHandler() {} |
| 208 | 209 |
| 209 void RenderWidgetInputHandler::HandleInputEvent( | 210 void RenderWidgetInputHandler::HandleInputEvent( |
| 210 const blink::WebCoalescedInputEvent& coalesced_event, | 211 const blink::WebCoalescedInputEvent& coalesced_event, |
| 211 const ui::LatencyInfo& latency_info, | 212 const ui::LatencyInfo& latency_info, |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 // it can be bundled in the event ack. | 441 // it can be bundled in the event ack. |
| 441 if (handling_event_overscroll_) { | 442 if (handling_event_overscroll_) { |
| 442 *handling_event_overscroll_ = std::move(params); | 443 *handling_event_overscroll_ = std::move(params); |
| 443 return; | 444 return; |
| 444 } | 445 } |
| 445 | 446 |
| 446 delegate_->OnDidOverscroll(*params); | 447 delegate_->OnDidOverscroll(*params); |
| 447 } | 448 } |
| 448 | 449 |
| 449 } // namespace content | 450 } // namespace content |
| OLD | NEW |