Move Worker-related APIs from DOMWindow.idl to DOMWindowWorker.idl
authorharaken@chromium.org <haraken@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Feb 2012 13:33:20 +0000 (13:33 +0000)
committerharaken@chromium.org <haraken@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Feb 2012 13:33:20 +0000 (13:33 +0000)
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

Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.make
Source/WebCore/DerivedSources.pri
Source/WebCore/GNUmakefile.list.am
Source/WebCore/WebCore.gypi
Source/WebCore/page/DOMWindow.idl
Source/WebCore/workers/DOMWindowWorker.idl [new file with mode: 0644]

index cd1677f..e49f070 100644 (file)
@@ -2121,6 +2121,12 @@ IF (ENABLE_SHARED_WORKERS)
     )
 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
index fb495bb..fa50305 100644 (file)
@@ -1,3 +1,24 @@
+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
index 1de4c74..4caa5f7 100644 (file)
@@ -565,6 +565,7 @@ BINDING_IDLS = \
     $(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 \
index b396430..09b7d34 100644 (file)
@@ -430,6 +430,7 @@ IDL_BINDINGS += \
     $$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 \
index 08ae7f2..9f729a2 100644 (file)
@@ -935,6 +935,7 @@ dom_binding_idls += \
        $(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 \
index d57862a..e8b5b2d 100644 (file)
             'websockets/DOMWindowWebSocket.idl',
             'websockets/WebSocket.idl',
             'workers/AbstractWorker.idl',
+            'workers/DOMWindowWorker.idl',
             'workers/DedicatedWorkerContext.idl',
             'workers/SharedWorker.idl',
             'workers/SharedWorkerContext.idl',
index 9066a6d..1fc5d4a 100644 (file)
@@ -485,14 +485,6 @@ module window {
         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;
diff --git a/Source/WebCore/workers/DOMWindowWorker.idl b/Source/WebCore/workers/DOMWindowWorker.idl
new file mode 100644 (file)
index 0000000..80bb93a
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * 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
+    };
+
+}