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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ToV8ForCore.h

Issue 2848503002: Revert of binding: Changes the association among global-proxy/global/window-instance (2nd attempt).… (Closed)
Patch Set: Updated the test expectation. Created 3 years, 8 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: third_party/WebKit/Source/bindings/core/v8/ToV8ForCore.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ToV8ForCore.h b/third_party/WebKit/Source/bindings/core/v8/ToV8ForCore.h
index 96cd46bf16f20225dd202eb25c83698a5becb0ff..711f134ee403b195e5620ab241abd7de80cab1ab 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ToV8ForCore.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ToV8ForCore.h
@@ -10,11 +10,26 @@
#include "bindings/core/v8/ToV8.h"
#include "core/dom/ArrayBufferViewHelpers.h"
+#include "core/dom/Node.h"
#include "v8/include/v8.h"
namespace blink {
class Dictionary;
+class DOMWindow;
+class EventTarget;
+
+CORE_EXPORT v8::Local<v8::Value> ToV8(DOMWindow*,
+ v8::Local<v8::Object> creation_context,
+ v8::Isolate*);
+CORE_EXPORT v8::Local<v8::Value> ToV8(EventTarget*,
+ v8::Local<v8::Object> creation_context,
+ v8::Isolate*);
+inline v8::Local<v8::Value> ToV8(Node* node,
+ v8::Local<v8::Object> creation_context,
+ v8::Isolate* isolate) {
+ return ToV8(static_cast<ScriptWrappable*>(node), creation_context, isolate);
+}
inline v8::Local<v8::Value> ToV8(const Dictionary& value,
v8::Local<v8::Object> creation_context,

Powered by Google App Engine
This is Rietveld 408576698