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

Unified Diff: Source/bindings/scripts/unstable/v8_methods.py

Issue 53483004: IDL compiler: [Clamp] for arguments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Comment changes 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 | « no previous file | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/unstable/v8_methods.py
diff --git a/Source/bindings/scripts/unstable/v8_methods.py b/Source/bindings/scripts/unstable/v8_methods.py
index 3c73d7857ea581cffa25d71918e3bd73598fc5ff..a20d28938ecd3693a623a86f8ecaa5ed530de7ad 100644
--- a/Source/bindings/scripts/unstable/v8_methods.py
+++ b/Source/bindings/scripts/unstable/v8_methods.py
@@ -59,6 +59,7 @@ def generate_method(method):
def generate_argument(method, argument, index):
+ extended_attributes = argument.extended_attributes
idl_type = argument.idl_type
return {
'cpp_method': cpp_method(method, index),
@@ -66,6 +67,7 @@ def generate_argument(method, argument, index):
'enum_validation_expression': v8_utilities.enum_validation_expression(idl_type),
'idl_type': argument.idl_type,
'index': index,
+ 'is_clamp': 'Clamp' in extended_attributes,
'is_optional': argument.is_optional,
'is_variadic_wrapper_type': argument.is_variadic and v8_types.is_wrapper_type(idl_type),
'name': argument.name,
« no previous file with comments | « no previous file | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698