Chromium Code Reviews| Index: Source/modules/EventTargetModulesInterfaces.h |
| diff --git a/Source/modules/donottrack/NavigatorDoNotTrack.h b/Source/modules/EventTargetModulesInterfaces.h |
| similarity index 58% |
| copy from Source/modules/donottrack/NavigatorDoNotTrack.h |
| copy to Source/modules/EventTargetModulesInterfaces.h |
| index eb1dc3b9387af810802f1f9f21f7f80017efba65..348dca705ebe68a020461657f5c5a0e1c762c5e7 100644 |
| --- a/Source/modules/donottrack/NavigatorDoNotTrack.h |
| +++ b/Source/modules/EventTargetModulesInterfaces.h |
| @@ -28,36 +28,48 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -#ifndef NavigatorDoNotTrack_h |
| -#define NavigatorDoNotTrack_h |
| -#include "core/frame/DOMWindowProperty.h" |
| -#include "platform/Supplementable.h" |
| -#include "platform/heap/Handle.h" |
| -#include "wtf/text/WTFString.h" |
| +#ifndef EventTargetModulesInterfaces_h |
| +#define EventTargetModulesInterfaces_h |
| -namespace WebCore { |
| +#include "EventTargetInterfaces.h" |
| -class LocalFrame; |
| -class Navigator; |
| +#if ENABLE(WEB_AUDIO) |
| +#define EVENT_TARGET_MODULES_INTERFACES_FOR_EACH_WEB_AUDIO(macro) \ |
| + macro(AudioContext) \ |
| + macro(AudioNode) \ |
| -class NavigatorDoNotTrack FINAL : public NoBaseWillBeGarbageCollectedFinalized<NavigatorDoNotTrack>, public WillBeHeapSupplement<Navigator>, public DOMWindowProperty { |
| - WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorDoNotTrack); |
| -public: |
| - virtual ~NavigatorDoNotTrack(); |
| - static NavigatorDoNotTrack& from(Navigator&); |
| +#else |
| +#define EVENT_TARGET_MODULES_INTERFACES_FOR_EACH_WEB_AUDIO(macro) |
| +#endif |
| - static String doNotTrack(Navigator&); |
| +#define EVENT_TARGET_MODULES_INTERFACES_FOR_EACH(macro) \ |
| + \ |
| + macro(BatteryManager) \ |
| + macro(FileWriter) \ |
| + macro(IDBDatabase) \ |
| + macro(IDBOpenDBRequest) \ |
| + macro(IDBRequest) \ |
| + macro(IDBTransaction) \ |
| + macro(MIDIAccess) \ |
| + macro(MIDIInput) \ |
| + macro(MIDIPort) \ |
| + macro(MediaKeySession) \ |
| + macro(MediaSource) \ |
| + macro(MediaStream) \ |
| + macro(MediaStreamTrack) \ |
| + macro(Notification) \ |
| + macro(RTCDTMFSender) \ |
| + macro(RTCDataChannel) \ |
| + macro(RTCPeerConnection) \ |
| + macro(ServiceWorker) \ |
| + macro(ServiceWorkerGlobalScope) \ |
| + macro(SourceBuffer) \ |
| + macro(SourceBufferList) \ |
| + macro(SpeechRecognition) \ |
| + macro(SpeechSynthesisUtterance) \ |
| + macro(WebSocket) \ |
| + \ |
| + EVENT_TARGET_MODULES_INTERFACES_FOR_EACH_WEB_AUDIO(macro) \ |
| - String doNotTrack(); |
| - |
| - virtual void trace(Visitor* visitor) OVERRIDE { WillBeHeapSupplement<Navigator>::trace(visitor); } |
| - |
| -private: |
| - explicit NavigatorDoNotTrack(LocalFrame*); |
| - static const char* supplementName(); |
| -}; |
| - |
| -} // namespace WebCore |
| - |
| -#endif // NavigatorDoNotTrack_h |
| +#endif // EventTargetModulesInterfaces_h |
|
abarth-chromium
2014/05/10 00:43:09
This file should be autogenerated. Maybe that's w
|