OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/common/input/web_touch_event_traits.h" | 5 #include "content/public/common/input/web_touch_event_traits.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 | 10 |
11 using blink::WebInputEvent; | 11 using blink::WebInputEvent; |
12 using blink::WebTouchEvent; | 12 using blink::WebTouchEvent; |
13 using blink::WebTouchPoint; | 13 using blink::WebTouchPoint; |
14 | 14 |
15 namespace content { | 15 namespace content { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 break; | 77 break; |
78 default: | 78 default: |
79 NOTREACHED(); | 79 NOTREACHED(); |
80 break; | 80 break; |
81 } | 81 } |
82 for (size_t i = 0; i < event->touchesLength; ++i) | 82 for (size_t i = 0; i < event->touchesLength; ++i) |
83 event->touches[i].state = newState; | 83 event->touches[i].state = newState; |
84 } | 84 } |
85 | 85 |
86 } // namespace content | 86 } // namespace content |
OLD | NEW |