aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/v8/qv8contextwrapper_p.h
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2011-06-16 15:39:12 +1000
committerAaron Kennedy <aaron.kennedy@nokia.com>2011-06-16 15:39:12 +1000
commit9c5e112e12f09ad5c8356d6815f9b23102e99bfd (patch)
tree056670ea7d51128a8e5b5eccb8c8c0828b775def /src/declarative/qml/v8/qv8contextwrapper_p.h
parent7ad493f4c217c7876d6ab51f5a679536b3a6e8b4 (diff)
Add "shared mode" to QML contexts
Diffstat (limited to 'src/declarative/qml/v8/qv8contextwrapper_p.h')
-rw-r--r--src/declarative/qml/v8/qv8contextwrapper_p.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/declarative/qml/v8/qv8contextwrapper_p.h b/src/declarative/qml/v8/qv8contextwrapper_p.h
index 12e01bab76..7a7e745166 100644
--- a/src/declarative/qml/v8/qv8contextwrapper_p.h
+++ b/src/declarative/qml/v8/qv8contextwrapper_p.h
@@ -88,6 +88,9 @@ public:
QDeclarativeContextData *callingContext();
QDeclarativeContextData *context(v8::Handle<v8::Value>);
+
+ inline v8::Handle<v8::Object> sharedContext() const;
+
private:
static v8::Handle<v8::Value> NullGetter(v8::Local<v8::String> property,
const v8::AccessorInfo &info);
@@ -103,8 +106,14 @@ private:
QV8Engine *m_engine;
v8::Persistent<v8::Function> m_constructor;
v8::Persistent<v8::Function> m_urlConstructor;
+ v8::Persistent<v8::Object> m_sharedContext;
};
+v8::Handle<v8::Object> QV8ContextWrapper::sharedContext() const
+{
+ return m_sharedContext;
+}
+
QT_END_NAMESPACE
#endif // QV8CONTEXTWRAPPER_P_H