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

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

Issue 12386021: Revert 144142 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1425/
Patch Set: Created 7 years, 10 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/WebCore/bindings/scripts/CodeGeneratorV8.pm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/bindings/v8/custom/V8EventCustom.cpp
===================================================================
--- Source/WebCore/bindings/v8/custom/V8EventCustom.cpp (revision 144313)
+++ Source/WebCore/bindings/v8/custom/V8EventCustom.cpp (working copy)
@@ -42,6 +42,16 @@
namespace WebCore {
+v8::Handle<v8::Value> V8Event::dataTransferAttrGetterCustom(v8::Local<v8::String> name, const v8::AccessorInfo& info)
+{
+ Event* event = V8Event::toNative(info.Holder());
+
+ if (event->isDragEvent())
+ return toV8Fast(static_cast<MouseEvent*>(event)->clipboard(), info, event);
+
+ return v8::Undefined();
+}
+
v8::Handle<v8::Value> V8Event::clipboardDataAttrGetterCustom(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
Event* event = V8Event::toNative(info.Holder());
« no previous file with comments | « Source/WebCore/bindings/scripts/CodeGeneratorV8.pm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698