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

Unified Diff: third_party/WebKit/Source/bindings/scripts/v8_utilities.py

Issue 2894063002: Expose UseCounter::Feature enum out of blink as WebFeature (Closed)
Patch Set: Initial check in Created 3 years, 7 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
Index: third_party/WebKit/Source/bindings/scripts/v8_utilities.py
diff --git a/third_party/WebKit/Source/bindings/scripts/v8_utilities.py b/third_party/WebKit/Source/bindings/scripts/v8_utilities.py
index 13eb108ab634eaf9889bc8a4ec811adb8a56b529..2bdb920f0226584a389d1923ebc670ebf9e467aa 100644
--- a/third_party/WebKit/Source/bindings/scripts/v8_utilities.py
+++ b/third_party/WebKit/Source/bindings/scripts/v8_utilities.py
@@ -372,9 +372,11 @@ def measure_as(definition_or_member, interface):
extended_attributes = definition_or_member.extended_attributes
if 'MeasureAs' in extended_attributes:
includes.add('core/frame/UseCounter.h')
+ includes.add('public/platform/WebFeature.h')
return lambda suffix: extended_attributes['MeasureAs']
if 'Measure' in extended_attributes:
includes.add('core/frame/UseCounter.h')
+ includes.add('public/platform/WebFeature.h')
measure_as_name = capitalize(definition_or_member.name)
if interface is not None:
measure_as_name = '%s_%s' % (capitalize(interface.name), measure_as_name)

Powered by Google App Engine
This is Rietveld 408576698