summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/js
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/bindings/js')
-rw-r--r--WebCore/bindings/js/JSCustomSQLStatementCallback.cpp3
-rw-r--r--WebCore/bindings/js/JSCustomSQLStatementCallback.h4
-rw-r--r--WebCore/bindings/js/JSCustomSQLStatementErrorCallback.cpp4
-rw-r--r--WebCore/bindings/js/JSCustomSQLStatementErrorCallback.h4
-rw-r--r--WebCore/bindings/js/JSCustomSQLTransactionCallback.cpp4
-rw-r--r--WebCore/bindings/js/JSCustomSQLTransactionCallback.h4
-rw-r--r--WebCore/bindings/js/JSCustomSQLTransactionErrorCallback.cpp4
-rw-r--r--WebCore/bindings/js/JSCustomSQLTransactionErrorCallback.h3
-rw-r--r--WebCore/bindings/js/JSDatabaseCustom.cpp3
-rw-r--r--WebCore/bindings/js/JSSQLResultSetRowListCustom.cpp4
-rw-r--r--WebCore/bindings/js/JSSQLTransactionCustom.cpp4
11 files changed, 41 insertions, 0 deletions
diff --git a/WebCore/bindings/js/JSCustomSQLStatementCallback.cpp b/WebCore/bindings/js/JSCustomSQLStatementCallback.cpp
index 8733696..4b9ff8a 100644
--- a/WebCore/bindings/js/JSCustomSQLStatementCallback.cpp
+++ b/WebCore/bindings/js/JSCustomSQLStatementCallback.cpp
@@ -28,6 +28,7 @@
#include "config.h"
#include "JSCustomSQLStatementCallback.h"
+#if ENABLE(DATABASE)
#include "Frame.h"
#include "ScriptController.h"
@@ -90,3 +91,5 @@ void JSCustomSQLStatementCallback::handleEvent(SQLTransaction* transaction, SQLR
}
}
+
+#endif // ENABLE(DATABASE)
diff --git a/WebCore/bindings/js/JSCustomSQLStatementCallback.h b/WebCore/bindings/js/JSCustomSQLStatementCallback.h
index 3a3ae21..c380670 100644
--- a/WebCore/bindings/js/JSCustomSQLStatementCallback.h
+++ b/WebCore/bindings/js/JSCustomSQLStatementCallback.h
@@ -29,6 +29,8 @@
#ifndef JSCustomSQLStatementCallback_h
#define JSCustomSQLStatementCallback_h
+#if ENABLE(DATABASE)
+
#include "SQLStatementCallback.h"
#include <runtime/JSObject.h>
@@ -59,4 +61,6 @@ private:
}
+#endif // ENABLE(DATABASE)
+
#endif // JSCustomSQLStatementCallback_h
diff --git a/WebCore/bindings/js/JSCustomSQLStatementErrorCallback.cpp b/WebCore/bindings/js/JSCustomSQLStatementErrorCallback.cpp
index dd23889..2932919 100644
--- a/WebCore/bindings/js/JSCustomSQLStatementErrorCallback.cpp
+++ b/WebCore/bindings/js/JSCustomSQLStatementErrorCallback.cpp
@@ -29,6 +29,8 @@
#include "config.h"
#include "JSCustomSQLStatementErrorCallback.h"
+#if ENABLE(DATABASE)
+
#include "Frame.h"
#include "ScriptController.h"
#include "JSSQLError.h"
@@ -102,3 +104,5 @@ bool JSCustomSQLStatementErrorCallback::handleEvent(SQLTransaction* transaction,
}
}
+
+#endif // ENABLE(DATABASE)
diff --git a/WebCore/bindings/js/JSCustomSQLStatementErrorCallback.h b/WebCore/bindings/js/JSCustomSQLStatementErrorCallback.h
index 2847114..e563393 100644
--- a/WebCore/bindings/js/JSCustomSQLStatementErrorCallback.h
+++ b/WebCore/bindings/js/JSCustomSQLStatementErrorCallback.h
@@ -29,6 +29,8 @@
#ifndef JSCustomSQLStatementErrorCallback_h
#define JSCustomSQLStatementErrorCallback_h
+#if ENABLE(DATABASE)
+
#include "SQLStatementErrorCallback.h"
#include <runtime/JSObject.h>
@@ -59,5 +61,7 @@ private:
}
+#endif // ENABLE(DATABASE)
+
#endif // JSCustomSQLStatementErrorCallback_h
diff --git a/WebCore/bindings/js/JSCustomSQLTransactionCallback.cpp b/WebCore/bindings/js/JSCustomSQLTransactionCallback.cpp
index 9960a0e..9918e71 100644
--- a/WebCore/bindings/js/JSCustomSQLTransactionCallback.cpp
+++ b/WebCore/bindings/js/JSCustomSQLTransactionCallback.cpp
@@ -29,6 +29,8 @@
#include "config.h"
#include "JSCustomSQLTransactionCallback.h"
+#if ENABLE(DATABASE)
+
#include "Frame.h"
#include "ScriptController.h"
#include "JSSQLTransaction.h"
@@ -134,3 +136,5 @@ void JSCustomSQLTransactionCallback::handleEvent(SQLTransaction* transaction, bo
}
}
+
+#endif // ENABLE(DATABASE)
diff --git a/WebCore/bindings/js/JSCustomSQLTransactionCallback.h b/WebCore/bindings/js/JSCustomSQLTransactionCallback.h
index 0a21c1a..22c367c 100644
--- a/WebCore/bindings/js/JSCustomSQLTransactionCallback.h
+++ b/WebCore/bindings/js/JSCustomSQLTransactionCallback.h
@@ -29,6 +29,8 @@
#ifndef JSCustomSQLTransactionCallback_h
#define JSCustomSQLTransactionCallback_h
+#if ENABLE(DATABASE)
+
#include "SQLTransactionCallback.h"
#include <wtf/PassRefPtr.h>
@@ -60,4 +62,6 @@ private:
}
+#endif // ENABLE(DATABASE)
+
#endif // JSCustomSQLTransactionCallback_h
diff --git a/WebCore/bindings/js/JSCustomSQLTransactionErrorCallback.cpp b/WebCore/bindings/js/JSCustomSQLTransactionErrorCallback.cpp
index 2324d04..f6e59f6 100644
--- a/WebCore/bindings/js/JSCustomSQLTransactionErrorCallback.cpp
+++ b/WebCore/bindings/js/JSCustomSQLTransactionErrorCallback.cpp
@@ -29,6 +29,8 @@
#include "config.h"
#include "JSCustomSQLTransactionErrorCallback.h"
+#if ENABLE(DATABASE)
+
#include "Frame.h"
#include "ScriptController.h"
#include "JSSQLError.h"
@@ -88,3 +90,5 @@ bool JSCustomSQLTransactionErrorCallback::handleEvent(SQLError* error)
}
}
+
+#endif // ENABLE(DATABASE)
diff --git a/WebCore/bindings/js/JSCustomSQLTransactionErrorCallback.h b/WebCore/bindings/js/JSCustomSQLTransactionErrorCallback.h
index 122224f..5f3d727 100644
--- a/WebCore/bindings/js/JSCustomSQLTransactionErrorCallback.h
+++ b/WebCore/bindings/js/JSCustomSQLTransactionErrorCallback.h
@@ -29,6 +29,8 @@
#ifndef JSCustomSQLTransactionErrorCallback_h
#define JSCustomSQLTransactionErrorCallback_h
+#if ENABLE(DATABASE)
+
#include "SQLTransactionErrorCallback.h"
#include <runtime/JSObject.h>
@@ -58,5 +60,6 @@ private:
};
}
+#endif // ENABLE(DATABASE)
#endif // JSCustomSQLTransactionErrorCallback_h
diff --git a/WebCore/bindings/js/JSDatabaseCustom.cpp b/WebCore/bindings/js/JSDatabaseCustom.cpp
index 9ee61a5..f0f2b69 100644
--- a/WebCore/bindings/js/JSDatabaseCustom.cpp
+++ b/WebCore/bindings/js/JSDatabaseCustom.cpp
@@ -29,6 +29,8 @@
#include "config.h"
#include "JSDatabase.h"
+#if ENABLE(DATABASE)
+
#include "DOMWindow.h"
#include "Database.h"
#include "Document.h"
@@ -126,3 +128,4 @@ JSValuePtr JSDatabase::transaction(ExecState* exec, const ArgList& args)
}
}
+#endif // ENABLE(DATABASE)
diff --git a/WebCore/bindings/js/JSSQLResultSetRowListCustom.cpp b/WebCore/bindings/js/JSSQLResultSetRowListCustom.cpp
index fc643ad..53696d4 100644
--- a/WebCore/bindings/js/JSSQLResultSetRowListCustom.cpp
+++ b/WebCore/bindings/js/JSSQLResultSetRowListCustom.cpp
@@ -29,6 +29,8 @@
#include "config.h"
#include "JSSQLResultSetRowList.h"
+#if ENABLE(DATABASE)
+
#include "ExceptionCode.h"
#include "SQLValue.h"
#include "SQLResultSetRowList.h"
@@ -79,3 +81,5 @@ JSValuePtr JSSQLResultSetRowList::item(ExecState* exec, const ArgList& args)
}
}
+
+#endif
diff --git a/WebCore/bindings/js/JSSQLTransactionCustom.cpp b/WebCore/bindings/js/JSSQLTransactionCustom.cpp
index a0f173f..064ab15 100644
--- a/WebCore/bindings/js/JSSQLTransactionCustom.cpp
+++ b/WebCore/bindings/js/JSSQLTransactionCustom.cpp
@@ -29,6 +29,8 @@
#include "config.h"
#include "JSSQLTransaction.h"
+#if ENABLE(DATABASE)
+
#include "DOMWindow.h"
#include "ExceptionCode.h"
#include "JSCustomSQLStatementCallback.h"
@@ -112,3 +114,5 @@ JSValuePtr JSSQLTransaction::executeSql(ExecState* exec, const ArgList& args)
}
}
+
+#endif // ENABLE(DATABASE)