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

Unified Diff: Source/core/frame/DOMWindow.cpp

Issue 1100693002: bindings: Do not use ScriptWrappable::wrap for RemoteDOMWindow. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed ActivityLoggerTest. Created 5 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
« no previous file with comments | « Source/core/frame/DOMWindow.h ('k') | Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/DOMWindow.cpp
diff --git a/Source/core/frame/DOMWindow.cpp b/Source/core/frame/DOMWindow.cpp
index be23dce70fd6b9af82203428a4b079d112b357da..aba6142259f3a90e6de272c455b56008471481f4 100644
--- a/Source/core/frame/DOMWindow.cpp
+++ b/Source/core/frame/DOMWindow.cpp
@@ -32,6 +32,25 @@ DOMWindow::~DOMWindow()
{
}
+v8::Handle<v8::Object> DOMWindow::wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*)
+{
+ // DOMWindow must never be wrapped with wrap method. The wrappers must be
+ // created at WindowProxy::installDOMWindow().
+ RELEASE_ASSERT_NOT_REACHED();
+ return v8::Handle<v8::Object>();
+}
+
+v8::Handle<v8::Object> DOMWindow::associateWithWrapper(v8::Isolate*, const WrapperTypeInfo*, v8::Handle<v8::Object> wrapper)
+{
+ RELEASE_ASSERT_NOT_REACHED(); // same as wrap method
+ return v8::Handle<v8::Object>();
+}
+
+const AtomicString& DOMWindow::interfaceName() const
+{
+ return EventTargetNames::DOMWindow;
+}
+
Location* DOMWindow::location() const
{
if (!m_location)
« no previous file with comments | « Source/core/frame/DOMWindow.h ('k') | Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698