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

Unified Diff: core/scripts/make_event_factory.py

Issue 22498002: Roll IDL to multivm@1329 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 7 years, 4 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_style_shorthands.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 06d0880fa151e940ec5b7c980809089ed0c054e4..d34e4bef88f2b63e6ba7eaf713c99e4dfc41f9ac 100644
--- a/core/scripts/make_event_factory.py
+++ b/core/scripts/make_event_factory.py
@@ -57,9 +57,9 @@ PassRefPtr<%(class_name)s> %(class_name)sFactory::create(const String& type)
class EventFactoryWriter(name_macros.Writer):
defaults = {
- 'implementedAs': None,
- 'conditional': None,
- 'runtimeConditional': None,
+ 'ImplementedAs': None,
+ 'Conditional': None,
+ 'EnabledAtRuntime': None,
}
default_parameters = {
'namespace': '',
@@ -74,8 +74,8 @@ class EventFactoryWriter(name_macros.Writer):
def _factory_implementation(self, event):
runtime_condition = ''
- if event['runtimeConditional']:
- runtime_condition = ' && RuntimeEnabledFeatures::' + event['runtimeConditional'] + '()'
+ if event['EnabledAtRuntime']:
+ runtime_condition = ' && RuntimeEnabledFeatures::' + event['EnabledAtRuntime'] + '()'
name = os.path.basename(event['name'])
class_name = self._class_name_for_entry(event)
implementation = """ if (type == "%(name)s"%(runtime_condition)s)
@@ -84,7 +84,7 @@ class EventFactoryWriter(name_macros.Writer):
'runtime_condition': runtime_condition,
'class_name': class_name,
}
- return self.wrap_with_condition(implementation, event['conditional'])
+ return self.wrap_with_condition(implementation, event['Conditional'])
def generate_implementation(self):
return IMPLEMENTATION_TEMPLATE % {
« no previous file with comments | « core/scripts/make_dom_exceptions.py ('k') | core/scripts/make_style_shorthands.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698