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

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

Issue 2161693003: Remove HiResEventTimeStamp runtime flag (status=stable) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change comment in Event.h 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 28 matching lines...) Expand all
39 39
40 readonly attribute boolean bubbles; 40 readonly attribute boolean bubbles;
41 readonly attribute boolean cancelable; 41 readonly attribute boolean cancelable;
42 void preventDefault(); 42 void preventDefault();
43 readonly attribute boolean defaultPrevented; 43 readonly attribute boolean defaultPrevented;
44 44
45 [RuntimeEnabled=ShadowDOMV1, MeasureAs=EventComposed] readonly attribute boo lean composed; 45 [RuntimeEnabled=ShadowDOMV1, MeasureAs=EventComposed] readonly attribute boo lean composed;
46 46
47 [Unforgeable] readonly attribute boolean isTrusted; 47 [Unforgeable] readonly attribute boolean isTrusted;
48 48
49 // TODO(majidvp): At the moment the actual return value type can either
50 // be:
51 // - DOMTimeStamp (i.e. long long): legacy type
52 // - DOMHighResTimeStamp (i.e. double): HighResEventTimeStamp REF is
53 // enabled
54 // Below IDL definition uses DOMHighResTimeStamp because all DOMTimeStamp
55 // values can be represented in double type without any loss of precision.
56 // Once the feature is enabled by default the return value type will always
57 // match the definition here.
58 [CallWith=ScriptState] readonly attribute DOMHighResTimeStamp timeStamp; 49 [CallWith=ScriptState] readonly attribute DOMHighResTimeStamp timeStamp;
59 50
60 // FIXME: initEvent()'s arguments should not be optional. 51 // FIXME: initEvent()'s arguments should not be optional.
61 [Measure] void initEvent([Default=Undefined] optional DOMString type, 52 [Measure] void initEvent([Default=Undefined] optional DOMString type,
62 [Default=Undefined] optional boolean bubbles, 53 [Default=Undefined] optional boolean bubbles,
63 [Default=Undefined] optional boolean cancelable); 54 [Default=Undefined] optional boolean cancelable);
64 55
65 // Shadow DOM 56 // Shadow DOM
66 // https://w3c.github.io/webcomponents/spec/shadow/#extensions-to-event-inte rface 57 // https://w3c.github.io/webcomponents/spec/shadow/#extensions-to-event-inte rface
67 [MeasureAs=EventPath, CallWith=ScriptState] readonly attribute EventTarget[] path; 58 [MeasureAs=EventPath, CallWith=ScriptState] readonly attribute EventTarget[] path;
(...skipping 13 matching lines...) Expand all
81 const unsigned short KEYPRESS = 1024; 72 const unsigned short KEYPRESS = 1024;
82 const unsigned short DRAGDROP = 2048; 73 const unsigned short DRAGDROP = 2048;
83 const unsigned short FOCUS = 4096; 74 const unsigned short FOCUS = 4096;
84 const unsigned short BLUR = 8192; 75 const unsigned short BLUR = 8192;
85 const unsigned short SELECT = 16384; 76 const unsigned short SELECT = 16384;
86 const unsigned short CHANGE = 32768; 77 const unsigned short CHANGE = 32768;
87 [MeasureAs=EventSrcElement] readonly attribute EventTarget srcElement; 78 [MeasureAs=EventSrcElement] readonly attribute EventTarget srcElement;
88 [MeasureAs=EventReturnValue, CallWith=ExecutionContext, ImplementedAs=legacy ReturnValue] attribute boolean returnValue; 79 [MeasureAs=EventReturnValue, CallWith=ExecutionContext, ImplementedAs=legacy ReturnValue] attribute boolean returnValue;
89 [MeasureAs=EventCancelBubble, CallWith=ExecutionContext] attribute boolean c ancelBubble; 80 [MeasureAs=EventCancelBubble, CallWith=ExecutionContext] attribute boolean c ancelBubble;
90 }; 81 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/Event.cpp ('k') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698