Commit c6839d1c authored by andersca@apple.com's avatar andersca@apple.com

2008-04-16 Anders Carlsson <andersca@apple.com>

        Reviewed by Adam.

        Generate the DOMApplicationCache JS wrapper, add JSDOMApplicationCacheCustom.cpp and 
        fix typos in the #if line.
        
        * DerivedSources.make:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * bindings/js/JSDOMApplicationCacheCustom.cpp: Added.
        * loader/appcache/ApplicationCache.cpp:
        * loader/appcache/ApplicationCache.h:
        * loader/appcache/ApplicationCacheGroup.cpp:
        * loader/appcache/ApplicationCacheGroup.h:
        * loader/appcache/ApplicationCacheResource.cpp:
        * loader/appcache/ApplicationCacheResource.h:
        * loader/appcache/DOMApplicationCache.cpp:
        * loader/appcache/DOMApplicationCache.h:
        * loader/appcache/DOMApplicationCache.idl:
        * loader/appcache/ManifestParser.cpp:
        * loader/appcache/ManifestParser.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31963 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6ae58b39
2008-04-16 Anders Carlsson <andersca@apple.com>
Reviewed by Adam.
Generate the DOMApplicationCache JS wrapper, add JSDOMApplicationCacheCustom.cpp and
fix typos in the #if line.
* DerivedSources.make:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSDOMApplicationCacheCustom.cpp: Added.
* loader/appcache/ApplicationCache.cpp:
* loader/appcache/ApplicationCache.h:
* loader/appcache/ApplicationCacheGroup.cpp:
* loader/appcache/ApplicationCacheGroup.h:
* loader/appcache/ApplicationCacheResource.cpp:
* loader/appcache/ApplicationCacheResource.h:
* loader/appcache/DOMApplicationCache.cpp:
* loader/appcache/DOMApplicationCache.h:
* loader/appcache/DOMApplicationCache.idl:
* loader/appcache/ManifestParser.cpp:
* loader/appcache/ManifestParser.h:
2008-04-16 Sam Weinig <sam@webkit.org>
Reviewed by Geoffrey Garen.
......@@ -32,6 +32,7 @@ VPATH = \
$(WebCore)/css \
$(WebCore)/dom \
$(WebCore)/html \
$(WebCore)/loader/appcache \
$(WebCore)/page \
$(WebCore)/plugins \
$(WebCore)/storage \
......@@ -67,6 +68,7 @@ DOM_CLASSES = \
Comment \
Console \
Counter \
DOMApplicationCache \
DOMCoreException \
DOMImplementation \
DOMParser \
......
......@@ -805,6 +805,14 @@
RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSDocumentType.h"
>
</File>
<File
RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSDOMApplicationCache.cpp"
>
</File>
<File
RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSDOMApplicationCache.h"
>
</File>
<File
RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSDOMCoreException.cpp"
>
......@@ -13165,6 +13173,10 @@
RelativePath="..\bindings\js\JSDocumentCustom.cpp"
>
</File>
<File
RelativePath="..\bindings\js\JSDOMApplicationCacheCustom.cpp"
>
</File>
<File
RelativePath="..\bindings\js\JSDOMWindowBase.cpp"
>
......
......@@ -237,6 +237,9 @@
1AB7FC870A8B92EC00D9D37B /* XPathVariableReference.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AB7FC660A8B92EC00D9D37B /* XPathVariableReference.cpp */; };
1AB7FC880A8B92EC00D9D37B /* XPathVariableReference.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AB7FC670A8B92EC00D9D37B /* XPathVariableReference.h */; };
1ABFE7530CD968D000FE4834 /* SQLTransaction.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1ABFE7520CD968D000FE4834 /* SQLTransaction.cpp */; };
1AC2260C0DB69F190089B669 /* JSDOMApplicationCache.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC2260A0DB69F190089B669 /* JSDOMApplicationCache.cpp */; };
1AC2260D0DB69F190089B669 /* JSDOMApplicationCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AC2260B0DB69F190089B669 /* JSDOMApplicationCache.h */; };
1AC226170DB69F740089B669 /* JSDOMApplicationCacheCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC226160DB69F740089B669 /* JSDOMApplicationCacheCustom.cpp */; };
1AC694C70A3B1676003F5049 /* PluginDocument.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC694C50A3B1676003F5049 /* PluginDocument.cpp */; };
1AC694C80A3B1676003F5049 /* PluginDocument.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AC694C60A3B1676003F5049 /* PluginDocument.h */; };
1ACD1B630B029739007E5016 /* DOMCSSStyleDeclarationInternal.h in Copy Generated Headers */ = {isa = PBXBuildFile; fileRef = 85E711440AC5D5340053270F /* DOMCSSStyleDeclarationInternal.h */; };
......@@ -4667,6 +4670,9 @@
1AB7FC660A8B92EC00D9D37B /* XPathVariableReference.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = XPathVariableReference.cpp; sourceTree = "<group>"; };
1AB7FC670A8B92EC00D9D37B /* XPathVariableReference.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = XPathVariableReference.h; sourceTree = "<group>"; };
1ABFE7520CD968D000FE4834 /* SQLTransaction.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SQLTransaction.cpp; sourceTree = "<group>"; };
1AC2260A0DB69F190089B669 /* JSDOMApplicationCache.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMApplicationCache.cpp; sourceTree = "<group>"; };
1AC2260B0DB69F190089B669 /* JSDOMApplicationCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDOMApplicationCache.h; sourceTree = "<group>"; };
1AC226160DB69F740089B669 /* JSDOMApplicationCacheCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMApplicationCacheCustom.cpp; sourceTree = "<group>"; };
1AC694C50A3B1676003F5049 /* PluginDocument.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = PluginDocument.cpp; sourceTree = "<group>"; };
1AC694C60A3B1676003F5049 /* PluginDocument.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = PluginDocument.h; sourceTree = "<group>"; };
1ACE53DD0A8D18810022947D /* JSDOMParser.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMParser.cpp; sourceTree = "<group>"; };
......@@ -8403,6 +8409,7 @@
A83B790E0CCAFF97000B0825 /* CSS */,
A83B79120CCB003F000B0825 /* Events */,
A83B79080CCAFF2B000B0825 /* HTML */,
1AC226020DB69EA70089B669 /* Offline */,
BC9854460CD3DA5F00069BC1 /* Ranges */,
A83B79150CCB0078000B0825 /* Storage */,
A83B790A0CCAFF47000B0825 /* SVG */,
......@@ -8532,6 +8539,15 @@
path = appcache;
sourceTree = "<group>";
};
1AC226020DB69EA70089B669 /* Offline */ = {
isa = PBXGroup;
children = (
1AC2260A0DB69F190089B669 /* JSDOMApplicationCache.cpp */,
1AC2260B0DB69F190089B669 /* JSDOMApplicationCache.h */,
);
name = Offline;
sourceTree = "<group>";
};
1AE42F670AA4B8CB00C8612D /* cf */ = {
isa = PBXGroup;
children = (
......@@ -12095,6 +12111,7 @@
1A3417C70CECFF250049CBDE /* JSCustomVoidCallback.h */,
1AE830420CAB0ED1002237AE /* JSDatabaseCustom.cpp */,
929264760B61FC7200B41D34 /* JSDocumentCustom.cpp */,
1AC226160DB69F740089B669 /* JSDOMApplicationCacheCustom.cpp */,
BCD9C25E0C17AA67005C90A2 /* JSDOMWindowCustom.cpp */,
BC2ED5540C6B9BD300920BFF /* JSElementCustom.cpp */,
BCEFAF4D0C317E6900FA81F6 /* JSEventCustom.cpp */,
......@@ -14894,6 +14911,7 @@
1A8F6BC10DB55CDC001DB794 /* ApplicationCacheResource.h in Headers */,
1A8F6BC30DB55CDC001DB794 /* DOMApplicationCache.h in Headers */,
1A8F6BC60DB55CDC001DB794 /* ManifestParser.h in Headers */,
1AC2260D0DB69F190089B669 /* JSDOMApplicationCache.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -16593,6 +16611,8 @@
1A8F6BC20DB55CDC001DB794 /* DOMApplicationCache.cpp in Sources */,
1A8F6BC50DB55CDC001DB794 /* ManifestParser.cpp in Sources */,
C0DFC8700DB6841A003EAE7C /* JSConsoleCustom.cpp in Sources */,
1AC2260C0DB69F190089B669 /* JSDOMApplicationCache.cpp in Sources */,
1AC226170DB69F740089B669 /* JSDOMApplicationCacheCustom.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/*
* Copyright (C) 2008 Apple Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#if ENABLE(OFFLINE_WEB_APPLICATIONS)
namespace WebCore {
}
#endif // ENABLE(OFFLINE_WEB_APPLICATIONS)
......@@ -26,6 +26,7 @@
#include "config.h"
#include "ApplicationCache.h"
#ifdef ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#if ENABLE(OFFLINE_WEB_APPLICATIONS)
#endif // ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#endif // ENABLE(OFFLINE_WEB_APPLICATIONS)
......@@ -26,8 +26,9 @@
#ifndef ApplicationCache_h
#define ApplicationCache_h
#ifdef ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#if ENABLE(OFFLINE_WEB_APPLICATIONS)
#endif // ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#endif // ENABLE(OFFLINE_WEB_APPLICATIONS)
#endif // ApplicationCache_h
......@@ -26,6 +26,7 @@
#include "config.h"
#include "ApplicationCacheGroup.h"
#ifdef ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#if ENABLE(OFFLINE_WEB_APPLICATIONS)
#endif // ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#endif // ENABLE(OFFLINE_WEB_APPLICATIONS)
......@@ -26,8 +26,9 @@
#ifndef ApplicationCacheGroup_h
#define ApplicationCacheGroup_h
#ifdef ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#if ENABLE(OFFLINE_WEB_APPLICATIONS)
#endif // ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#endif // ENABLE(OFFLINE_WEB_APPLICATIONS)
#endif // ApplicationCacheGroup_h
......@@ -26,6 +26,7 @@
#include "config.h"
#include "ApplicationCacheResource.h"
#ifdef ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#if ENABLE(OFFLINE_WEB_APPLICATIONS)
#endif // ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#endif // ENABLE(OFFLINE_WEB_APPLICATIONS)
......@@ -26,8 +26,9 @@
#ifndef ApplicationCacheResource_h
#define ApplicationCacheResource_h
#ifdef ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#if ENABLE(OFFLINE_WEB_APPLICATIONS)
#endif // ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#endif // ENABLE(OFFLINE_WEB_APPLICATIONS)
#endif // ApplicationCacheResource_h
......@@ -26,6 +26,7 @@
#include "config.h"
#include "DOMApplicationCache.h"
#ifdef ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#if ENABLE(OFFLINE_WEB_APPLICATIONS)
#endif // ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#endif // ENABLE(OFFLINE_WEB_APPLICATIONS)
......@@ -26,8 +26,19 @@
#ifndef DOMApplicationCache_h
#define DOMApplicationCache_h
#ifdef ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#if ENABLE(OFFLINE_WEB_APPLICATIONS)
#endif // ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#include <wtf/RefCounted.h>
namespace WebCore {
class DOMApplicationCache : public RefCounted<DOMApplicationCache> {
};
}
#endif // ENABLE(OFFLINE_WEB_APPLICATIONS)
#endif // DOMApplicationCache_h
......@@ -22,3 +22,10 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
module offline {
interface [Conditional=OFFLINE_WEB_APPLICATIONS] DOMApplicationCache {
};
}
......@@ -26,6 +26,7 @@
#include "config.h"
#include "ManifestParser.h"
#ifdef ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#if ENABLE(OFFLINE_WEB_APPLICATIONS)
#endif // ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#endif // ENABLE(OFFLINE_WEB_APPLICATIONS)
......@@ -26,8 +26,9 @@
#ifndef ManifestParser_h
#define ManifestParser_h
#ifdef ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#if ENABLE(OFFLINE_WEB_APPLICATIONS)
#endif // ENABLE(ENABLE_OFFLINE_WEB_APPLICATIONS)
#endif // ENABLE(OFFLINE_WEB_APPLICATIONS)
#endif // ManifestParser_h
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment