blob: 150a1cce2f7ad52ababa248a97e65495ba07f376 [file] [log] [blame]
youenn.fablet@crf.canon.frc8f54022015-10-06 06:20:58 +00001/*
youenn.fablet@crf.canon.fr3c393032015-10-13 17:44:18 +00002 * Copyright (c) 2015, Canon Inc. All rights reserved.
aestes@apple.comee651732018-11-30 17:09:37 +00003 * Copyright (C) 2018 Apple Inc. All rights reserved.
youenn.fablet@crf.canon.frc8f54022015-10-06 06:20:58 +00004 *
youenn.fablet@crf.canon.fr3c393032015-10-13 17:44:18 +00005 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. Neither the name of Canon Inc. nor the names of
14 * its contributors may be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED BY CANON INC. AND ITS CONTRIBUTORS "AS IS" AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL CANON INC. AND ITS CONTRIBUTORS BE LIABLE FOR
20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
youenn.fablet@crf.canon.frc8f54022015-10-06 06:20:58 +000026 */
27
commit-queue@webkit.orgd862d772016-10-31 22:07:53 +000028#pragma once
youenn.fablet@crf.canon.frc8f54022015-10-06 06:20:58 +000029
don.olmstead@sony.com71f34a02018-02-07 05:20:34 +000030#include <JavaScriptCore/BuiltinUtils.h>
youenn.fablet@crf.canon.frc8f54022015-10-06 06:20:58 +000031
aestes@apple.comee651732018-11-30 17:09:37 +000032#if USE(APPLE_INTERNAL_SDK)
33#include <WebKitAdditions/WebCoreBuiltinNamesAdditions.h>
34#endif
35
youenn.fablet@crf.canon.frc8f54022015-10-06 06:20:58 +000036namespace WebCore {
37
aestes@apple.comee651732018-11-30 17:09:37 +000038#if !defined(WEBCORE_ADDITIONAL_PRIVATE_IDENTIFIERS)
39#define WEBCORE_ADDITIONAL_PRIVATE_IDENTIFIERS(macro)
40#endif
41
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +000042#define WEBCORE_COMMON_PRIVATE_IDENTIFIERS_EACH_PROPERTY_NAME(macro) \
43 macro(Animation) \
graouts@webkit.orgacd589a2018-11-06 11:15:15 +000044 macro(AnimationEffect) \
graouts@webkit.org7d673882017-12-11 18:02:37 +000045 macro(AnimationPlaybackEvent) \
commit-queue@webkit.orgf2cab8b2017-10-20 18:41:23 +000046 macro(AnimationTimeline) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +000047 macro(ApplePaySession) \
rniwa@webkit.orge5514492017-09-12 23:31:14 +000048 macro(AttachmentElement) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +000049 macro(Audio) \
jiewen_tan@apple.comdd98e072018-01-16 23:08:44 +000050 macro(AuthenticatorAssertionResponse) \
51 macro(AuthenticatorAttestationResponse) \
52 macro(AuthenticatorResponse) \
commit-queue@webkit.org4e7a4e72018-10-04 19:27:10 +000053 macro(BlobEvent) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +000054 macro(Cache) \
55 macro(CacheStorage) \
cdumez@apple.com75aba892017-10-18 22:31:55 +000056 macro(Client) \
57 macro(Clients) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +000058 macro(Credential) \
59 macro(CredentialsContainer) \
graouts@webkit.orge12aa012018-03-06 18:34:22 +000060 macro(CSSAnimation) \
justin_michaud@apple.com724b47a2018-12-04 20:25:02 +000061 macro(CSSImageValue) \
justin_michaud@apple.com16d7ba82018-11-08 05:29:59 +000062 macro(CSSNumericValue) \
63 macro(CSSPaintSize) \
64 macro(CSSStyleValue) \
commit-queue@webkit.orgc3ee7032018-03-06 21:27:03 +000065 macro(CSSTransition) \
justin_michaud@apple.com16d7ba82018-11-08 05:29:59 +000066 macro(CSSUnitValue) \
67 macro(CSSUnparsedValue) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +000068 macro(CustomElementRegistry) \
sihui_liu@apple.com62c4e052018-10-16 23:59:38 +000069 macro(Database) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +000070 macro(DataTransferItem) \
71 macro(DataTransferItemList) \
72 macro(DocumentTimeline) \
commit-queue@webkit.orga7333be2017-10-17 18:39:48 +000073 macro(ExtendableEvent) \
cdumez@apple.comcb4a3bc2017-10-24 21:22:54 +000074 macro(ExtendableMessageEvent) \
commit-queue@webkit.orga7333be2017-10-17 18:39:48 +000075 macro(FetchEvent) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +000076 macro(FileSystem) \
77 macro(FileSystemDirectoryEntry) \
78 macro(FileSystemDirectoryReader) \
79 macro(FileSystemEntry) \
80 macro(FileSystemFileEntry) \
81 macro(Gamepad) \
82 macro(GamepadButton) \
83 macro(GamepadEvent) \
justin_fan@apple.com3cd842a2019-05-01 23:21:59 +000084 macro(GPU) \
85 macro(GPUAdapter) \
86 macro(GPUBindGroup) \
87 macro(GPUBindGroupLayout) \
88 macro(GPUBuffer) \
justin_fan@apple.com49d0ce82019-02-13 00:23:10 +000089 macro(GPUBufferUsage) \
justin_fan@apple.com4583cd02019-03-12 00:46:41 +000090 macro(GPUCanvasContext) \
justin_fan@apple.com0f8bd182019-04-02 19:59:55 +000091 macro(GPUColorWriteBits) \
justin_fan@apple.comaeece1f2019-03-14 23:04:18 +000092 macro(GPUCommandBuffer) \
93 macro(GPUCommandEncoder) \
justin_fan@apple.com34639102019-03-28 22:13:22 +000094 macro(GPUComputePassEncoder) \
95 macro(GPUComputePipeline) \
justin_fan@apple.com3cd842a2019-05-01 23:21:59 +000096 macro(GPUDevice) \
justin_fan@apple.comdd311022019-07-16 23:51:48 +000097 macro(GPUOutOfMemoryError) \
justin_fan@apple.com3cd842a2019-05-01 23:21:59 +000098 macro(GPUPipelineLayout) \
99 macro(GPUProgrammablePassEncoder) \
100 macro(GPUQueue) \
101 macro(GPURenderPassEncoder) \
102 macro(GPURenderPipeline) \
103 macro(GPUSampler) \
justin_fan@apple.com0f8bd182019-04-02 19:59:55 +0000104 macro(GPUShaderModule) \
justin_fan@apple.com73c5df7a2019-03-06 23:57:58 +0000105 macro(GPUShaderStageBit) \
justin_fan@apple.com4583cd02019-03-12 00:46:41 +0000106 macro(GPUSwapChain) \
justin_fan@apple.com3cd842a2019-05-01 23:21:59 +0000107 macro(GPUTexture) \
justin_fan@apple.com79a8b282019-02-06 21:52:57 +0000108 macro(GPUTextureUsage) \
justin_fan@apple.com3cd842a2019-05-01 23:21:59 +0000109 macro(GPUTextureView) \
justin_fan@apple.comdd311022019-07-16 23:51:48 +0000110 macro(GPUValidationError) \
rniwa@webkit.orge5514492017-09-12 23:31:14 +0000111 macro(HTMLAttachmentElement) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000112 macro(HTMLAudioElement) \
commit-queue@webkit.orgd4f19662019-07-17 18:58:14 +0000113 macro(HTMLDialogElement) \
wenson_hsieh@apple.com83b55732018-10-18 03:48:10 +0000114 macro(HTMLDataListElement) \
commit-queue@webkit.orga0cd8b92017-11-04 08:20:03 +0000115 macro(HTMLMenuItemElement) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000116 macro(HTMLSlotElement) \
117 macro(Headers) \
118 macro(IDBCursor) \
119 macro(IDBCursorWithValue) \
120 macro(IDBDatabase) \
121 macro(IDBFactory) \
122 macro(IDBIndex) \
123 macro(IDBKeyRange) \
124 macro(IDBObjectStore) \
125 macro(IDBOpenDBRequest) \
126 macro(IDBRequest) \
127 macro(IDBTransaction) \
128 macro(IDBVersionChangeEvent) \
dino@apple.com0214dab2017-12-11 18:07:48 +0000129 macro(ImageBitmap) \
dino@apple.com3342cb52018-02-10 01:24:49 +0000130 macro(ImageBitmapRenderingContext) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000131 macro(InputEvent) \
132 macro(IntersectionObserver) \
133 macro(IntersectionObserverEntry) \
commit-queue@webkit.org39a6dc92017-10-24 07:51:59 +0000134 macro(KeyframeEffect) \
jer.noble@apple.com3b52acc2017-12-21 18:28:21 +0000135 macro(MediaCapabilities) \
136 macro(MediaCapabilitiesInfo) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000137 macro(MediaEncryptedEvent) \
138 macro(MediaKeyMessageEvent) \
139 macro(MediaKeySession) \
140 macro(MediaKeyStatusMap) \
141 macro(MediaKeySystemAccess) \
142 macro(MediaKeys) \
commit-queue@webkit.org4e7a4e72018-10-04 19:27:10 +0000143 macro(MediaRecorder) \
commit-queue@webkit.orgbd9d91f2018-10-15 14:56:03 +0000144 macro(MediaRecorderErrorEvent) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000145 macro(MediaSource) \
146 macro(MediaStream) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000147 macro(MediaStreamTrack) \
aestes@apple.com820312d2018-09-03 17:16:00 +0000148 macro(MerchantValidationEvent) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000149 macro(ModernMediaControls) \
150 macro(NavigatorCredentials) \
151 macro(NavigatorMediaDevices) \
152 macro(NavigatorUserMedia) \
dino@apple.com0214dab2017-12-11 18:07:48 +0000153 macro(OffscreenCanvas) \
dino@apple.com57500022017-12-12 23:35:51 +0000154 macro(OffscreenCanvasRenderingContext2D) \
commit-queue@webkit.org6b775f82018-10-23 00:46:14 +0000155 macro(PaintRenderingContext2D) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000156 macro(PaymentAddress) \
aestes@apple.comc6cac702018-08-30 19:57:19 +0000157 macro(PaymentMethodChangeEvent) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000158 macro(PaymentRequest) \
159 macro(PaymentRequestUpdateEvent) \
160 macro(PaymentResponse) \
sihui_liu@apple.com62c4e052018-10-16 23:59:38 +0000161 macro(SQLError) \
162 macro(SQLResultSet) \
163 macro(SQLResultSetRowList) \
164 macro(SQLTransaction) \
justin_michaud@apple.com336b0a62018-11-03 04:01:29 +0000165 macro(PaintWorkletGlobalScope) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000166 macro(PerformanceEntry) \
167 macro(PerformanceEntryList) \
168 macro(PerformanceMark) \
169 macro(PerformanceMeasure) \
170 macro(PerformanceObserver) \
171 macro(PerformanceObserverEntryList) \
172 macro(PerformanceResourceTiming) \
commit-queue@webkit.org87d615c2018-05-11 18:33:43 +0000173 macro(PerformanceServerTiming) \
dino@apple.comba83bf62018-09-24 17:35:39 +0000174 macro(PointerEvent) \
jiewen_tan@apple.com7929bf12018-01-02 20:28:31 +0000175 macro(PublicKeyCredential) \
commit-queue@webkit.org30634002019-03-29 08:37:46 +0000176 macro(ResizeObserver) \
177 macro(ResizeObserverEntry) \
youenn@apple.coma0d3cf92018-10-15 20:52:15 +0000178 macro(RTCCertificate) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000179 macro(RTCDTMFSender) \
180 macro(RTCDTMFToneChangeEvent) \
181 macro(RTCDataChannel) \
182 macro(RTCDataChannelEvent) \
183 macro(RTCIceCandidate) \
184 macro(RTCIceTransport) \
185 macro(RTCPeerConnection) \
youenn@apple.com0b89c622018-06-18 20:48:07 +0000186 macro(RTCPeerConnectionIceEvent) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000187 macro(RTCRtpReceiver) \
188 macro(RTCRtpSender) \
189 macro(RTCRtpTransceiver) \
190 macro(RTCSessionDescription) \
191 macro(RTCStatsReport) \
192 macro(RTCTrackEvent) \
193 macro(ReadableByteStreamController) \
194 macro(ReadableStream) \
195 macro(ReadableStreamBYOBReader) \
196 macro(ReadableStreamBYOBRequest) \
197 macro(ReadableStreamDefaultController) \
198 macro(ReadableStreamDefaultReader) \
199 macro(Request) \
200 macro(Response) \
jer.noble@apple.com3b52acc2017-12-21 18:28:21 +0000201 macro(ScreenLuminance) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000202 macro(ServiceWorker) \
203 macro(ServiceWorkerContainer) \
204 macro(ServiceWorkerGlobalScope) \
205 macro(ServiceWorkerRegistration) \
206 macro(ShadowRoot) \
msaboff@apple.comacd1c662018-01-11 15:28:38 +0000207 macro(SpectreGadget) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000208 macro(StaticRange) \
justin_michaud@apple.com16d7ba82018-11-08 05:29:59 +0000209 macro(StylePropertyMapReadOnly) \
justin_michaud@apple.com51c20fe2018-12-18 18:51:05 +0000210 macro(StylePropertyMap) \
wenson_hsieh@apple.coma0e6f692019-01-11 18:28:06 +0000211 macro(UndoItem) \
212 macro(UndoManager) \
svillar@igalia.com29e449b2017-09-13 11:17:27 +0000213 macro(VRDisplay) \
214 macro(VRDisplayCapabilities) \
215 macro(VRDisplayEvent) \
216 macro(VREyeParameters) \
217 macro(VRFieldOfView) \
218 macro(VRFrameData) \
219 macro(VRStageParameters) \
commit-queue@webkit.orgf2afcaa2017-11-22 22:20:26 +0000220 macro(VisualViewport) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000221 macro(WebGL2RenderingContext) \
222 macro(WebGLVertexArrayObject) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000223 macro(WebKitMediaKeyError) \
224 macro(WebKitMediaKeyMessageEvent) \
225 macro(WebKitMediaKeyNeededEvent) \
226 macro(WebKitMediaKeySession) \
227 macro(WebKitMediaKeys) \
228 macro(WebSocket) \
cdumez@apple.com75aba892017-10-18 22:31:55 +0000229 macro(WindowClient) \
justin_michaud@apple.com336b0a62018-11-03 04:01:29 +0000230 macro(Worklet) \
231 macro(WorkletGlobalScope) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000232 macro(WritableStream) \
233 macro(XMLHttpRequest) \
youenn.fablet@crf.canon.frdf1dd612016-01-25 10:53:53 +0000234 macro(appendFromJS) \
commit-queue@webkit.org65fb5672017-02-20 18:18:06 +0000235 macro(associatedReadableByteStreamController) \
commit-queue@webkit.org7c4f09e2016-11-02 11:37:26 +0000236 macro(autoAllocateChunkSize) \
commit-queue@webkit.org5fd0f1b2017-02-28 01:34:35 +0000237 macro(backingMap) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000238 macro(blur) \
commit-queue@webkit.orge98042a2016-07-23 06:01:15 +0000239 macro(body) \
commit-queue@webkit.org65fb5672017-02-20 18:18:06 +0000240 macro(byobRequest) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000241 macro(caches) \
commit-queue@webkit.org66abf1f2016-09-28 09:17:57 +0000242 macro(cancel) \
commit-queue@webkit.org0f0d2522017-04-13 16:40:25 +0000243 macro(cloneArrayBuffer) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000244 macro(close) \
youenn.fablet@crf.canon.frc8f54022015-10-06 06:20:58 +0000245 macro(closeRequested) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000246 macro(closed) \
calvaris@igalia.com3b73dbc2015-11-03 14:52:04 +0000247 macro(closedPromiseCapability) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000248 macro(collectMatchingElementsInFlatTree) \
commit-queue@webkit.orgc57ace02016-07-27 06:38:15 +0000249 macro(consume) \
250 macro(consumeChunk) \
youenn.fablet@crf.canon.frc8f54022015-10-06 06:20:58 +0000251 macro(controlledReadableStream) \
youenn.fablet@crf.canon.fr3c393032015-10-13 17:44:18 +0000252 macro(controller) \
dino@apple.com0214dab2017-12-11 18:07:48 +0000253 macro(createImageBitmap) \
commit-queue@webkit.orga57234a2017-08-31 20:03:42 +0000254 macro(createReadableStream) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000255 macro(customElements) \
calvaris@igalia.com26c50782015-11-19 09:21:47 +0000256 macro(disturbed) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000257 macro(document) \
utatane.tea@gmail.comdbca2242017-02-01 10:00:32 +0000258 macro(failureKind) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000259 macro(fetch) \
commit-queue@webkit.orgac1e56e2016-07-25 06:28:35 +0000260 macro(fetchRequest) \
youenn.fablet@crf.canon.fr3e03aa92016-03-31 08:31:25 +0000261 macro(fillFromJS) \
commit-queue@webkit.orgc57ace02016-07-27 06:38:15 +0000262 macro(finishConsumingStream) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000263 macro(focus) \
264 macro(frames) \
adam.bergkvist@ericsson.com9b502b02016-06-23 13:52:13 +0000265 macro(getTracks) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000266 macro(getUserMedia) \
justin_fan@apple.com4583cd02019-03-12 00:46:41 +0000267 macro(gpu) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000268 macro(header) \
ysuzuki@apple.com5f133792019-02-06 22:58:00 +0000269 macro(href) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000270 macro(indexedDB) \
youenn.fablet@crf.canon.frdf1dd612016-01-25 10:53:53 +0000271 macro(initializeWith) \
commit-queue@webkit.orge98042a2016-07-23 06:01:15 +0000272 macro(isDisturbed) \
commit-queue@webkit.org321eb582016-08-29 06:49:42 +0000273 macro(isLoading) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000274 macro(isSecureContext) \
adam.bergkvist@ericsson.com9b502b02016-06-23 13:52:13 +0000275 macro(localStreams) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000276 macro(location) \
commit-queue@webkit.org2a1273b2016-07-27 06:37:49 +0000277 macro(makeGetterTypeError) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000278 macro(makeThisTypeError) \
279 macro(matchingElementInFlatTree) \
eric.carlson@apple.com4a0a33b2016-09-02 17:36:29 +0000280 macro(mediaStreamTrackConstraints) \
sihui_liu@apple.com62c4e052018-10-16 23:59:38 +0000281 macro(openDatabase) \
carlosgc@webkit.org3fe39152019-05-27 08:34:35 +0000282 macro(ontouchcancel) \
283 macro(ontouchend) \
284 macro(ontouchmove) \
285 macro(ontouchstart) \
286 macro(ontouchforcechange) \
svillar@igalia.com29e449b2017-09-13 11:17:27 +0000287 macro(onvrdisplayactivate) \
288 macro(onvrdisplayblur) \
289 macro(onvrdisplayconnect) \
290 macro(onvrdisplaydeactivate) \
291 macro(onvrdisplaydisconnect) \
292 macro(onvrdisplayfocus) \
293 macro(onvrdisplaypresentchange) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000294 macro(opener) \
youenn.fablet@crf.canon.frdf1dd612016-01-25 10:53:53 +0000295 macro(operations) \
youenn.fablet@crf.canon.fr3c393032015-10-13 17:44:18 +0000296 macro(ownerReadableStream) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000297 macro(parent) \
commit-queue@webkit.org7c4f09e2016-11-02 11:37:26 +0000298 macro(pendingPullIntos) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000299 macro(postMessage) \
adam.bergkvist@ericsson.com22c13c12015-11-15 22:00:32 +0000300 macro(privateGetStats) \
commit-queue@webkit.orgc740d212016-09-01 14:14:05 +0000301 macro(pull) \
youenn.fablet@crf.canon.fra7db5df2015-10-19 10:36:42 +0000302 macro(pullAgain) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000303 macro(pulling) \
youenn.fablet@crf.canon.fr3c393032015-10-13 17:44:18 +0000304 macro(queue) \
adam.bergkvist@ericsson.com22c13c12015-11-15 22:00:32 +0000305 macro(queuedAddIceCandidate) \
306 macro(queuedCreateAnswer) \
307 macro(queuedCreateOffer) \
308 macro(queuedSetLocalDescription) \
309 macro(queuedSetRemoteDescription) \
commit-queue@webkit.org6c25cde2016-12-20 19:43:48 +0000310 macro(readIntoRequests) \
youenn.fablet@crf.canon.fra7db5df2015-10-19 10:36:42 +0000311 macro(readRequests) \
commit-queue@webkit.orgcf57fe22017-04-17 21:24:37 +0000312 macro(readableByteStreamAPIEnabled) \
commit-queue@webkit.orgc740d212016-09-01 14:14:05 +0000313 macro(readableStreamController) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000314 macro(reader) \
calvaris@igalia.com3b73dbc2015-11-03 14:52:04 +0000315 macro(readyPromiseCapability) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000316 macro(response) \
commit-queue@webkit.orgd2c5b6e2016-07-21 06:51:05 +0000317 macro(responseCacheIsValid) \
318 macro(retrieveResponse) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000319 macro(self) \
commit-queue@webkit.orgac1e56e2016-07-25 06:28:35 +0000320 macro(setBody) \
commit-queue@webkit.orgb60fe0d2017-06-22 04:31:12 +0000321 macro(setBodyFromInputRequest) \
commit-queue@webkit.orgce21a802016-07-20 06:23:13 +0000322 macro(setStatus) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000323 macro(showModalDialog) \
commit-queue@webkit.orgc57ace02016-07-27 06:38:15 +0000324 macro(startConsumingStream) \
youenn.fablet@crf.canon.fr3c393032015-10-13 17:44:18 +0000325 macro(started) \
calvaris@igalia.com8e1dd492015-10-21 08:34:41 +0000326 macro(startedPromise) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000327 macro(state) \
youenn.fablet@crf.canon.fr3c393032015-10-13 17:44:18 +0000328 macro(storedError) \
calvaris@igalia.com7b05ff72015-10-20 09:51:09 +0000329 macro(strategy) \
commit-queue@webkit.org7c4f09e2016-11-02 11:37:26 +0000330 macro(strategyHWM) \
calvaris@igalia.com74e0a652015-10-29 16:51:41 +0000331 macro(streamClosed) \
332 macro(streamClosing) \
333 macro(streamErrored) \
334 macro(streamReadable) \
335 macro(streamWaiting) \
336 macro(streamWritable) \
commit-queue@webkit.org51aa0602016-08-29 10:52:42 +0000337 macro(structuredCloneArrayBuffer) \
338 macro(structuredCloneArrayBufferView) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000339 macro(top) \
commit-queue@webkit.org7c4f09e2016-11-02 11:37:26 +0000340 macro(underlyingByteSource) \
calvaris@igalia.com8e1dd492015-10-21 08:34:41 +0000341 macro(underlyingSink) \
youenn.fablet@crf.canon.fr3c393032015-10-13 17:44:18 +0000342 macro(underlyingSource) \
commit-queue@webkit.org65fb5672017-02-20 18:18:06 +0000343 macro(view) \
commit-queue@webkit.orgf2afcaa2017-11-22 22:20:26 +0000344 macro(visualViewport) \
commit-queue@webkit.org7f75ee92017-09-04 10:50:58 +0000345 macro(webkit) \
346 macro(webkitAudioContext) \
347 macro(webkitIDBCursor) \
348 macro(webkitIDBDatabase) \
349 macro(webkitIDBFactory) \
350 macro(webkitIDBIndex) \
351 macro(webkitIDBKeyRange) \
352 macro(webkitIDBObjectStore) \
353 macro(webkitIDBRequest) \
354 macro(webkitIDBTransaction) \
355 macro(webkitIndexedDB) \
356 macro(window) \
aestes@apple.comee651732018-11-30 17:09:37 +0000357 macro(writing) \
358 WEBCORE_ADDITIONAL_PRIVATE_IDENTIFIERS(macro) \
youenn.fablet@crf.canon.frc8f54022015-10-06 06:20:58 +0000359
360class WebCoreBuiltinNames {
361public:
362 explicit WebCoreBuiltinNames(JSC::VM* vm)
363 : m_vm(*vm)
364 WEBCORE_COMMON_PRIVATE_IDENTIFIERS_EACH_PROPERTY_NAME(INITIALIZE_BUILTIN_NAMES)
365 {
366#define EXPORT_NAME(name) m_vm.propertyNames->appendExternalName(name##PublicName(), name##PrivateName());
367 WEBCORE_COMMON_PRIVATE_IDENTIFIERS_EACH_PROPERTY_NAME(EXPORT_NAME)
368#undef EXPORT_NAME
369 }
370
371 WEBCORE_COMMON_PRIVATE_IDENTIFIERS_EACH_PROPERTY_NAME(DECLARE_BUILTIN_IDENTIFIER_ACCESSOR)
372
373private:
374 JSC::VM& m_vm;
375 WEBCORE_COMMON_PRIVATE_IDENTIFIERS_EACH_PROPERTY_NAME(DECLARE_BUILTIN_NAMES)
376};
377
378} // namespace WebCore