Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Unified Diff: Source/bindings/core/dart/DartJsInteropData.h

Issue 1177953010: Support new style JS interop (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/dartium
Patch Set: ptal. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/core/dart/DartJsInteropData.h
diff --git a/Source/bindings/core/dart/DartJsInteropData.h b/Source/bindings/core/dart/DartJsInteropData.h
index 653f4d3ba3b5dc4cceb88c2872694b90c25261ac..9eb72ba253b597c00d815884a6275ff6d4d411af 100644
--- a/Source/bindings/core/dart/DartJsInteropData.h
+++ b/Source/bindings/core/dart/DartJsInteropData.h
@@ -39,10 +39,15 @@ namespace blink {
class DartJsInteropData {
public:
+ DartJsInteropData() { m_jsObjectImplDefined = false; }
+
v8::Local<v8::Function> captureThisFunction();
v8::Local<v8::Function> wrapDartFunction();
v8::Local<v8::Function> instanceofFunction();
+ bool jsObjectImplDefined() { return m_jsObjectImplDefined; }
+ void setJsObjectImplDefined() { m_jsObjectImplDefined = true; }
+
private:
static v8::Local<v8::Function> cacheFunction(v8::Persistent<v8::Function>* cache, const char* scriptSrc);
@@ -50,6 +55,8 @@ private:
v8::Persistent<v8::Function> m_wrapDartFunction;
v8::Persistent<v8::Function> m_instanceofFunction;
+ bool m_jsObjectImplDefined;
+
// FIXME: add maps of Dart to V8 and V8 to Dart objects.
};
« Source/bindings/core/dart/DartJsInterop.cpp ('K') | « Source/bindings/core/dart/DartJsInterop.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698