Title: [108768] trunk/Source/WebCore
Revision
108768
Author
[email protected]
Date
2012-02-24 03:57:16 -0800 (Fri, 24 Feb 2012)

Log Message

Move WebGL APIs from DOMWindow.idl to DOMWindowWebGL.idl
https://bugs.webkit.org/show_bug.cgi?id=79432

Reviewed by Adam Barth.

For WebKit modularization, this patch moves WebGL-related APIs
from DOMWindow.idl to DOMWindowWebGL.idl.

No tests. No change in behavior.

* html/canvas/DOMWindowWebGL.idl: Added.
* page/DOMWindow.idl:

* DerivedSources.make: Added DOMWindowWebGL.idl.
* DerivedSources.pri: Ditto.
* GNUmakefile.list.am: Ditto.
* WebCore.gypi: Ditto.
* WebCore.xcodeproj/project.pbxproj: Ditto.

Modified Paths

Added Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (108767 => 108768)


--- trunk/Source/WebCore/ChangeLog	2012-02-24 11:35:34 UTC (rev 108767)
+++ trunk/Source/WebCore/ChangeLog	2012-02-24 11:57:16 UTC (rev 108768)
@@ -1,3 +1,24 @@
+2012-02-24  Kentaro Hara  <[email protected]>
+
+        Move WebGL APIs from DOMWindow.idl to DOMWindowWebGL.idl
+        https://bugs.webkit.org/show_bug.cgi?id=79432
+
+        Reviewed by Adam Barth.
+
+        For WebKit modularization, this patch moves WebGL-related APIs
+        from DOMWindow.idl to DOMWindowWebGL.idl.
+
+        No tests. No change in behavior.
+
+        * html/canvas/DOMWindowWebGL.idl: Added.
+        * page/DOMWindow.idl:
+
+        * DerivedSources.make: Added DOMWindowWebGL.idl.
+        * DerivedSources.pri: Ditto.
+        * GNUmakefile.list.am: Ditto.
+        * WebCore.gypi: Ditto.
+        * WebCore.xcodeproj/project.pbxproj: Ditto.
+
 2012-02-24  Vsevolod Vlasov  <[email protected]>
 
         Web Inspector: [Regression] network worker tests crash on qt.

Modified: trunk/Source/WebCore/DerivedSources.make (108767 => 108768)


--- trunk/Source/WebCore/DerivedSources.make	2012-02-24 11:35:34 UTC (rev 108767)
+++ trunk/Source/WebCore/DerivedSources.make	2012-02-24 11:57:16 UTC (rev 108768)
@@ -277,6 +277,7 @@
     $(WebCore)/html/canvas/CanvasPattern.idl \
     $(WebCore)/html/canvas/CanvasRenderingContext.idl \
     $(WebCore)/html/canvas/CanvasRenderingContext2D.idl \
+    $(WebCore)/html/canvas/DOMWindowWebGL.idl \
     $(WebCore)/html/canvas/DataView.idl \
     $(WebCore)/html/canvas/Float32Array.idl \
     $(WebCore)/html/canvas/Float64Array.idl \

Modified: trunk/Source/WebCore/DerivedSources.pri (108767 => 108768)


--- trunk/Source/WebCore/DerivedSources.pri	2012-02-24 11:35:34 UTC (rev 108767)
+++ trunk/Source/WebCore/DerivedSources.pri	2012-02-24 11:57:16 UTC (rev 108768)
@@ -215,6 +215,7 @@
     $$PWD/fileapi/WebKitBlobBuilder.idl \
     $$PWD/html/canvas/ArrayBufferView.idl \
     $$PWD/html/canvas/ArrayBuffer.idl \
+    $$PWD/html/canvas/DOMWindowWebGL.idl \
     $$PWD/html/canvas/DataView.idl \
     $$PWD/html/canvas/Int8Array.idl \
     $$PWD/html/canvas/Float32Array.idl \

Modified: trunk/Source/WebCore/GNUmakefile.list.am (108767 => 108768)


--- trunk/Source/WebCore/GNUmakefile.list.am	2012-02-24 11:35:34 UTC (rev 108767)
+++ trunk/Source/WebCore/GNUmakefile.list.am	2012-02-24 11:57:16 UTC (rev 108768)
@@ -844,6 +844,7 @@
 	$(WebCore)/html/canvas/CanvasPattern.idl \
 	$(WebCore)/html/canvas/CanvasRenderingContext.idl \
 	$(WebCore)/html/canvas/CanvasRenderingContext2D.idl \
+	$(WebCore)/html/canvas/DOMWindowWebGL.idl \
 	$(WebCore)/html/canvas/DataView.idl \
 	$(WebCore)/html/canvas/Float32Array.idl \
 	$(WebCore)/html/canvas/Float64Array.idl \

Modified: trunk/Source/WebCore/WebCore.gypi (108767 => 108768)


--- trunk/Source/WebCore/WebCore.gypi	2012-02-24 11:35:34 UTC (rev 108767)
+++ trunk/Source/WebCore/WebCore.gypi	2012-02-24 11:57:16 UTC (rev 108768)
@@ -949,6 +949,7 @@
             'html/canvas/CanvasPixelArray.idl',
             'html/canvas/CanvasRenderingContext.idl',
             'html/canvas/CanvasRenderingContext2D.idl',
+            'html/canvas/DOMWindowWebGL.idl',
             'html/canvas/DataView.idl',
             'html/canvas/Float32Array.idl',
             'html/canvas/Float64Array.idl',

Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (108767 => 108768)


--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj	2012-02-24 11:35:34 UTC (rev 108767)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj	2012-02-24 11:57:16 UTC (rev 108768)
@@ -10673,6 +10673,7 @@
 		A833C80A0A2CF25600D57664 /* XMLNames.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = XMLNames.cpp; sourceTree = "<group>"; };
 		A833C80B0A2CF25600D57664 /* XMLNames.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = XMLNames.h; sourceTree = "<group>"; };
 		A83B533814F399BB00720D9D /* IDLAttributes.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = IDLAttributes.txt; path = scripts/IDLAttributes.txt; sourceTree = "<group>"; };
+		A83B535B14F7413A00720D9D /* DOMWindowWebGL.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DOMWindowWebGL.idl; path = canvas/DOMWindowWebGL.idl; sourceTree = "<group>"; };
 		A83B78F20CCAFF15000B0825 /* JSSVGFontFaceUriElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSSVGFontFaceUriElement.h; sourceTree = "<group>"; };
 		A83B78F30CCAFF15000B0825 /* JSSVGFontFaceUriElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSSVGFontFaceUriElement.cpp; sourceTree = "<group>"; };
 		A83B78F40CCAFF15000B0825 /* JSSVGFontFaceSrcElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSSVGFontFaceSrcElement.h; sourceTree = "<group>"; };
@@ -14535,6 +14536,7 @@
 		49484FAE102CF01E00187DD3 /* canvas */ = {
 			isa = PBXGroup;
 			children = (
+				A83B535B14F7413A00720D9D /* DOMWindowWebGL.idl */,
 				49EECDCC10503C2300099FAB /* ArrayBuffer.idl */,
 				49EECDC910503C2300099FAB /* ArrayBufferView.idl */,
 				6E4E91A710F7FB3100A2779C /* CanvasContextAttributes.cpp */,

Added: trunk/Source/WebCore/html/canvas/DOMWindowWebGL.idl (0 => 108768)


--- trunk/Source/WebCore/html/canvas/DOMWindowWebGL.idl	                        (rev 0)
+++ trunk/Source/WebCore/html/canvas/DOMWindowWebGL.idl	2012-02-24 11:57:16 UTC (rev 108768)
@@ -0,0 +1,37 @@
+/*
+ * 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 [
+        Conditional=WEBGL,
+        Supplemental=DOMWindow
+    ] DOMWindowWebGL {
+        attribute WebGLActiveInfoConstructor WebGLActiveInfo;
+        attribute WebGLBufferConstructor WebGLBuffer;
+        attribute WebGLFramebufferConstructor WebGLFramebuffer;
+        attribute WebGLProgramConstructor WebGLProgram;
+        attribute WebGLRenderbufferConstructor WebGLRenderbuffer;
+        attribute WebGLRenderingContextConstructor WebGLRenderingContext;
+        attribute WebGLShaderConstructor WebGLShader;
+        attribute WebGLTextureConstructor WebGLTexture;
+        attribute WebGLUniformLocationConstructor WebGLUniformLocation;
+    };
+
+}

Modified: trunk/Source/WebCore/page/DOMWindow.idl (108767 => 108768)


--- trunk/Source/WebCore/page/DOMWindow.idl	2012-02-24 11:35:34 UTC (rev 108767)
+++ trunk/Source/WebCore/page/DOMWindow.idl	2012-02-24 11:57:16 UTC (rev 108768)
@@ -401,15 +401,6 @@
         attribute CanvasRenderingContext2DConstructor CanvasRenderingContext2D;
 
         attribute ImageDataConstructor ImageData;
-        attribute [Conditional=WEBGL] WebGLActiveInfoConstructor WebGLActiveInfo;
-        attribute [Conditional=WEBGL] WebGLBufferConstructor WebGLBuffer;
-        attribute [Conditional=WEBGL] WebGLFramebufferConstructor WebGLFramebuffer;
-        attribute [Conditional=WEBGL] WebGLProgramConstructor WebGLProgram;
-        attribute [Conditional=WEBGL] WebGLRenderbufferConstructor WebGLRenderbuffer;
-        attribute [Conditional=WEBGL] WebGLRenderingContextConstructor WebGLRenderingContext;
-        attribute [Conditional=WEBGL] WebGLShaderConstructor WebGLShader;
-        attribute [Conditional=WEBGL] WebGLTextureConstructor WebGLTexture;
-        attribute [Conditional=WEBGL] WebGLUniformLocationConstructor WebGLUniformLocation;
         attribute TextMetricsConstructor TextMetrics;
 
         attribute DOMStringMapConstructor DOMStringMap;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to