Commit a97902ef authored by dumi@chromium.org's avatar dumi@chromium.org

Adding the IDL files for the sync DB API and the stubs for the JS and V8 bindings.

https://bugs.webkit.org/show_bug.cgi?id=34994

Reviewed by Brady Eidson.

* DerivedSources.cpp:
* DerivedSources.make:
* GNUmakefile.am:
* WebCore.gypi:
* WebCore.pri:
* WebCore.pro:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSBindingsAllInOne.cpp:
* bindings/js/JSDatabaseSyncCustom.cpp: Added.
(WebCore::JSDatabaseSync::changeVersion):
(WebCore::createTransaction):
(WebCore::JSDatabaseSync::transaction):
(WebCore::JSDatabaseSync::readTransaction):
* bindings/js/JSSQLTransactionSyncCustom.cpp: Added.
(WebCore::JSSQLTransactionSync::executeSql):
* bindings/js/JSWorkerContextCustom.cpp:
(WebCore::JSWorkerContext::openDatabaseSync):
* bindings/v8/custom/V8BindingMacros.h: Added.
* bindings/v8/custom/V8DatabaseSyncCustom.cpp: Added.
(WebCore::V8DatabaseSync::changeVersionCallback):
(WebCore::createTransaction):
(WebCore::V8DatabaseSync::transactionCallback):
(WebCore::V8DatabaseSync::readTransactionCallback):
* bindings/v8/custom/V8SQLTransactionSyncCustom.cpp: Added.
(WebCore::V8SQLTransactionSync::executeSqlCallback):
* bindings/v8/custom/V8WorkerContextCustom.cpp:
(WebCore::V8WorkerContext::openDatabaseSyncCallback):
* storage/Database.idl:
* storage/DatabaseCallback.h:
* storage/DatabaseCallback.idl:
* storage/DatabaseSync.cpp:
(WebCore::DatabaseSync::changeVersion):
(WebCore::DatabaseSync::transaction):
* storage/DatabaseSync.h:
* storage/DatabaseSync.idl: Added.
* storage/SQLError.idl:
* storage/SQLResultSet.idl:
* storage/SQLResultSetRowList.idl:
* storage/SQLTransaction.idl:
* storage/SQLTransactionSync.idl: Added.
* storage/SQLTransactionSyncCallback.h:
* storage/SQLTransactionSyncCallback.idl: Added.
* workers/WorkerContext.cpp:
(WebCore::WorkerContext::openDatabaseSync):
* workers/WorkerContext.h:
* workers/WorkerContext.idl:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58989 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent cf710747
2010-05-07 Dumitru Daniliuc <dumi@chromium.org>
Reviewed by Brady Eidson.
Adding the IDL files for the sync DB API and the stubs for the JS and V8 bindings.
https://bugs.webkit.org/show_bug.cgi?id=34994
* DerivedSources.cpp:
* DerivedSources.make:
* GNUmakefile.am:
* WebCore.gypi:
* WebCore.pri:
* WebCore.pro:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSBindingsAllInOne.cpp:
* bindings/js/JSDatabaseSyncCustom.cpp: Added.
(WebCore::JSDatabaseSync::changeVersion):
(WebCore::createTransaction):
(WebCore::JSDatabaseSync::transaction):
(WebCore::JSDatabaseSync::readTransaction):
* bindings/js/JSSQLTransactionSyncCustom.cpp: Added.
(WebCore::JSSQLTransactionSync::executeSql):
* bindings/js/JSWorkerContextCustom.cpp:
(WebCore::JSWorkerContext::openDatabaseSync):
* bindings/v8/custom/V8BindingMacros.h: Added.
* bindings/v8/custom/V8DatabaseSyncCustom.cpp: Added.
(WebCore::V8DatabaseSync::changeVersionCallback):
(WebCore::createTransaction):
(WebCore::V8DatabaseSync::transactionCallback):
(WebCore::V8DatabaseSync::readTransactionCallback):
* bindings/v8/custom/V8SQLTransactionSyncCustom.cpp: Added.
(WebCore::V8SQLTransactionSync::executeSqlCallback):
* bindings/v8/custom/V8WorkerContextCustom.cpp:
(WebCore::V8WorkerContext::openDatabaseSyncCallback):
* storage/Database.idl:
* storage/DatabaseCallback.h:
* storage/DatabaseCallback.idl:
* storage/DatabaseSync.cpp:
(WebCore::DatabaseSync::changeVersion):
(WebCore::DatabaseSync::transaction):
* storage/DatabaseSync.h:
* storage/DatabaseSync.idl: Added.
* storage/SQLError.idl:
* storage/SQLResultSet.idl:
* storage/SQLResultSetRowList.idl:
* storage/SQLTransaction.idl:
* storage/SQLTransactionSync.idl: Added.
* storage/SQLTransactionSyncCallback.h:
* storage/SQLTransactionSyncCallback.idl: Added.
* workers/WorkerContext.cpp:
(WebCore::WorkerContext::openDatabaseSync):
* workers/WorkerContext.h:
* workers/WorkerContext.idl:
2010-05-07 Beth Dakin <bdakin@apple.com>
Reviewed by Simon Fraser.
......@@ -65,6 +65,7 @@
#include "JSCustomEvent.cpp"
#include "JSDatabase.cpp"
#include "JSDatabaseCallback.cpp"
#include "JSDatabaseSync.cpp"
#include "JSDataGridColumn.cpp"
#include "JSDataGridColumnList.cpp"
#include "JSDedicatedWorkerContext.cpp"
......@@ -210,6 +211,8 @@
#include "JSSQLTransaction.cpp"
#include "JSSQLTransactionCallback.cpp"
#include "JSSQLTransactionErrorCallback.cpp"
#include "JSSQLTransactionSync.cpp"
#include "JSSQLTransactionSyncCallback.cpp"
#include "JSStorage.cpp"
#include "JSStorageEvent.cpp"
#include "JSStyleMedia.cpp"
......
......@@ -116,6 +116,7 @@ DOM_CLASSES = \
DOMWindow \
Database \
DatabaseCallback \
DatabaseSync \
Document \
DocumentFragment \
DocumentType \
......@@ -254,6 +255,8 @@ DOM_CLASSES = \
SQLTransaction \
SQLTransactionCallback \
SQLTransactionErrorCallback \
SQLTransactionSync \
SQLTransactionSyncCallback \
Storage \
StorageEvent \
SVGAElement \
......
......@@ -2307,6 +2307,7 @@ FEATURE_DEFINES += ENABLE_DATABASE=1
IDL_BINDINGS += \
WebCore/storage/Database.idl \
WebCore/storage/DatabaseCallback.idl \
WebCore/storage/DatabaseSync.idl \
WebCore/storage/SQLError.idl \
WebCore/storage/SQLResultSet.idl \
WebCore/storage/SQLResultSetRowList.idl \
......@@ -2314,7 +2315,9 @@ IDL_BINDINGS += \
WebCore/storage/SQLStatementErrorCallback.idl \
WebCore/storage/SQLTransaction.idl \
WebCore/storage/SQLTransactionCallback.idl \
WebCore/storage/SQLTransactionErrorCallback.idl
WebCore/storage/SQLTransactionErrorCallback.idl \
WebCore/storage/SQLTransactionSync.idl \
WebCore/storage/SQLTransactionSyncCallback.idl
webcore_cppflags += \
-DENABLE_DATABASE=1
......@@ -2322,8 +2325,10 @@ webcore_cppflags += \
webcore_sources += \
WebCore/bindings/js/JSCustomSQLStatementErrorCallback.cpp \
WebCore/bindings/js/JSDatabaseCustom.cpp \
WebCore/bindings/js/JSDatabaseSyncCustom.cpp \
WebCore/bindings/js/JSSQLResultSetRowListCustom.cpp \
WebCore/bindings/js/JSSQLTransactionCustom.cpp \
WebCore/bindings/js/JSSQLTransactionSyncCustom.cpp \
WebCore/platform/sql/SQLValue.cpp \
WebCore/platform/sql/SQLValue.h \
WebCore/platform/sql/SQLiteAuthorizer.cpp \
......
......@@ -219,6 +219,7 @@
'plugins/PluginArray.idl',
'storage/Database.idl',
'storage/DatabaseCallback.idl',
'storage/DatabaseSync.idl',
'storage/IDBDatabaseError.idl',
'storage/IDBDatabaseException.idl',
'storage/IDBDatabaseRequest.idl',
......@@ -231,6 +232,8 @@
'storage/SQLTransaction.idl',
'storage/SQLTransactionCallback.idl',
'storage/SQLTransactionErrorCallback.idl',
'storage/SQLTransactionSync.idl',
'storage/SQLTransactionSyncCallback.idl',
'storage/Storage.idl',
'storage/StorageEvent.idl',
'websockets/WebSocket.idl',
......@@ -507,6 +510,7 @@
'bindings/js/JSCustomXPathNSResolver.cpp',
'bindings/js/JSCustomXPathNSResolver.h',
'bindings/js/JSDatabaseCustom.cpp',
'bindings/js/JSDatabaseSyncCustom.cpp',
'bindings/js/JSDataGridColumnListCustom.cpp',
'bindings/js/JSDataGridDataSource.cpp',
'bindings/js/JSDataGridDataSource.h',
......@@ -601,6 +605,7 @@
'bindings/js/JSScriptProfileNodeCustom.cpp',
'bindings/js/JSSQLResultSetRowListCustom.cpp',
'bindings/js/JSSQLTransactionCustom.cpp',
'bindings/js/JSSQLTransactionSyncCustom.cpp',
'bindings/js/JSStorageCustom.cpp',
'bindings/js/JSStorageCustom.h',
'bindings/js/JSStyleSheetCustom.cpp',
......@@ -692,6 +697,7 @@
'bindings/v8/custom/V8WebGLUnsignedShortArrayCustom.cpp',
'bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp',
'bindings/v8/custom/V8WebGLRenderingContextCustom.cpp',
'bindings/v8/custom/V8BindingMacros.h',
'bindings/v8/custom/V8ClipboardCustom.cpp',
'bindings/v8/custom/V8ConsoleCustom.cpp',
'bindings/v8/custom/V8CoordinatesCustom.cpp',
......@@ -712,6 +718,7 @@
'bindings/v8/custom/V8CustomXPathNSResolver.cpp',
'bindings/v8/custom/V8CustomXPathNSResolver.h',
'bindings/v8/custom/V8DatabaseCustom.cpp',
'bindings/v8/custom/V8DatabaseSyncCustom.cpp',
'bindings/v8/custom/V8DataGridColumnListCustom.cpp',
'bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp',
'bindings/v8/custom/V8DocumentLocationCustom.cpp',
......@@ -765,6 +772,7 @@
'bindings/v8/custom/V8StorageCustom.cpp',
'bindings/v8/custom/V8SQLResultSetRowListCustom.cpp',
'bindings/v8/custom/V8SQLTransactionCustom.cpp',
'bindings/v8/custom/V8SQLTransactionSyncCustom.cpp',
'bindings/v8/custom/V8SVGDocumentCustom.cpp',
'bindings/v8/custom/V8SVGElementCustom.cpp',
'bindings/v8/custom/V8SVGLengthCustom.cpp',
......
......@@ -437,6 +437,7 @@ IDL_BINDINGS += \
plugins/MimeTypeArray.idl \
storage/Database.idl \
storage/DatabaseCallback.idl \
storage/DatabaseSync.idl \
storage/Storage.idl \
storage/StorageEvent.idl \
storage/SQLError.idl \
......@@ -447,6 +448,8 @@ IDL_BINDINGS += \
storage/SQLTransaction.idl \
storage/SQLTransactionCallback.idl \
storage/SQLTransactionErrorCallback.idl \
storage/SQLTransactionSync.idl \
storage/SQLTransactionSyncCallback.idl \
svg/SVGZoomEvent.idl \
svg/SVGAElement.idl \
svg/SVGAltGlyphElement.idl \
......
......@@ -2300,8 +2300,10 @@ contains(DEFINES, ENABLE_DATABASE=1) {
storage/SQLTransactionSync.cpp \
bindings/js/JSCustomSQLStatementErrorCallback.cpp \
bindings/js/JSDatabaseCustom.cpp \
bindings/js/JSDatabaseSyncCustom.cpp \
bindings/js/JSSQLResultSetRowListCustom.cpp \
bindings/js/JSSQLTransactionCustom.cpp
bindings/js/JSSQLTransactionCustom.cpp \
bindings/js/JSSQLTransactionSyncCustom.cpp
}
contains(DEFINES, ENABLE_DOM_STORAGE=1) {
......@@ -2325,6 +2327,7 @@ contains(DEFINES, ENABLE_DOM_STORAGE=1) {
storage/SQLTransactionClient.h \
storage/SQLTransactionCoordinator.h \
storage/SQLTransactionSync.h \
storage/SQLTransactionSyncCallback.h \
storage/StorageArea.h \
storage/StorageAreaImpl.h \
storage/StorageAreaSync.h \
......
......@@ -2512,6 +2512,62 @@
RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSDatabase.h"
>
</File>
<File
RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSDatabaseSync.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug_Internal|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug_Cairo|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release_Cairo|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug_All|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSDatabaseSync.h"
>
</File>
<File
RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSDataGridColumn.cpp"
>
......@@ -10277,6 +10333,62 @@
RelativePath="$(WebKitOutputDir)\obj\WebCore\DerivedSources\JSSQLTransaction.h"
>
</File>
<File
RelativePath="$(WebKitOutputDir)\obj\WebCore\DerivedSources\JSSQLTransactionSync.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug_Internal|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug_Cairo|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release_Cairo|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug_All|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="$(WebKitOutputDir)\obj\WebCore\DerivedSources\JSSQLTransactionSync.h"
>
</File>
<File
RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\JSStorage.cpp"
>
......@@ -35698,6 +35810,58 @@
/>
</FileConfiguration>
</File>
<File
RelativePath="..\bindings\js\JSDatabaseSyncCustom.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug_Internal|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug_Cairo|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release_Cairo|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug_All|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\bindings\js\JSDataGridColumnListCustom.cpp"
>
......@@ -38978,6 +39142,58 @@
/>
</FileConfiguration>
</File>
<File
RelativePath="..\bindings\js\JSSQLTransactionSyncCustom.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug_Internal|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug_Cairo|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release_Cairo|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug_All|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\bindings\js\JSStorageCustom.cpp"
>
......
......@@ -4168,6 +4168,14 @@
B523CF091182675400EBB29C /* SQLTransactionSync.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B523CF021182675400EBB29C /* SQLTransactionSync.cpp */; };
B523CF0A1182675400EBB29C /* DatabaseSync.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B523CF031182675400EBB29C /* DatabaseSync.cpp */; };
B523CF0B1182675400EBB29C /* DatabaseSync.h in Headers */ = {isa = PBXBuildFile; fileRef = B523CF041182675400EBB29C /* DatabaseSync.h */; };
B55D5AA4119131FC00BCC315 /* JSSQLTransactionSyncCallback.h in Headers */ = {isa = PBXBuildFile; fileRef = B55D5AA2119131FC00BCC315 /* JSSQLTransactionSyncCallback.h */; };
B55D5AA5119131FC00BCC315 /* JSSQLTransactionSyncCallback.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B55D5AA3119131FC00BCC315 /* JSSQLTransactionSyncCallback.cpp */; };
B55D5AA81191325000BCC315 /* JSDatabaseSyncCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B55D5AA61191325000BCC315 /* JSDatabaseSyncCustom.cpp */; };
B55D5AA91191325000BCC315 /* JSSQLTransactionSyncCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B55D5AA71191325000BCC315 /* JSSQLTransactionSyncCustom.cpp */; };
B58CEB6911913607002A6790 /* JSDatabaseSync.h in Headers */ = {isa = PBXBuildFile; fileRef = B58CEB6711913607002A6790 /* JSDatabaseSync.h */; };
B58CEB6A11913607002A6790 /* JSDatabaseSync.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B58CEB6811913607002A6790 /* JSDatabaseSync.cpp */; };
B58CEB6D1191361C002A6790 /* JSSQLTransactionSync.h in Headers */ = {isa = PBXBuildFile; fileRef = B58CEB6B1191361C002A6790 /* JSSQLTransactionSync.h */; };
B58CEB6E1191361C002A6790 /* JSSQLTransactionSync.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B58CEB6C1191361C002A6790 /* JSSQLTransactionSync.cpp */; };
B59DD699119029E5007E9684 /* JSDatabaseCallback.h in Headers */ = {isa = PBXBuildFile; fileRef = B59DD697119029E5007E9684 /* JSDatabaseCallback.h */; };
B59DD69A119029E5007E9684 /* JSDatabaseCallback.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B59DD698119029E5007E9684 /* JSDatabaseCallback.cpp */; };
B59DD69D11902A42007E9684 /* JSSQLTransactionCallback.h in Headers */ = {isa = PBXBuildFile; fileRef = B59DD69B11902A42007E9684 /* JSSQLTransactionCallback.h */; };
......@@ -9530,6 +9538,17 @@
B523CF021182675400EBB29C /* SQLTransactionSync.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SQLTransactionSync.cpp; sourceTree = "<group>"; };
B523CF031182675400EBB29C /* DatabaseSync.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DatabaseSync.cpp; sourceTree = "<group>"; };
B523CF041182675400EBB29C /* DatabaseSync.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DatabaseSync.h; sourceTree = "<group>"; };
B55D5AA2119131FC00BCC315 /* JSSQLTransactionSyncCallback.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSSQLTransactionSyncCallback.h; sourceTree = "<group>"; };
B55D5AA3119131FC00BCC315 /* JSSQLTransactionSyncCallback.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSSQLTransactionSyncCallback.cpp; sourceTree = "<group>"; };
B55D5AA61191325000BCC315 /* JSDatabaseSyncCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDatabaseSyncCustom.cpp; sourceTree = "<group>"; };
B55D5AA71191325000BCC315 /* JSSQLTransactionSyncCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSSQLTransactionSyncCustom.cpp; sourceTree = "<group>"; };
B55D5ABB1191327200BCC315 /* DatabaseSync.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DatabaseSync.idl; sourceTree = "<group>"; };
B55D5ABC1191327200BCC315 /* SQLTransactionSync.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = SQLTransactionSync.idl; sourceTree = "<group>"; };
B55D5ABD1191327200BCC315 /* SQLTransactionSyncCallback.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = SQLTransactionSyncCallback.idl; sourceTree = "<group>"; };
B58CEB6711913607002A6790 /* JSDatabaseSync.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDatabaseSync.h; sourceTree = "<group>"; };
B58CEB6811913607002A6790 /* JSDatabaseSync.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDatabaseSync.cpp; sourceTree = "<group>"; };
B58CEB6B1191361C002A6790 /* JSSQLTransactionSync.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSSQLTransactionSync.h; sourceTree = "<group>"; };
B58CEB6C1191361C002A6790 /* JSSQLTransactionSync.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSSQLTransactionSync.cpp; sourceTree = "<group>"; };
B59DD68D1190298E007E9684 /* DatabaseCallback.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DatabaseCallback.idl; sourceTree = "<group>"; };
B59DD68E1190298E007E9684 /* SQLStatementCallback.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = SQLStatementCallback.idl; sourceTree = "<group>"; };
B59DD68F1190298E007E9684 /* SQLStatementErrorCallback.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = SQLStatementErrorCallback.idl; sourceTree = "<group>"; };
......@@ -10776,6 +10795,7 @@
5116D9750CF177BD00C2B84D /* DatabaseDetails.h */,
B523CF031182675400EBB29C /* DatabaseSync.cpp */,
B523CF041182675400EBB29C /* DatabaseSync.h */,
B55D5ABB1191327200BCC315 /* DatabaseSync.idl */,
519611E90CAC749C0010A80C /* DatabaseTask.cpp */,
519611E80CAC749C0010A80C /* DatabaseTask.h */,
519611610CAC56570010A80C /* DatabaseThread.cpp */,
......@@ -10818,7 +10838,9 @@
B59DD6911190298E007E9684 /* SQLTransactionErrorCallback.idl */,
B523CF021182675400EBB29C /* SQLTransactionSync.cpp */,
B523CF011182675400EBB29C /* SQLTransactionSync.h */,
B55D5ABC1191327200BCC315 /* SQLTransactionSync.idl */,
B523CEFF1182675400EBB29C /* SQLTransactionSyncCallback.h */,
B55D5ABD1191327200BCC315 /* SQLTransactionSyncCallback.idl */,
51E3F9C50DA059DC00250911 /* Storage.cpp */,
51E3F9C40DA059DC00250911 /* Storage.h */,
51E3F9D10DA05D7100250911 /* Storage.idl */,
......@@ -14105,6 +14127,12 @@
B59DD6A411902A62007E9684 /* JSSQLStatementCallback.cpp */,
B59DD6A711902A71007E9684 /* JSSQLStatementErrorCallback.h */,
B59DD6A811902A71007E9684 /* JSSQLStatementErrorCallback.cpp */,
B55D5AA2119131FC00BCC315 /* JSSQLTransactionSyncCallback.h */,
B55D5AA3119131FC00BCC315 /* JSSQLTransactionSyncCallback.cpp */,
B58CEB6711913607002A6790 /* JSDatabaseSync.h */,
B58CEB6811913607002A6790 /* JSDatabaseSync.cpp */,
B58CEB6B1191361C002A6790 /* JSSQLTransactionSync.h */,
B58CEB6C1191361C002A6790 /* JSSQLTransactionSync.cpp */,
);
name = Storage;
sourceTree = "<group>";
......@@ -15049,6 +15077,8 @@
BC4EDEF70C08F414007EDD49 /* Custom */ = {
isa = PBXGroup;
children = (
B55D5AA61191325000BCC315 /* JSDatabaseSyncCustom.cpp */,
B55D5AA71191325000BCC315 /* JSSQLTransactionSyncCustom.cpp */,
BC2ED6BB0C6BD2F000920BFF /* JSAttrCustom.cpp */,
49EED14B1051971900099FAB /* JSCanvasRenderingContext2DCustom.cpp */,
49EED14D1051971A00099FAB /* JSCanvasRenderingContextCustom.cpp */,
......@@ -18953,6 +18983,9 @@
B59DD6A111902A52007E9684 /* JSSQLTransactionErrorCallback.h in Headers */,
B59DD6A511902A62007E9684 /* JSSQLStatementCallback.h in Headers */,
B59DD6A911902A71007E9684 /* JSSQLStatementErrorCallback.h in Headers */,
B55D5AA4119131FC00BCC315 /* JSSQLTransactionSyncCallback.h in Headers */,
B58CEB6911913607002A6790 /* JSDatabaseSync.h in Headers */,
B58CEB6D1191361C002A6790 /* JSSQLTransactionSync.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -21195,6 +21228,11 @@
B59DD6A211902A52007E9684 /* JSSQLTransactionErrorCallback.cpp in Sources */,
B59DD6A611902A62007E9684 /* JSSQLStatementCallback.cpp in Sources */,
B59DD6AA11902A71007E9684 /* JSSQLStatementErrorCallback.cpp in Sources */,
B55D5AA5119131FC00BCC315 /* JSSQLTransactionSyncCallback.cpp in Sources */,
B55D5AA81191325000BCC315 /* JSDatabaseSyncCustom.cpp in Sources */,
B55D5AA91191325000BCC315 /* JSSQLTransactionSyncCustom.cpp in Sources */,
B58CEB6A11913607002A6790 /* JSDatabaseSync.cpp in Sources */,
B58CEB6E1191361C002A6790 /* JSSQLTransactionSync.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -51,6 +51,7 @@
#include "JSDataGridColumnListCustom.cpp"
#include "JSDataGridDataSource.cpp"
#include "JSDatabaseCustom.cpp"
#include "JSDatabaseSyncCustom.cpp"
#include "JSDedicatedWorkerContextCustom.cpp"
#include "JSDesktopNotificationsCustom.cpp"
#include "JSDocumentCustom.cpp"
......@@ -102,6 +103,7 @@
#include "JSPluginElementFunctions.cpp"
#include "JSSQLResultSetRowListCustom.cpp"
#include "JSSQLTransactionCustom.cpp"
#include "JSSQLTransactionSyncCustom.cpp"
#include "JSSVGElementInstanceCustom.cpp"
#include "JSSVGLengthCustom.cpp"
#include "JSSVGMatrixCustom.cpp"
......
/*
* Copyright (C) 2010 Google 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.
* 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "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 OR ITS 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"
#include "JSDatabaseSync.h"
#if ENABLE(DATABASE)
#include "DatabaseSync.h"
#include "ExceptionCode.h"
#include "JSSQLTransactionSyncCallback.h"
#include "PlatformString.h"
#include "SQLValue.h"
#include <runtime/JSArray.h>
namespace WebCore {
using namespace JSC;
JSValue JSDatabaseSync::changeVersion(ExecState*, const ArgList&)
{
return jsUndefined();
}
static JSValue createTransaction(ExecState*, const ArgList&, DatabaseSync*, JSDOMGlobalObject*, bool)
{
return jsUndefined();
}
JSValue JSDatabaseSync::transaction(ExecState* exec, const ArgList& args)
{
return createTransaction(exec, args, m_impl.get(), static_cast<JSDOMGlobalObject*>(globalObject()), false);
}
JSValue JSDatabaseSync::readTransaction(ExecState* exec, const ArgList& args)
{
return createTransaction(exec, args, m_impl.get(), static_cast<JSDOMGlobalObject*>(globalObject()), true);
}
}
#endif // ENABLE(DATABASE)
/*
* Copyright (C) 2010 Google 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.
* 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*