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

Side by Side Diff: Source/modules/EventTargetModulesNames.cpp

Issue 275283002: Split EventTargetFactory.in and auto-generate modules-related files. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaseline Created 6 years, 7 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
(Empty)
1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met:
7 *
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above
11 * copyright notice, this list of conditions and the following disclaimer
12 * in the documentation and/or other materials provided with the
13 * distribution.
14 * * Neither the name of Google Inc. nor the names of its
15 * contributors may be used to endorse or promote products derived from
16 * this software without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31 #include "config.h"
32
33 #ifdef SKIP_STATIC_CONSTRUCTORS_ON_GCC
34 #define EVENT_TARGET_NAMES_HIDE_GLOBALS 1
35 #endif
36
37 #include "EventTargetModulesNames.h"
38
39 #include "wtf/StaticConstructors.h"
40
41 namespace WebCore {
42 namespace EventTargetNames {
43
44 using namespace WTF;
45
46 DEFINE_GLOBAL(AtomicString, BatteryManager)
47 DEFINE_GLOBAL(AtomicString, MediaKeySession)
48 DEFINE_GLOBAL(AtomicString, FileWriter)
49 DEFINE_GLOBAL(AtomicString, IDBDatabase)
50 DEFINE_GLOBAL(AtomicString, IDBOpenDBRequest)
51 DEFINE_GLOBAL(AtomicString, IDBRequest)
52 DEFINE_GLOBAL(AtomicString, IDBTransaction)
53 DEFINE_GLOBAL(AtomicString, MediaSource)
54 DEFINE_GLOBAL(AtomicString, SourceBuffer)
55 DEFINE_GLOBAL(AtomicString, SourceBufferList)
56 DEFINE_GLOBAL(AtomicString, MediaStream)
57 DEFINE_GLOBAL(AtomicString, MediaStreamTrack)
58 DEFINE_GLOBAL(AtomicString, RTCDTMFSender)
59 DEFINE_GLOBAL(AtomicString, RTCDataChannel)
60 DEFINE_GLOBAL(AtomicString, RTCPeerConnection)
61 DEFINE_GLOBAL(AtomicString, Notification)
62 DEFINE_GLOBAL(AtomicString, ServiceWorker)
63 DEFINE_GLOBAL(AtomicString, ServiceWorkerGlobalScope)
64 DEFINE_GLOBAL(AtomicString, SpeechRecognition)
65 DEFINE_GLOBAL(AtomicString, SpeechSynthesisUtterance)
66 DEFINE_GLOBAL(AtomicString, MIDIAccess)
67 DEFINE_GLOBAL(AtomicString, MIDIInput)
68 DEFINE_GLOBAL(AtomicString, MIDIPort)
69 DEFINE_GLOBAL(AtomicString, WebSocket)
70 DEFINE_GLOBAL(AtomicString, AudioContext)
71 DEFINE_GLOBAL(AtomicString, AudioNode)
72
73 void initModules()
74 {
75 StringImpl* BatteryManagerImpl = StringImpl::createStatic("BatteryManager", 14, 5049459);
76 StringImpl* MediaKeySessionImpl = StringImpl::createStatic("MediaKeySession" , 15, 1701501);
77 StringImpl* FileWriterImpl = StringImpl::createStatic("FileWriter", 10, 1515 2482);
78 StringImpl* IDBDatabaseImpl = StringImpl::createStatic("IDBDatabase", 11, 11 26017);
79 StringImpl* IDBOpenDBRequestImpl = StringImpl::createStatic("IDBOpenDBReques t", 16, 8388818);
80 StringImpl* IDBRequestImpl = StringImpl::createStatic("IDBRequest", 10, 1621 7380);
81 StringImpl* IDBTransactionImpl = StringImpl::createStatic("IDBTransaction", 14, 13326789);
82 StringImpl* MediaSourceImpl = StringImpl::createStatic("MediaSource", 11, 10 009800);
83 StringImpl* SourceBufferImpl = StringImpl::createStatic("SourceBuffer", 12, 3244577);
84 StringImpl* SourceBufferListImpl = StringImpl::createStatic("SourceBufferLis t", 16, 5225283);
85 StringImpl* MediaStreamImpl = StringImpl::createStatic("MediaStream", 11, 50 95066);
86 StringImpl* MediaStreamTrackImpl = StringImpl::createStatic("MediaStreamTrac k", 16, 16623886);
87 StringImpl* RTCDTMFSenderImpl = StringImpl::createStatic("RTCDTMFSender", 13 , 7965945);
88 StringImpl* RTCDataChannelImpl = StringImpl::createStatic("RTCDataChannel", 14, 16002100);
89 StringImpl* RTCPeerConnectionImpl = StringImpl::createStatic("RTCPeerConnect ion", 17, 11238437);
90 StringImpl* NotificationImpl = StringImpl::createStatic("Notification", 12, 7262241);
91 StringImpl* ServiceWorkerImpl = StringImpl::createStatic("ServiceWorker", 13 , 3155984);
92 StringImpl* ServiceWorkerGlobalScopeImpl = StringImpl::createStatic("Service WorkerGlobalScope", 24, 16474009);
93 StringImpl* SpeechRecognitionImpl = StringImpl::createStatic("SpeechRecognit ion", 17, 1914212);
94 StringImpl* SpeechSynthesisUtteranceImpl = StringImpl::createStatic("SpeechS ynthesisUtterance", 24, 12730322);
95 StringImpl* MIDIAccessImpl = StringImpl::createStatic("MIDIAccess", 10, 1325 2796);
96 StringImpl* MIDIInputImpl = StringImpl::createStatic("MIDIInput", 9, 1322694 0);
97 StringImpl* MIDIPortImpl = StringImpl::createStatic("MIDIPort", 8, 15710269) ;
98 StringImpl* WebSocketImpl = StringImpl::createStatic("WebSocket", 9, 5027682 );
99 StringImpl* AudioContextImpl = StringImpl::createStatic("AudioContext", 12, 5207992);
100 StringImpl* AudioNodeImpl = StringImpl::createStatic("AudioNode", 9, 5081561 );
abarth-chromium 2014/05/10 00:43:09 We need to autogenerate these files. I realize th
101
102 new ((void*)&BatteryManager) AtomicString(BatteryManagerImpl);
103 new ((void*)&MediaKeySession) AtomicString(MediaKeySessionImpl);
104 new ((void*)&FileWriter) AtomicString(FileWriterImpl);
105 new ((void*)&IDBDatabase) AtomicString(IDBDatabaseImpl);
106 new ((void*)&IDBOpenDBRequest) AtomicString(IDBOpenDBRequestImpl);
107 new ((void*)&IDBRequest) AtomicString(IDBRequestImpl);
108 new ((void*)&IDBTransaction) AtomicString(IDBTransactionImpl);
109 new ((void*)&MediaSource) AtomicString(MediaSourceImpl);
110 new ((void*)&SourceBuffer) AtomicString(SourceBufferImpl);
111 new ((void*)&SourceBufferList) AtomicString(SourceBufferListImpl);
112 new ((void*)&MediaStream) AtomicString(MediaStreamImpl);
113 new ((void*)&MediaStreamTrack) AtomicString(MediaStreamTrackImpl);
114 new ((void*)&RTCDTMFSender) AtomicString(RTCDTMFSenderImpl);
115 new ((void*)&RTCDataChannel) AtomicString(RTCDataChannelImpl);
116 new ((void*)&RTCPeerConnection) AtomicString(RTCPeerConnectionImpl);
117 new ((void*)&Notification) AtomicString(NotificationImpl);
118 new ((void*)&ServiceWorker) AtomicString(ServiceWorkerImpl);
119 new ((void*)&ServiceWorkerGlobalScope) AtomicString(ServiceWorkerGlobalScope Impl);
120 new ((void*)&SpeechRecognition) AtomicString(SpeechRecognitionImpl);
121 new ((void*)&SpeechSynthesisUtterance) AtomicString(SpeechSynthesisUtterance Impl);
122 new ((void*)&MIDIAccess) AtomicString(MIDIAccessImpl);
123 new ((void*)&MIDIInput) AtomicString(MIDIInputImpl);
124 new ((void*)&MIDIPort) AtomicString(MIDIPortImpl);
125 new ((void*)&WebSocket) AtomicString(WebSocketImpl);
126 new ((void*)&AudioContext) AtomicString(AudioContextImpl);
127 new ((void*)&AudioNode) AtomicString(AudioNodeImpl);
128 }
129
130 } // EventTarget
131 } // WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698