| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 CASE_TYPE(GestureTwoFingerTap); | 99 CASE_TYPE(GestureTwoFingerTap); |
| 100 CASE_TYPE(GestureLongPress); | 100 CASE_TYPE(GestureLongPress); |
| 101 CASE_TYPE(GestureLongTap); | 101 CASE_TYPE(GestureLongTap); |
| 102 CASE_TYPE(GesturePinchBegin); | 102 CASE_TYPE(GesturePinchBegin); |
| 103 CASE_TYPE(GesturePinchEnd); | 103 CASE_TYPE(GesturePinchEnd); |
| 104 CASE_TYPE(GesturePinchUpdate); | 104 CASE_TYPE(GesturePinchUpdate); |
| 105 CASE_TYPE(TouchStart); | 105 CASE_TYPE(TouchStart); |
| 106 CASE_TYPE(TouchMove); | 106 CASE_TYPE(TouchMove); |
| 107 CASE_TYPE(TouchEnd); | 107 CASE_TYPE(TouchEnd); |
| 108 CASE_TYPE(TouchCancel); | 108 CASE_TYPE(TouchCancel); |
| 109 CASE_TYPE(TouchScrollStarted); |
| 109 default: | 110 default: |
| 110 // Must include default to let blink::WebInputEvent add new event types | 111 // Must include default to let blink::WebInputEvent add new event types |
| 111 // before they're added here. | 112 // before they're added here. |
| 112 DLOG(WARNING) << "Unhandled WebInputEvent type: " << event_type; | 113 DLOG(WARNING) << "Unhandled WebInputEvent type: " << event_type; |
| 113 break; | 114 break; |
| 114 } | 115 } |
| 115 | 116 |
| 116 #undef CASE_TYPE | 117 #undef CASE_TYPE |
| 117 } | 118 } |
| 118 | 119 |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 if (pending_input_event_ack_) { | 533 if (pending_input_event_ack_) { |
| 533 TRACE_EVENT_ASYNC_END0("input", | 534 TRACE_EVENT_ASYNC_END0("input", |
| 534 "RenderWidgetInputHandler::ThrottledInputEventAck", | 535 "RenderWidgetInputHandler::ThrottledInputEventAck", |
| 535 pending_input_event_ack_.get()); | 536 pending_input_event_ack_.get()); |
| 536 delegate_->OnInputEventAck(std::move(pending_input_event_ack_)); | 537 delegate_->OnInputEventAck(std::move(pending_input_event_ack_)); |
| 537 } | 538 } |
| 538 total_input_handling_time_this_frame_ = base::TimeDelta(); | 539 total_input_handling_time_this_frame_ = base::TimeDelta(); |
| 539 } | 540 } |
| 540 | 541 |
| 541 } // namespace content | 542 } // namespace content |
| OLD | NEW |