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

Unified Diff: core/scripts/make_event_factory.py

Issue 37053003: Roll IDL to multivm@1467 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 7 years, 2 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/page/WindowPagePopup.idl ('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 d34e4bef88f2b63e6ba7eaf713c99e4dfc41f9ac..ace45ab3a1798e85a331efa08e1e65298393aaea 100644
--- a/core/scripts/make_event_factory.py
+++ b/core/scripts/make_event_factory.py
@@ -33,6 +33,7 @@ import shutil
from in_file import InFile
import name_macros
+from name_utilities import lower_first
import license
@@ -73,9 +74,10 @@ class EventFactoryWriter(name_macros.Writer):
return self.in_file.name_dictionaries
def _factory_implementation(self, event):
- runtime_condition = ''
if event['EnabledAtRuntime']:
- runtime_condition = ' && RuntimeEnabledFeatures::' + event['EnabledAtRuntime'] + '()'
+ runtime_condition = ' && RuntimeEnabledFeatures::%s()' % lower_first(event['EnabledAtRuntime'])
+ else:
+ runtime_condition = ''
name = os.path.basename(event['name'])
class_name = self._class_name_for_entry(event)
implementation = """ if (type == "%(name)s"%(runtime_condition)s)
« no previous file with comments | « core/page/WindowPagePopup.idl ('k') | core/scripts/make_runtime_features.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698