HomeSort by relevance Sort by last modified time
    Searched refs:idl_type (Results 1 - 10 of 10) sorted by null

  /external/chromium_org/third_party/WebKit/Source/bindings/scripts/unstable/
v8_types.py 82 def array_or_sequence_type(idl_type):
83 return array_type(idl_type) or sequence_type(idl_type)
86 def array_type(idl_type):
87 matched = re.match(r'([\w\s]+)\[\]', idl_type)
91 def is_basic_type(idl_type):
92 return idl_type in BASIC_TYPES
95 def is_callback_function_type(idl_type):
96 return idl_type in callback_function_types
103 def is_composite_type(idl_type)
    [all...]
v8_callback_interface.py 55 def cpp_to_v8_conversion(idl_type, name):
59 cpp_value_to_v8_value = v8_types.cpp_value_to_v8_value(idl_type, name,
65 def cpp_type(idl_type):
68 if idl_type == 'DOMString':
70 if idl_type == 'void':
73 usual_cpp_type = v8_types.cpp_type(idl_type, used_as_argument=True)
97 v8_types.add_includes_for_type(operation.idl_type)
99 v8_types.add_includes_for_type(argument.idl_type)
104 idl_type = operation.idl_type
    [all...]
v8_methods.py 47 idl_type = method.idl_type
87 'cpp_type': v8_types.cpp_type(idl_type),
96 'idl_type': idl_type,
134 idl_type = argument.idl_type
137 'cpp_type': v8_types.cpp_type(idl_type),
139 'enum_validation_expression': v8_utilities.enum_validation_expression(idl_type),
141 'idl_type': idl_type
    [all...]
v8_attributes.py 45 idl_type = attribute.idl_type
48 v8_types.add_includes_for_type(idl_type)
65 if (idl_type == 'EventHandler' and
76 'constructor_type': v8_types.constructor_type(idl_type)
79 'cpp_type': v8_types.cpp_type(idl_type),
82 v8_utilities.enum_validation_expression(idl_type),
87 v8_types.is_interface_type(idl_type)),
88 'idl_type': idl_type,
    [all...]
idl_definitions.py 73 idl_type = None variable in class:TypedObject
80 if not self.idl_type:
84 idl_type_object = IdlType.from_string(self.idl_type)
88 self.idl_type = str(idl_type_object)
140 def __init__(self, name=None, idl_type=None, arguments=None):
141 self.idl_type = idl_type
154 'callbackFunction::type': self.idl_type,
247 def __init__(self, idl_type=None, extended_attributes=None, getter_exceptions=None, is_nullable=False, is_static=False, is_read_only=False, name=None, setter_exceptions=None):
248 self.idl_type = idl_typ
    [all...]
idl_definitions_builder.py 124 idl_type = None
135 idl_type = type_node_to_type(child)
142 return IdlAttribute(idl_type=idl_type, extended_attributes=extended_attributes, is_nullable=is_nullable, is_read_only=is_read_only, is_static=is_static, name=name)
156 idl_type = type_node_inner_to_type(type_node)
169 return IdlConstant(idl_type=idl_type, extended_attributes=extended_attributes, name=name, value=value)
200 return IdlOperation(name=name, idl_type=return_type, extended_attributes=extended_attributes, is_static=is_static, arguments=arguments, specials=specials)
220 idl_type = None
231 idl_type = type_node_to_type(child
    [all...]
v8_interface.py 110 if attribute.idl_type == 'any']
206 if constant.idl_type == 'DOMString':
315 idl_type = argument['idl_type']
317 if idl_type == 'DOMString' and argument['is_strict_type_checking']:
322 if v8_types.array_or_sequence_type(idl_type):
324 if v8_types.is_wrapper_type(idl_type):
325 type_check = 'V8{idl_type}::hasInstance({cpp_value}, info.GetIsolate(), worldType(info.GetIsolate()))'.format(idl_type=idl_type, cpp_value=cpp_value
    [all...]
v8_utilities.py 93 def enum_validation_expression(idl_type):
94 if not v8_types.is_enum_type(idl_type):
97 for enum_value in v8_types.enum_values(idl_type)])
  /external/chromium_org/third_party/WebKit/Source/bindings/templates/
methods.cpp 80 argument.idl_type != 'Dictionary' %}
92 if (info.Length() > {{argument.index}} && !isUndefinedOrNull(info[{{argument.index}}]) && !V8{{argument.idl_type}}::hasInstance(info[{{argument.index}}], info.GetIsolate(), worldType(info.GetIsolate()))) {
94 (argument.index + 1, argument.idl_type))}}
105 {{argument.name}} = clampTo<{{argument.idl_type}}>({{argument.name}}NativeValue);
106 {% elif argument.idl_type == 'SerializedScriptValue' %}
115 if (!V8{{argument.idl_type}}::hasInstance(info[i], info.GetIsolate(), worldType(info.GetIsolate()))) {
117 (argument.index + 1, argument.idl_type))}}
120 {{argument.name}}.append(V8{{argument.idl_type}}::toNative(v8::Handle<v8::Object>::Cast(info[i])));
135 {% if argument.idl_type in ['Dictionary', 'Promise'] %}
159 {% if method.idl_type == 'void' %
    [all...]
attributes.cpp 58 {% elif attribute.idl_type == 'EventHandler' or
134 if (!isUndefinedOrNull(jsValue) && !V8{{attribute.idl_type}}::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate()))) {
135 exceptionState.throwTypeError("The provided value is not of type '{{attribute.idl_type}}'.");
143 {% if attribute.idl_type == 'EventHandler' and interface_name == 'Window' %}
147 {% if attribute.idl_type != 'EventHandler' %}

Completed in 338 milliseconds