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

Unified Diff: core/scripts/make_event_factory.py

Issue 19605006: Roll IDL to multivm@1316 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 7 years, 5 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 | « core/scripts/make_dom_exceptions.py ('k') | core/scripts/make_runtime_features.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/scripts/make_event_factory.py
diff --git a/core/scripts/make_event_factory.py b/core/scripts/make_event_factory.py
index 440328d23a5abf5382eacbb57d93ff6644e29935..06d0880fa151e940ec5b7c980809089ed0c054e4 100644
--- a/core/scripts/make_event_factory.py
+++ b/core/scripts/make_event_factory.py
@@ -57,8 +57,8 @@ PassRefPtr<%(class_name)s> %(class_name)sFactory::create(const String& type)
class EventFactoryWriter(name_macros.Writer):
defaults = {
- 'interfaceName' : None,
- 'conditional' : None,
+ 'implementedAs': None,
+ 'conditional': None,
'runtimeConditional': None,
}
default_parameters = {
@@ -77,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'])
« no previous file with comments | « core/scripts/make_dom_exceptions.py ('k') | core/scripts/make_runtime_features.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698