Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: content/common/input/web_touch_event_traits.h

Issue 2497033002: Break apart WebGestureEvent from WebInputEvent. (Closed)
Patch Set: Rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/input/touch_event_stream_validator.h ('k') | content/common/input_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CONTENT_COMMON_INPUT_WEB_TOUCH_EVENT_TRAITS_H_ 5 #ifndef CONTENT_COMMON_INPUT_WEB_TOUCH_EVENT_TRAITS_H_
6 #define CONTENT_COMMON_INPUT_WEB_TOUCH_EVENT_TRAITS_H_ 6 #define CONTENT_COMMON_INPUT_WEB_TOUCH_EVENT_TRAITS_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "third_party/WebKit/public/web/WebInputEvent.h" 9 #include "third_party/WebKit/public/platform/WebInputEvent.h"
10 #include "ui/events/blink/scoped_web_input_event.h" 10 #include "ui/events/blink/scoped_web_input_event.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 // Utility class for performing operations on and with WebTouchEvents. 14 // Utility class for performing operations on and with WebTouchEvents.
15 class CONTENT_EXPORT WebTouchEventTraits { 15 class CONTENT_EXPORT WebTouchEventTraits {
16 public: 16 public:
17 // Returns whether all touches in the event have the specified state. 17 // Returns whether all touches in the event have the specified state.
18 static bool AllTouchPointsHaveState(const blink::WebTouchEvent& event, 18 static bool AllTouchPointsHaveState(const blink::WebTouchEvent& event,
19 blink::WebTouchPoint::State state); 19 blink::WebTouchPoint::State state);
(...skipping 16 matching lines...) Expand all
36 // to match the event type. This is particularly useful, for example, 36 // to match the event type. This is particularly useful, for example,
37 // in sending a touchcancel for all active touches. 37 // in sending a touchcancel for all active touches.
38 static void ResetTypeAndTouchStates(blink::WebInputEvent::Type type, 38 static void ResetTypeAndTouchStates(blink::WebInputEvent::Type type,
39 double timestamp_sec, 39 double timestamp_sec,
40 blink::WebTouchEvent* event); 40 blink::WebTouchEvent* event);
41 }; 41 };
42 42
43 } // namespace content 43 } // namespace content
44 44
45 #endif // CONTENT_COMMON_INPUT_WEB_TOUCH_EVENT_TRAITS_H_ 45 #endif // CONTENT_COMMON_INPUT_WEB_TOUCH_EVENT_TRAITS_H_
OLDNEW
« no previous file with comments | « content/common/input/touch_event_stream_validator.h ('k') | content/common/input_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698