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

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

Issue 2161693003: Remove HiResEventTimeStamp runtime flag (status=stable) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: V2 Created 4 years, 5 months 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 | « no previous file | third_party/WebKit/Source/core/events/Event.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 bool bubbles() const { return m_canBubble; } 135 bool bubbles() const { return m_canBubble; }
136 bool cancelable() const { return m_cancelable; } 136 bool cancelable() const { return m_cancelable; }
137 bool composed() const { return m_composed; } 137 bool composed() const { return m_composed; }
138 bool isScopedInV0() const; 138 bool isScopedInV0() const;
139 139
140 // Event creation timestamp in milliseconds. If |HiResEventTimeStamp| 140 // Event creation timestamp in milliseconds. If |HiResEventTimeStamp|
141 // runtime feature is enabled it returns a DOMHighResTimeStamp using the 141 // runtime feature is enabled it returns a DOMHighResTimeStamp using the
142 // platform timestamp (see |m_platformTimeStamp|) otherwise it returns a 142 // platform timestamp (see |m_platformTimeStamp|) otherwise it returns a
143 // DOMTimeStamp that represents the current object's construction time (see 143 // DOMTimeStamp that represents the current object's construction time (see
144 // |m_createTime|). For more info see http://crbug.com/160524 144 // |m_createTime|). For more info see http://crbug.com/160524
majidvp 2016/07/22 17:53:01 Please update this comment as well. Also relevant
145 double timeStamp(ScriptState*) const; 145 double timeStamp(ScriptState*) const;
146 double platformTimeStamp() const { return m_platformTimeStamp; } 146 double platformTimeStamp() const { return m_platformTimeStamp; }
147 DOMTimeStamp createTime() const { return m_createTime; }
148 147
149 void stopPropagation() { m_propagationStopped = true; } 148 void stopPropagation() { m_propagationStopped = true; }
150 void stopImmediatePropagation() { m_immediatePropagationStopped = true; } 149 void stopImmediatePropagation() { m_immediatePropagationStopped = true; }
151 150
152 // IE Extensions 151 // IE Extensions
153 EventTarget* srcElement() const { return target(); } // MSIE extension - "th e object that fired the event" 152 EventTarget* srcElement() const { return target(); } // MSIE extension - "th e object that fired the event"
154 153
155 bool legacyReturnValue(ExecutionContext*) const; 154 bool legacyReturnValue(ExecutionContext*) const;
156 void setLegacyReturnValue(ExecutionContext*, bool returnValue); 155 void setLegacyReturnValue(ExecutionContext*, bool returnValue);
157 156
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 unsigned m_defaultPrevented:1; 248 unsigned m_defaultPrevented:1;
250 unsigned m_defaultHandled:1; 249 unsigned m_defaultHandled:1;
251 unsigned m_cancelBubble:1; 250 unsigned m_cancelBubble:1;
252 unsigned m_wasInitialized:1; 251 unsigned m_wasInitialized:1;
253 unsigned m_isTrusted : 1; 252 unsigned m_isTrusted : 1;
254 unsigned m_handlingPassive : 1; 253 unsigned m_handlingPassive : 1;
255 254
256 unsigned short m_eventPhase; 255 unsigned short m_eventPhase;
257 Member<EventTarget> m_currentTarget; 256 Member<EventTarget> m_currentTarget;
258 Member<EventTarget> m_target; 257 Member<EventTarget> m_target;
259 DOMTimeStamp m_createTime;
260 Member<Event> m_underlyingEvent; 258 Member<Event> m_underlyingEvent;
261 Member<EventPath> m_eventPath; 259 Member<EventPath> m_eventPath;
262 // The monotonic platform time in seconds, for input events it is the 260 // The monotonic platform time in seconds, for input events it is the
263 // event timestamp provided by the host OS and reported in the original 261 // event timestamp provided by the host OS and reported in the original
264 // WebInputEvent instance. 262 // WebInputEvent instance.
265 double m_platformTimeStamp; 263 double m_platformTimeStamp;
266 }; 264 };
267 265
268 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ 266 #define DEFINE_EVENT_TYPE_CASTS(typeName) \
269 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t ypeName()) 267 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t ypeName())
270 268
271 } // namespace blink 269 } // namespace blink
272 270
273 #endif // Event_h 271 #endif // Event_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/events/Event.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698