Index: Source/modules/EventTargetModulesNames.cpp |
diff --git a/Source/modules/EventTargetModulesNames.cpp b/Source/modules/EventTargetModulesNames.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3602b7b2c3eb2a6147b2e3be245c2fc1319bb0bd |
--- /dev/null |
+++ b/Source/modules/EventTargetModulesNames.cpp |
@@ -0,0 +1,131 @@ |
+/* |
+ * Copyright (C) 2013 Google Inc. All rights reserved. |
+ * |
+ * Redistribution and use in source and binary forms, with or without |
+ * modification, are permitted provided that the following conditions are |
+ * met: |
+ * |
+ * * Redistributions of source code must retain the above copyright |
+ * notice, this list of conditions and the following disclaimer. |
+ * * Redistributions in binary form must reproduce the above |
+ * copyright notice, this list of conditions and the following disclaimer |
+ * in the documentation and/or other materials provided with the |
+ * distribution. |
+ * * Neither the name of Google Inc. nor the names of its |
+ * contributors may be used to endorse or promote products derived from |
+ * this software without specific prior written permission. |
+ * |
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+ */ |
+ |
+#include "config.h" |
+ |
+#ifdef SKIP_STATIC_CONSTRUCTORS_ON_GCC |
+#define EVENT_TARGET_NAMES_HIDE_GLOBALS 1 |
+#endif |
+ |
+#include "EventTargetModulesNames.h" |
+ |
+#include "wtf/StaticConstructors.h" |
+ |
+namespace WebCore { |
+namespace EventTargetNames { |
+ |
+using namespace WTF; |
+ |
+DEFINE_GLOBAL(AtomicString, BatteryManager) |
+DEFINE_GLOBAL(AtomicString, MediaKeySession) |
+DEFINE_GLOBAL(AtomicString, FileWriter) |
+DEFINE_GLOBAL(AtomicString, IDBDatabase) |
+DEFINE_GLOBAL(AtomicString, IDBOpenDBRequest) |
+DEFINE_GLOBAL(AtomicString, IDBRequest) |
+DEFINE_GLOBAL(AtomicString, IDBTransaction) |
+DEFINE_GLOBAL(AtomicString, MediaSource) |
+DEFINE_GLOBAL(AtomicString, SourceBuffer) |
+DEFINE_GLOBAL(AtomicString, SourceBufferList) |
+DEFINE_GLOBAL(AtomicString, MediaStream) |
+DEFINE_GLOBAL(AtomicString, MediaStreamTrack) |
+DEFINE_GLOBAL(AtomicString, RTCDTMFSender) |
+DEFINE_GLOBAL(AtomicString, RTCDataChannel) |
+DEFINE_GLOBAL(AtomicString, RTCPeerConnection) |
+DEFINE_GLOBAL(AtomicString, Notification) |
+DEFINE_GLOBAL(AtomicString, ServiceWorker) |
+DEFINE_GLOBAL(AtomicString, ServiceWorkerGlobalScope) |
+DEFINE_GLOBAL(AtomicString, SpeechRecognition) |
+DEFINE_GLOBAL(AtomicString, SpeechSynthesisUtterance) |
+DEFINE_GLOBAL(AtomicString, MIDIAccess) |
+DEFINE_GLOBAL(AtomicString, MIDIInput) |
+DEFINE_GLOBAL(AtomicString, MIDIPort) |
+DEFINE_GLOBAL(AtomicString, WebSocket) |
+DEFINE_GLOBAL(AtomicString, AudioContext) |
+DEFINE_GLOBAL(AtomicString, AudioNode) |
+ |
+void initModules() |
+{ |
+ StringImpl* BatteryManagerImpl = StringImpl::createStatic("BatteryManager", 14, 5049459); |
+ StringImpl* MediaKeySessionImpl = StringImpl::createStatic("MediaKeySession", 15, 1701501); |
+ StringImpl* FileWriterImpl = StringImpl::createStatic("FileWriter", 10, 15152482); |
+ StringImpl* IDBDatabaseImpl = StringImpl::createStatic("IDBDatabase", 11, 1126017); |
+ StringImpl* IDBOpenDBRequestImpl = StringImpl::createStatic("IDBOpenDBRequest", 16, 8388818); |
+ StringImpl* IDBRequestImpl = StringImpl::createStatic("IDBRequest", 10, 16217380); |
+ StringImpl* IDBTransactionImpl = StringImpl::createStatic("IDBTransaction", 14, 13326789); |
+ StringImpl* MediaSourceImpl = StringImpl::createStatic("MediaSource", 11, 10009800); |
+ StringImpl* SourceBufferImpl = StringImpl::createStatic("SourceBuffer", 12, 3244577); |
+ StringImpl* SourceBufferListImpl = StringImpl::createStatic("SourceBufferList", 16, 5225283); |
+ StringImpl* MediaStreamImpl = StringImpl::createStatic("MediaStream", 11, 5095066); |
+ StringImpl* MediaStreamTrackImpl = StringImpl::createStatic("MediaStreamTrack", 16, 16623886); |
+ StringImpl* RTCDTMFSenderImpl = StringImpl::createStatic("RTCDTMFSender", 13, 7965945); |
+ StringImpl* RTCDataChannelImpl = StringImpl::createStatic("RTCDataChannel", 14, 16002100); |
+ StringImpl* RTCPeerConnectionImpl = StringImpl::createStatic("RTCPeerConnection", 17, 11238437); |
+ StringImpl* NotificationImpl = StringImpl::createStatic("Notification", 12, 7262241); |
+ StringImpl* ServiceWorkerImpl = StringImpl::createStatic("ServiceWorker", 13, 3155984); |
+ StringImpl* ServiceWorkerGlobalScopeImpl = StringImpl::createStatic("ServiceWorkerGlobalScope", 24, 16474009); |
+ StringImpl* SpeechRecognitionImpl = StringImpl::createStatic("SpeechRecognition", 17, 1914212); |
+ StringImpl* SpeechSynthesisUtteranceImpl = StringImpl::createStatic("SpeechSynthesisUtterance", 24, 12730322); |
+ StringImpl* MIDIAccessImpl = StringImpl::createStatic("MIDIAccess", 10, 13252796); |
+ StringImpl* MIDIInputImpl = StringImpl::createStatic("MIDIInput", 9, 13226940); |
+ StringImpl* MIDIPortImpl = StringImpl::createStatic("MIDIPort", 8, 15710269); |
+ StringImpl* WebSocketImpl = StringImpl::createStatic("WebSocket", 9, 5027682); |
+ StringImpl* AudioContextImpl = StringImpl::createStatic("AudioContext", 12, 5207992); |
+ StringImpl* AudioNodeImpl = StringImpl::createStatic("AudioNode", 9, 5081561); |
abarth-chromium
2014/05/10 00:43:09
We need to autogenerate these files. I realize th
|
+ |
+ new ((void*)&BatteryManager) AtomicString(BatteryManagerImpl); |
+ new ((void*)&MediaKeySession) AtomicString(MediaKeySessionImpl); |
+ new ((void*)&FileWriter) AtomicString(FileWriterImpl); |
+ new ((void*)&IDBDatabase) AtomicString(IDBDatabaseImpl); |
+ new ((void*)&IDBOpenDBRequest) AtomicString(IDBOpenDBRequestImpl); |
+ new ((void*)&IDBRequest) AtomicString(IDBRequestImpl); |
+ new ((void*)&IDBTransaction) AtomicString(IDBTransactionImpl); |
+ new ((void*)&MediaSource) AtomicString(MediaSourceImpl); |
+ new ((void*)&SourceBuffer) AtomicString(SourceBufferImpl); |
+ new ((void*)&SourceBufferList) AtomicString(SourceBufferListImpl); |
+ new ((void*)&MediaStream) AtomicString(MediaStreamImpl); |
+ new ((void*)&MediaStreamTrack) AtomicString(MediaStreamTrackImpl); |
+ new ((void*)&RTCDTMFSender) AtomicString(RTCDTMFSenderImpl); |
+ new ((void*)&RTCDataChannel) AtomicString(RTCDataChannelImpl); |
+ new ((void*)&RTCPeerConnection) AtomicString(RTCPeerConnectionImpl); |
+ new ((void*)&Notification) AtomicString(NotificationImpl); |
+ new ((void*)&ServiceWorker) AtomicString(ServiceWorkerImpl); |
+ new ((void*)&ServiceWorkerGlobalScope) AtomicString(ServiceWorkerGlobalScopeImpl); |
+ new ((void*)&SpeechRecognition) AtomicString(SpeechRecognitionImpl); |
+ new ((void*)&SpeechSynthesisUtterance) AtomicString(SpeechSynthesisUtteranceImpl); |
+ new ((void*)&MIDIAccess) AtomicString(MIDIAccessImpl); |
+ new ((void*)&MIDIInput) AtomicString(MIDIInputImpl); |
+ new ((void*)&MIDIPort) AtomicString(MIDIPortImpl); |
+ new ((void*)&WebSocket) AtomicString(WebSocketImpl); |
+ new ((void*)&AudioContext) AtomicString(AudioContextImpl); |
+ new ((void*)&AudioNode) AtomicString(AudioNodeImpl); |
+} |
+ |
+} // EventTarget |
+} // WebCore |