Index: Source/core/scripts/make_event_factory.py |
diff --git a/Source/core/scripts/make_event_factory.py b/Source/core/scripts/make_event_factory.py |
index cf6790ac2353295266861eb3a2f68b0529db0c38..06d0880fa151e940ec5b7c980809089ed0c054e4 100644 |
--- a/Source/core/scripts/make_event_factory.py |
+++ b/Source/core/scripts/make_event_factory.py |
@@ -57,8 +57,7 @@ PassRefPtr<%(class_name)s> %(class_name)sFactory::create(const String& type) |
class EventFactoryWriter(name_macros.Writer): |
defaults = { |
- 'JSInterfaceName': None, |
- 'interfaceName': None, |
+ 'implementedAs': None, |
'conditional': None, |
'runtimeConditional': None, |
} |
@@ -78,12 +77,12 @@ class EventFactoryWriter(name_macros.Writer): |
if event['runtimeConditional']: |
runtime_condition = ' && RuntimeEnabledFeatures::' + event['runtimeConditional'] + '()' |
name = os.path.basename(event['name']) |
- interface_name = event['interfaceName'] if event['interfaceName'] else name |
+ class_name = self._class_name_for_entry(event) |
implementation = """ if (type == "%(name)s"%(runtime_condition)s) |
- return %(interface_name)s::create();""" % { |
+ return %(class_name)s::create();""" % { |
'name': name, |
'runtime_condition': runtime_condition, |
- 'interface_name': interface_name, |
+ 'class_name': class_name, |
} |
return self.wrap_with_condition(implementation, event['conditional']) |