https://bugs.webkit.org/show_bug.cgi?id=79442
Reviewed by Adam Barth.
For WebKit modularization, this patch moves Worker-related APIs
from DOMWindow.idl to DOMWindowWorker.idl.
No tests. No change in behavior.
* workers/DOMWindowWorker.idl: Added.
* page/DOMWindow.idl:
* CMakeLists.txt:
* DerivedSources.make:
* DerivedSources.pri:
* GNUmakefile.list.am:
* WebCore.gypi:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108778
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
)
ENDIF ()
+IF (ENABLE_WORKERS OR ENABLE_SHARED_WORKERS)
+ LIST(APPEND WebCore_IDL_FILES
+ workers/DOMWindowWorker.idl
+ )
+ENDIF ()
+
IF (ENABLE_VIDEO_TRACK)
LIST(APPEND WebCore_SOURCES
html/HTMLTrackElement.cpp
+2012-02-24 Kentaro Hara <haraken@chromium.org>
+
+ Move Worker-related APIs from DOMWindow.idl to DOMWindowWorker.idl
+ https://bugs.webkit.org/show_bug.cgi?id=79442
+
+ Reviewed by Adam Barth.
+
+ For WebKit modularization, this patch moves Worker-related APIs
+ from DOMWindow.idl to DOMWindowWorker.idl.
+
+ No tests. No change in behavior.
+
+ * workers/DOMWindowWorker.idl: Added.
+ * page/DOMWindow.idl:
+
+ * CMakeLists.txt:
+ * DerivedSources.make:
+ * DerivedSources.pri:
+ * GNUmakefile.list.am:
+ * WebCore.gypi:
+
2012-02-24 Robin Cao <robin.cao@torchmobile.com.cn>
[BlackBerry] Upstream helper classes for skia
$(WebCore)/websockets/DOMWindowWebSocket.idl \
$(WebCore)/websockets/WebSocket.idl \
$(WebCore)/workers/AbstractWorker.idl \
+ $(WebCore)/workers/DOMWindowWorker.idl \
$(WebCore)/workers/DedicatedWorkerContext.idl \
$(WebCore)/workers/SharedWorker.idl \
$(WebCore)/workers/SharedWorkerContext.idl \
$$PWD/websockets/DOMWindowWebSocket.idl \
$$PWD/websockets/WebSocket.idl \
$$PWD/workers/AbstractWorker.idl \
+ $$PWD/workers/DOMWindowWorker.idl \
$$PWD/workers/DedicatedWorkerContext.idl \
$$PWD/workers/SharedWorker.idl \
$$PWD/workers/SharedWorkerContext.idl \
$(WebCore)/webaudio/DOMWindowWebAudio.idl \
$(WebCore)/webaudio/WaveShaperNode.idl \
$(WebCore)/workers/AbstractWorker.idl \
+ $(WebCore)/workers/DOMWindowWorker.idl \
$(WebCore)/workers/DedicatedWorkerContext.idl \
$(WebCore)/workers/SharedWorker.idl \
$(WebCore)/workers/SharedWorkerContext.idl \
'websockets/DOMWindowWebSocket.idl',
'websockets/WebSocket.idl',
'workers/AbstractWorker.idl',
+ 'workers/DOMWindowWorker.idl',
'workers/DedicatedWorkerContext.idl',
'workers/SharedWorker.idl',
'workers/SharedWorkerContext.idl',
attribute MessageChannelConstructor MessageChannel; // Usable with the new operator
#endif
-#if defined(ENABLE_WORKERS) && ENABLE_WORKERS
- attribute WorkerConstructor Worker; // Usable with the new operator
-#endif
-
-#if defined(ENABLE_SHARED_WORKERS) && ENABLE_SHARED_WORKERS
- attribute [JSCustomGetter, V8EnabledAtRuntime] SharedWorkerConstructor SharedWorker; // Usable with the new operator
-#endif
-
#if defined(ENABLE_VIDEO_TRACK) && ENABLE_VIDEO_TRACK
attribute [V8EnabledAtRuntime=webkitVideoTrack] HTMLTrackElementConstructor HTMLTrackElement;
attribute [V8EnabledAtRuntime=webkitVideoTrack] TextTrackConstructor TextTrack;
--- /dev/null
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+module window {
+
+ interface [
+ Supplemental=DOMWindow
+ ] DOMWindowWorker {
+ attribute [Conditional=WORKERS] WorkerConstructor Worker; // Usable with the new operator
+ attribute [Conditional=SHARED_WORKERS, JSCustomGetter, V8EnabledAtRuntime] SharedWorkerConstructor SharedWorker; // Usable with the new operator
+ };
+
+}