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

Unified Diff: Source/bindings/core/v8/custom/V8EventCustom.cpp

Issue 531183003: bindings: Retires manual dispatching in createV8{HTML,SVG}Wrapper, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added FIXME comments. Created 6 years, 3 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/v8/custom/V8EventCustom.cpp
diff --git a/Source/bindings/core/v8/custom/V8EventCustom.cpp b/Source/bindings/core/v8/custom/V8EventCustom.cpp
index 6b6bfd6654328d846cd515759117fc9608f83b27..37f8d53c60b2fdafe42c3cf7bc219f88b1f20065 100644
--- a/Source/bindings/core/v8/custom/V8EventCustom.cpp
+++ b/Source/bindings/core/v8/custom/V8EventCustom.cpp
@@ -31,11 +31,8 @@
#include "config.h"
#include "bindings/core/v8/V8Event.h"
-#include "bindings/core/v8/ModuleProxy.h"
#include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8DataTransfer.h"
-#include "core/EventHeaders.h"
-#include "core/EventInterfaces.h"
#include "core/clipboard/DataTransfer.h"
#include "core/events/ClipboardEvent.h"
#include "core/events/Event.h"
@@ -52,23 +49,4 @@ void V8Event::clipboardDataAttributeGetterCustom(const v8::PropertyCallbackInfo<
}
}
-#define TRY_TO_WRAP_WITH_INTERFACE(interfaceName) \
- if (EventNames::interfaceName == desiredInterface) \
- return wrap(static_cast<interfaceName*>(event), creationContext, isolate);
-
-v8::Handle<v8::Object> wrap(Event* event, v8::Handle<v8::Object> creationContext, v8::Isolate *isolate)
-{
- ASSERT(event);
-
- String desiredInterface = event->interfaceName();
-
- // We need to check Event first to avoid infinite recursion.
- if (EventNames::Event == desiredInterface)
- return V8Event::createWrapper(event, creationContext, isolate);
-
- EVENT_INTERFACES_FOR_EACH(TRY_TO_WRAP_WITH_INTERFACE);
-
- return ModuleProxy::moduleProxy().wrapForEvent(event, creationContext, isolate);
-}
-
} // namespace blink
« no previous file with comments | « Source/bindings/core/v8/CustomElementWrapper.cpp ('k') | Source/bindings/core/v8/custom/V8HTMLCollectionCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698