@@ -52,8 +52,6 @@ class methods.
52
52
NON_WRAPPER_TYPES = frozenset ([
53
53
'CompareHow' ,
54
54
'DartValue' ,
55
- 'EventHandler' ,
56
- 'EventListener' ,
57
55
'MediaQueryListListener' ,
58
56
'NodeFilter' ,
59
57
])
@@ -106,7 +104,6 @@ class methods.
106
104
CPP_SPECIAL_CONVERSION_RULES = {
107
105
'CompareHow' : 'Range::CompareHow' ,
108
106
'Date' : 'double' ,
109
- 'EventHandler' : 'EventListener*' ,
110
107
'MediaQueryListListener' : 'RefPtrWillBeRawPtr<MediaQueryListListener>' ,
111
108
'Promise' : 'ScriptPromise' ,
112
109
# FIXME: Eliminate custom bindings for XPathNSResolver http://crbug.com/345529
@@ -257,8 +254,6 @@ def includes_for_cpp_class(class_name, relative_dir_posix):
257
254
INCLUDES_FOR_TYPE = {
258
255
'object' : set (),
259
256
'CompareHow' : set (),
260
- 'EventHandler' : set (),
261
- 'EventListener' : set (),
262
257
'MediaQueryListListener' : set (['sky/engine/core/css/MediaQueryListListener.h' ]),
263
258
'NodeList' : set (['sky/engine/core/dom/NodeList.h' ,
264
259
'sky/engine/core/dom/StaticNodeList.h' ]),
@@ -358,7 +353,6 @@ def pass_by_value_format(typename, null_check="{null_check}"):
358
353
'unsigned long long' : 'DartConverter<unsigned long long>::FromArguments(args, {index}, exception)' ,
359
354
# Interface types
360
355
'CompareHow' : 'static_cast<Range::CompareHow>(0) /* FIXME, DART_TO_CPP_VALUE[CompareHow] */' ,
361
- 'EventTarget' : '0 /* FIXME, DART_TO_CPP_VALUE[EventTarget] */' ,
362
356
'MediaQueryListListener' : 'nullptr /* FIXME, DART_TO_CPP_VALUE[MediaQueryListener] */' ,
363
357
'NodeFilter' : 'nullptr /* FIXME, DART_TO_CPP_VALUE[NodeFilter] */' ,
364
358
'Promise' : 'DartUtilities::dartToScriptPromise{null_check}(args, {index})' ,
@@ -645,7 +639,6 @@ def dart_conversion_type(idl_type, extended_attributes):
645
639
# and then use general Dart_SetReturnValue.
646
640
'array' : 'Dart_SetReturnValue(args, {cpp_value})' ,
647
641
'Date' : 'Dart_SetReturnValue(args, {cpp_value})' ,
648
- 'EventHandler' : DART_FIX_ME ,
649
642
'ScriptPromise' : 'Dart_SetReturnValue(args, {cpp_value})' ,
650
643
'DartValue' : 'DartConverter<DartValue*>::SetReturnValue(args, {cpp_value})' ,
651
644
# DOMWrapper
@@ -678,7 +671,7 @@ def dom_wrapper_conversion_type():
678
671
idl_type , cpp_value = preprocess_idl_type_and_value (idl_type , cpp_value , extended_attributes )
679
672
this_dart_conversion_type = idl_type .dart_conversion_type (extended_attributes )
680
673
# SetReturn-specific overrides
681
- if this_dart_conversion_type in ['Date' , 'EventHandler' , ' ScriptPromise' , 'SerializedScriptValue' , 'array' ]:
674
+ if this_dart_conversion_type in ['Date' , 'ScriptPromise' , 'SerializedScriptValue' , 'array' ]:
682
675
# Convert value to Dart and then use general Dart_SetReturnValue
683
676
# FIXME(vsm): Why do we differ from V8 here? It doesn't have a
684
677
# creation_context.
@@ -753,8 +746,6 @@ def dart_set_return_value_union(idl_type, cpp_value, extended_attributes=None,
753
746
'unrestricted double' : 'DartConverter<double>::ToDart({cpp_value})' ,
754
747
# FIXME(vsm): Dart_Null?
755
748
'void' : '' ,
756
- # Special cases
757
- 'EventHandler' : '-----OOPS TO DART-EVENT---' ,
758
749
# We need to generate the NullCheck version in some cases.
759
750
'ScriptPromise' : 'DartUtilities::scriptPromiseToDart({cpp_value})' ,
760
751
'DartValue' : 'DartConverter<DartValue*>::ToDart({cpp_value})' ,
0 commit comments