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

Side by Side Diff: third_party/WebKit/Source/core/events/TouchEvent.h

Issue 2542693002: Use WTF::TimeTicks to represent timestamp in Platform/Core event types (Closed)
Patch Set: rebase Created 4 years 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
OLDNEW
1 /* 1 /*
2 * Copyright 2008, The Android Open Source Project 2 * Copyright 2008, The Android Open Source Project
3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved. 3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above copyright 10 * * Redistributions in binary form must reproduce the above copyright
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 static TouchEvent* create() { return new TouchEvent; } 47 static TouchEvent* create() { return new TouchEvent; }
48 static TouchEvent* create(TouchList* touches, 48 static TouchEvent* create(TouchList* touches,
49 TouchList* targetTouches, 49 TouchList* targetTouches,
50 TouchList* changedTouches, 50 TouchList* changedTouches,
51 const AtomicString& type, 51 const AtomicString& type,
52 AbstractView* view, 52 AbstractView* view,
53 PlatformEvent::Modifiers modifiers, 53 PlatformEvent::Modifiers modifiers,
54 bool cancelable, 54 bool cancelable,
55 bool causesScrollingIfUncanceled, 55 bool causesScrollingIfUncanceled,
56 bool firstTouchMoveOrStart, 56 bool firstTouchMoveOrStart,
57 double platformTimeStamp, 57 TimeTicks platformTimeStamp,
58 TouchAction currentTouchAction, 58 TouchAction currentTouchAction,
59 WebPointerProperties::PointerType pointerType) { 59 WebPointerProperties::PointerType pointerType) {
60 return new TouchEvent(touches, targetTouches, changedTouches, type, view, 60 return new TouchEvent(touches, targetTouches, changedTouches, type, view,
61 modifiers, cancelable, causesScrollingIfUncanceled, 61 modifiers, cancelable, causesScrollingIfUncanceled,
62 firstTouchMoveOrStart, platformTimeStamp, 62 firstTouchMoveOrStart, platformTimeStamp,
63 currentTouchAction, pointerType); 63 currentTouchAction, pointerType);
64 } 64 }
65 65
66 static TouchEvent* create(const AtomicString& type, 66 static TouchEvent* create(const AtomicString& type,
67 const TouchEventInit& initializer) { 67 const TouchEventInit& initializer) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 TouchEvent(); 106 TouchEvent();
107 TouchEvent(TouchList* touches, 107 TouchEvent(TouchList* touches,
108 TouchList* targetTouches, 108 TouchList* targetTouches,
109 TouchList* changedTouches, 109 TouchList* changedTouches,
110 const AtomicString& type, 110 const AtomicString& type,
111 AbstractView*, 111 AbstractView*,
112 PlatformEvent::Modifiers, 112 PlatformEvent::Modifiers,
113 bool cancelable, 113 bool cancelable,
114 bool causesScrollingIfUncanceled, 114 bool causesScrollingIfUncanceled,
115 bool firstTouchMoveOrStart, 115 bool firstTouchMoveOrStart,
116 double platformTimeStamp, 116 TimeTicks platformTimeStamp,
117 TouchAction currentTouchAction, 117 TouchAction currentTouchAction,
118 WebPointerProperties::PointerType); 118 WebPointerProperties::PointerType);
119 TouchEvent(const AtomicString&, const TouchEventInit&); 119 TouchEvent(const AtomicString&, const TouchEventInit&);
120 120
121 Member<TouchList> m_touches; 121 Member<TouchList> m_touches;
122 Member<TouchList> m_targetTouches; 122 Member<TouchList> m_targetTouches;
123 Member<TouchList> m_changedTouches; 123 Member<TouchList> m_changedTouches;
124 bool m_causesScrollingIfUncanceled; 124 bool m_causesScrollingIfUncanceled;
125 bool m_firstTouchMoveOrStart; 125 bool m_firstTouchMoveOrStart;
126 bool m_defaultPreventedBeforeCurrentTarget; 126 bool m_defaultPreventedBeforeCurrentTarget;
(...skipping 13 matching lines...) Expand all
140 explicit TouchEventDispatchMediator(TouchEvent*); 140 explicit TouchEventDispatchMediator(TouchEvent*);
141 TouchEvent& event() const; 141 TouchEvent& event() const;
142 DispatchEventResult dispatchEvent(EventDispatcher&) const override; 142 DispatchEventResult dispatchEvent(EventDispatcher&) const override;
143 }; 143 };
144 144
145 DEFINE_EVENT_TYPE_CASTS(TouchEvent); 145 DEFINE_EVENT_TYPE_CASTS(TouchEvent);
146 146
147 } // namespace blink 147 } // namespace blink
148 148
149 #endif // TouchEvent_h 149 #endif // TouchEvent_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/TextEvent.cpp ('k') | third_party/WebKit/Source/core/events/TouchEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698