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

Side by Side Diff: Source/modules/EventTargetModulesInterfaces.h

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
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 10 matching lines...) Expand all
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 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. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef NavigatorDoNotTrack_h
32 #define NavigatorDoNotTrack_h
33 31
34 #include "core/frame/DOMWindowProperty.h" 32 #ifndef EventTargetModulesInterfaces_h
35 #include "platform/Supplementable.h" 33 #define EventTargetModulesInterfaces_h
36 #include "platform/heap/Handle.h"
37 #include "wtf/text/WTFString.h"
38 34
39 namespace WebCore { 35 #include "EventTargetInterfaces.h"
40 36
41 class LocalFrame; 37 #if ENABLE(WEB_AUDIO)
42 class Navigator; 38 #define EVENT_TARGET_MODULES_INTERFACES_FOR_EACH_WEB_AUDIO(macro) \
39 macro(AudioContext) \
40 macro(AudioNode) \
43 41
44 class NavigatorDoNotTrack FINAL : public NoBaseWillBeGarbageCollectedFinalized<N avigatorDoNotTrack>, public WillBeHeapSupplement<Navigator>, public DOMWindowPro perty { 42 #else
45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorDoNotTrack); 43 #define EVENT_TARGET_MODULES_INTERFACES_FOR_EACH_WEB_AUDIO(macro)
46 public: 44 #endif
47 virtual ~NavigatorDoNotTrack();
48 static NavigatorDoNotTrack& from(Navigator&);
49 45
50 static String doNotTrack(Navigator&); 46 #define EVENT_TARGET_MODULES_INTERFACES_FOR_EACH(macro) \
47 \
48 macro(BatteryManager) \
49 macro(FileWriter) \
50 macro(IDBDatabase) \
51 macro(IDBOpenDBRequest) \
52 macro(IDBRequest) \
53 macro(IDBTransaction) \
54 macro(MIDIAccess) \
55 macro(MIDIInput) \
56 macro(MIDIPort) \
57 macro(MediaKeySession) \
58 macro(MediaSource) \
59 macro(MediaStream) \
60 macro(MediaStreamTrack) \
61 macro(Notification) \
62 macro(RTCDTMFSender) \
63 macro(RTCDataChannel) \
64 macro(RTCPeerConnection) \
65 macro(ServiceWorker) \
66 macro(ServiceWorkerGlobalScope) \
67 macro(SourceBuffer) \
68 macro(SourceBufferList) \
69 macro(SpeechRecognition) \
70 macro(SpeechSynthesisUtterance) \
71 macro(WebSocket) \
72 \
73 EVENT_TARGET_MODULES_INTERFACES_FOR_EACH_WEB_AUDIO(macro) \
51 74
52 String doNotTrack(); 75 #endif // EventTargetModulesInterfaces_h
abarth-chromium 2014/05/10 00:43:09 This file should be autogenerated. Maybe that's w
53
54 virtual void trace(Visitor* visitor) OVERRIDE { WillBeHeapSupplement<Navigat or>::trace(visitor); }
55
56 private:
57 explicit NavigatorDoNotTrack(LocalFrame*);
58 static const char* supplementName();
59 };
60
61 } // namespace WebCore
62
63 #endif // NavigatorDoNotTrack_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698