| OLD | NEW |
| 1 # Copyright (C) 2013 Google Inc. All rights reserved. | 1 # Copyright (C) 2013 Google Inc. All rights reserved. |
| 2 # | 2 # |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 return [item for item in items if | 128 return [item for item in items if |
| 129 item['origin_trial_feature_name'] == feature_name and | 129 item['origin_trial_feature_name'] == feature_name and |
| 130 not item.get('exposed_test')] | 130 not item.get('exposed_test')] |
| 131 | 131 |
| 132 | 132 |
| 133 ################################################################################ | 133 ################################################################################ |
| 134 # C++ | 134 # C++ |
| 135 ################################################################################ | 135 ################################################################################ |
| 136 | 136 |
| 137 def scoped_name(interface, definition, base_name): | 137 def scoped_name(interface, definition, base_name): |
| 138 if 'ImplementedInPrivateScript' in definition.extended_attributes: | |
| 139 return '%s::PrivateScript::%s' % (v8_class_name(interface), base_name) | |
| 140 # partial interfaces are implemented as separate classes, with their members | 138 # partial interfaces are implemented as separate classes, with their members |
| 141 # implemented as static member functions | 139 # implemented as static member functions |
| 142 partial_interface_implemented_as = definition.extended_attributes.get('Parti
alInterfaceImplementedAs') | 140 partial_interface_implemented_as = definition.extended_attributes.get('Parti
alInterfaceImplementedAs') |
| 143 if partial_interface_implemented_as: | 141 if partial_interface_implemented_as: |
| 144 return '%s::%s' % (partial_interface_implemented_as, base_name) | 142 return '%s::%s' % (partial_interface_implemented_as, base_name) |
| 145 if (definition.is_static or | 143 if (definition.is_static or |
| 146 definition.name in ('Constructor', 'NamedConstructor')): | 144 definition.name in ('Constructor', 'NamedConstructor')): |
| 147 return '%s::%s' % (cpp_name(interface), base_name) | 145 return '%s::%s' % (cpp_name(interface), base_name) |
| 148 return 'impl->%s' % base_name | 146 return 'impl->%s' % base_name |
| 149 | 147 |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 return None | 666 return None |
| 669 | 667 |
| 670 | 668 |
| 671 IdlInterface.legacy_caller = property(legacy_caller) | 669 IdlInterface.legacy_caller = property(legacy_caller) |
| 672 IdlInterface.indexed_property_getter = property(indexed_property_getter) | 670 IdlInterface.indexed_property_getter = property(indexed_property_getter) |
| 673 IdlInterface.indexed_property_setter = property(indexed_property_setter) | 671 IdlInterface.indexed_property_setter = property(indexed_property_setter) |
| 674 IdlInterface.indexed_property_deleter = property(indexed_property_deleter) | 672 IdlInterface.indexed_property_deleter = property(indexed_property_deleter) |
| 675 IdlInterface.named_property_getter = property(named_property_getter) | 673 IdlInterface.named_property_getter = property(named_property_getter) |
| 676 IdlInterface.named_property_setter = property(named_property_setter) | 674 IdlInterface.named_property_setter = property(named_property_setter) |
| 677 IdlInterface.named_property_deleter = property(named_property_deleter) | 675 IdlInterface.named_property_deleter = property(named_property_deleter) |
| OLD | NEW |