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

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

Issue 145773004: IDL compiler: [ReflectOnly] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/attributes.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/unstable/v8_attributes.py
diff --git a/Source/bindings/scripts/unstable/v8_attributes.py b/Source/bindings/scripts/unstable/v8_attributes.py
index f70bf1a274c6a3a9c3f2f99a3b52175a93f1ec5e..37264b92c58661c0c9ac227121f1b407267badef 100644
--- a/Source/bindings/scripts/unstable/v8_attributes.py
+++ b/Source/bindings/scripts/unstable/v8_attributes.py
@@ -122,6 +122,8 @@ def generate_attribute(interface, attribute):
'per_context_enabled_function': v8_utilities.per_context_enabled_function_name(attribute), # [PerContextEnabled]
'property_attributes': property_attributes(attribute),
'put_forwards': 'PutForwards' in extended_attributes,
+ 'reflect_only': extended_attributes['ReflectOnly'].split('|')
+ if 'ReflectOnly' in extended_attributes else None, # [ReflectOnly]
'setter_callback': setter_callback_name(interface, attribute),
'v8_type': v8_types.v8_type(idl_type),
'runtime_enabled_function': v8_utilities.runtime_enabled_function_name(attribute), # [RuntimeEnabled]
@@ -167,6 +169,11 @@ def generate_getter(interface, attribute, contents):
if idl_type != 'EventHandler' and v8_types.is_interface_type(idl_type):
release = True
+ if 'ReflectOnly' in extended_attributes:
+ contents['cpp_value_original'] = cpp_value
+ # FIXME: rename to jsValue
+ cpp_value = 'resultValue'
Nils Barth (inactive) 2014/02/05 06:11:42 The local variable is called 'resultValue', which
+
def v8_set_return_value_statement(for_main_world=False):
if contents['is_keep_alive_for_gc']:
return 'v8SetReturnValue(info, wrapper)'
« no previous file with comments | « no previous file | Source/bindings/templates/attributes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698