summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorager@google.com <ager@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-13 11:55:38 +0000
committerager@google.com <ager@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-13 11:55:38 +0000
commit1501d481819caaf2e3ca7d7138c2b9856b40bdf6 (patch)
treea4f869b9487c6d3869873450d2f73932fad690b4 /webkit
parent1ad29e21b21982e80b666535d2329ca8baa20278 (diff)
downloadchromium_src-1501d481819caaf2e3ca7d7138c2b9856b40bdf6.zip
chromium_src-1501d481819caaf2e3ca7d7138c2b9856b40bdf6.tar.gz
chromium_src-1501d481819caaf2e3ca7d7138c2b9856b40bdf6.tar.bz2
Unfork SVGElementInstance.idl and EventTargetNode.idl.
EventListener attributes have been added to the WebKit idl files and we can now use them as is with a minor change to the code generator. Also cleaned up DOMWindow.idl and got rid of some of the differences. Review URL: http://codereview.chromium.org/10684 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5349 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/port/bindings/scripts/CodeGeneratorV8.pm12
-rw-r--r--webkit/port/bindings/v8/v8_proxy.cpp12
2 files changed, 11 insertions, 13 deletions
diff --git a/webkit/port/bindings/scripts/CodeGeneratorV8.pm b/webkit/port/bindings/scripts/CodeGeneratorV8.pm
index b8fbe70..99a95a6 100644
--- a/webkit/port/bindings/scripts/CodeGeneratorV8.pm
+++ b/webkit/port/bindings/scripts/CodeGeneratorV8.pm
@@ -894,7 +894,17 @@ sub GenerateBatchedAttributeData
$getter = "${interfaceName}Internal::${interfaceName}ConstructorGetter";
$setter = "0";
$propAttr = "v8::ReadOnly";
-
+
+ # EventListeners
+ } elsif ($attrExt->{"ProtectedListener"}) {
+ if ($interfaceName eq "DOMWindow") {
+ $getter = "V8Custom::v8DOMWindowEventHandlerAccessorGetter";
+ $setter = "V8Custom::v8DOMWindowEventHandlerAccessorSetter";
+ } else {
+ $getter = "V8Custom::v8ElementEventHandlerAccessorGetter";
+ $setter = "V8Custom::v8ElementEventHandlerAccessorSetter";
+ }
+
# Custom Getter and Setter
} elsif ($attrExt->{"Custom"}) {
$getter = "V8Custom::v8${customAccessor}AccessorGetter";
diff --git a/webkit/port/bindings/v8/v8_proxy.cpp b/webkit/port/bindings/v8/v8_proxy.cpp
index c770e5b..6fa8e8d 100644
--- a/webkit/port/bindings/v8/v8_proxy.cpp
+++ b/webkit/port/bindings/v8/v8_proxy.cpp
@@ -1346,18 +1346,6 @@ v8::Persistent<v8::FunctionTemplate> V8Proxy::GetTemplate(
desc->PrototypeTemplate()->SetIndexedPropertyHandler(
USE_INDEXED_PROPERTY_GETTER(DOMWindow));
- desc->PrototypeTemplate()->Set(
- v8::String::New("addEventListener"),
- v8::FunctionTemplate::New(USE_CALLBACK(DOMWindowAddEventListener),
- v8::Handle<v8::Value>(),
- default_signature),
- v8::None);
- desc->PrototypeTemplate()->Set(
- v8::String::New("removeEventListener"),
- v8::FunctionTemplate::New(USE_CALLBACK(DOMWindowRemoveEventListener),
- v8::Handle<v8::Value>(),
- default_signature),
- v8::None);
desc->SetHiddenPrototype(true);
// Reserve spaces for references to location and navigator objects.