OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/renderer_host/ui_events_helper.h" | 5 #include "content/browser/renderer_host/ui_events_helper.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "content/common/input/web_touch_event_traits.h" | 10 #include "content/common/input/web_touch_event_traits.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 point.radius_x, point.radius_y, point.force), | 83 point.radius_x, point.radius_y, point.force), |
84 flags, point.rotation_angle); | 84 flags, point.rotation_angle); |
85 uievent->set_location_f(location); | 85 uievent->set_location_f(location); |
86 uievent->set_root_location_f(location); | 86 uievent->set_root_location_f(location); |
87 uievent->set_latency(touch_with_latency.latency); | 87 uievent->set_latency(touch_with_latency.latency); |
88 list->push_back(std::move(uievent)); | 88 list->push_back(std::move(uievent)); |
89 } | 89 } |
90 return true; | 90 return true; |
91 } | 91 } |
92 | 92 |
| 93 bool InputEventAckStateIsSetNonBlocking(InputEventAckState ack_state) { |
| 94 switch (ack_state) { |
| 95 case INPUT_EVENT_ACK_STATE_SET_NON_BLOCKING: |
| 96 case INPUT_EVENT_ACK_STATE_SET_NON_BLOCKING_DUE_TO_FLING: |
| 97 return true; |
| 98 default: |
| 99 return false; |
| 100 } |
| 101 } |
| 102 |
93 } // namespace content | 103 } // namespace content |
OLD | NEW |