summaryrefslogtreecommitdiffstats
path: root/webkit/port
diff options
context:
space:
mode:
authordglazkov@google.com <dglazkov@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-22 02:50:05 +0000
committerdglazkov@google.com <dglazkov@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-22 02:50:05 +0000
commitccd0b2138f8a024e439bdcc31f1a1a8a42915a34 (patch)
tree9f239c6d2fae45aaa82a3d278f350b6e41f9889d /webkit/port
parentf91eb27b04e8807ec75e2310862a3679b631f12d (diff)
downloadchromium_src-ccd0b2138f8a024e439bdcc31f1a1a8a42915a34.zip
chromium_src-ccd0b2138f8a024e439bdcc31f1a1a8a42915a34.tar.gz
chromium_src-ccd0b2138f8a024e439bdcc31f1a1a8a42915a34.tar.bz2
Hook up V8 Database Bindings.
R=darin Review URL: http://codereview.chromium.org/50071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12264 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port')
-rw-r--r--webkit/port/DerivedSources.make4
-rw-r--r--webkit/port/bindings/v8/v8_custom.h6
-rw-r--r--webkit/port/bindings/v8/v8_index.cpp5
-rw-r--r--webkit/port/bindings/v8/v8_index.h11
-rw-r--r--webkit/port/bindings/v8/v8_proxy.cpp6
5 files changed, 29 insertions, 3 deletions
diff --git a/webkit/port/DerivedSources.make b/webkit/port/DerivedSources.make
index 36da578..076d228 100644
--- a/webkit/port/DerivedSources.make
+++ b/webkit/port/DerivedSources.make
@@ -751,6 +751,10 @@ all : \
V8Range.h \
V8RangeException.h \
V8Rect.h \
+ V8SQLError.h \
+ V8SQLResultSet.h \
+ V8SQLResultSetRowList.h \
+ V8SQLTransaction.h \
V8SVGAElement.h \
V8SVGAltGlyphElement.h \
V8SVGAngle.h \
diff --git a/webkit/port/bindings/v8/v8_custom.h b/webkit/port/bindings/v8/v8_custom.h
index 5c490d7..4c4129d 100644
--- a/webkit/port/bindings/v8/v8_custom.h
+++ b/webkit/port/bindings/v8/v8_custom.h
@@ -466,6 +466,12 @@ DECLARE_CALLBACK(MessagePortStartConversation)
DECLARE_CALLBACK(MessagePortAddEventListener)
DECLARE_CALLBACK(MessagePortRemoveEventListener)
+// Database
+DECLARE_CALLBACK(DatabaseChangeVersion)
+DECLARE_CALLBACK(DatabaseTransaction)
+DECLARE_CALLBACK(SQLTransactionExecuteSql)
+DECLARE_CALLBACK(SQLResultSetRowListItem)
+
// SVG custom properties and callbacks
#if ENABLE(SVG)
DECLARE_PROPERTY_ACCESSOR_GETTER(SVGLengthValue)
diff --git a/webkit/port/bindings/v8/v8_index.cpp b/webkit/port/bindings/v8/v8_index.cpp
index c3838ef..60757b6 100644
--- a/webkit/port/bindings/v8/v8_index.cpp
+++ b/webkit/port/bindings/v8/v8_index.cpp
@@ -62,6 +62,7 @@
#include "V8CSSStyleSheet.h"
#include "V8CSSVariablesDeclaration.h"
#include "V8CSSVariablesRule.h"
+#include "V8Database.h"
#include "V8Document.h"
#include "V8DocumentFragment.h"
#include "V8DocumentType.h"
@@ -179,6 +180,10 @@
#include "V8Range.h"
#include "V8RangeException.h"
#include "V8Rect.h"
+#include "V8SQLError.h"
+#include "V8SQLResultSet.h"
+#include "V8SQLResultSetRowList.h"
+#include "V8SQLTransaction.h"
#include "V8NodeIterator.h"
#include "V8TextMetrics.h"
#include "V8TreeWalker.h"
diff --git a/webkit/port/bindings/v8/v8_index.h b/webkit/port/bindings/v8/v8_index.h
index f149629..f567e5d 100644
--- a/webkit/port/bindings/v8/v8_index.h
+++ b/webkit/port/bindings/v8/v8_index.h
@@ -338,10 +338,17 @@ typedef v8::Persistent<v8::FunctionTemplate> (*FunctionTemplateFactory)();
VIDEO_NONNODE_TYPES(V) \
WORKER_NONNODE_WRAPPER_TYPES(V)
+#define DOM_OBJECT_DATABASE_TYPES(V) \
+ V(DATABASE, Database) \
+ V(SQLERROR, SQLError) \
+ V(SQLRESULTSET, SQLResultSet) \
+ V(SQLRESULTSETROWLIST, SQLResultSetRowList) \
+ V(SQLTRANSACTION, SQLTransaction)
+
#define DOM_OBJECT_TYPES(V) \
DOM_OBJECT_TYPES_1(V) \
- DOM_OBJECT_TYPES_2(V)
-
+ DOM_OBJECT_TYPES_2(V) \
+ DOM_OBJECT_DATABASE_TYPES(V)
#if ENABLE(SVG)
// SVG_OBJECT_TYPES are svg non-node, non-pod types.
diff --git a/webkit/port/bindings/v8/v8_proxy.cpp b/webkit/port/bindings/v8/v8_proxy.cpp
index 486aee2..1b10096 100644
--- a/webkit/port/bindings/v8/v8_proxy.cpp
+++ b/webkit/port/bindings/v8/v8_proxy.cpp
@@ -70,6 +70,7 @@
#include "CSSStyleSheet.h"
#include "CSSVariablesDeclaration.h"
#include "CSSVariablesRule.h"
+#include "Database.h"
#include "DocumentType.h"
#include "DocumentFragment.h"
#include "DOMCoreException.h"
@@ -129,6 +130,9 @@
#include "ScriptExecutionContext.h"
#include "SecurityOrigin.h"
#include "Settings.h"
+#include "SQLTransaction.h"
+#include "SQLResultSet.h"
+#include "SQLResultSetRowList.h"
#include "StyleSheet.h"
#include "StyleSheetList.h"
#include "SVGColor.h"
@@ -1553,7 +1557,7 @@ v8::Local<v8::Function> V8Proxy::GetConstructor(V8ClassIndex::V8WrapperType t){
v8::Local<v8::Object> V8Proxy::CreateWrapperFromCache(V8ClassIndex::V8WrapperType type) {
int class_index = V8ClassIndex::ToInt(type);
- v8::Local<v8::Value> cached_object =
+ v8::Local<v8::Value> cached_object =
m_wrapper_boilerplates->Get(v8::Integer::New(class_index));
if (cached_object->IsObject()) {
v8::Local<v8::Object> object = v8::Local<v8::Object>::Cast(cached_object);