| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 142 |
| 143 access_type can be 'Getter' or 'Setter' if only checking getting or setting. | 143 access_type can be 'Getter' or 'Setter' if only checking getting or setting. |
| 144 """ | 144 """ |
| 145 extended_attributes = member.extended_attributes | 145 extended_attributes = member.extended_attributes |
| 146 if 'LogActivity' not in extended_attributes: | 146 if 'LogActivity' not in extended_attributes: |
| 147 return set() | 147 return set() |
| 148 log_activity = extended_attributes['LogActivity'] | 148 log_activity = extended_attributes['LogActivity'] |
| 149 if log_activity and not log_activity.startswith(access_type): | 149 if log_activity and not log_activity.startswith(access_type): |
| 150 return set() | 150 return set() |
| 151 | 151 |
| 152 includes.add('bindings/v8/V8DOMActivityLogger.h') | 152 includes.add('bindings/core/v8/V8DOMActivityLogger.h') |
| 153 if 'LogAllWorlds' in extended_attributes: | 153 if 'LogAllWorlds' in extended_attributes: |
| 154 return set(['', 'ForMainWorld']) | 154 return set(['', 'ForMainWorld']) |
| 155 return set(['']) # At minimum, include isolated worlds. | 155 return set(['']) # At minimum, include isolated worlds. |
| 156 | 156 |
| 157 | 157 |
| 158 # [ActivityLogging] | 158 # [ActivityLogging] |
| 159 def activity_logging_world_check(member): | 159 def activity_logging_world_check(member): |
| 160 """Returns if an isolated world check is required when generating activity | 160 """Returns if an isolated world check is required when generating activity |
| 161 logging code. | 161 logging code. |
| 162 | 162 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 265 |
| 266 The returned function checks if a method/attribute is enabled. | 266 The returned function checks if a method/attribute is enabled. |
| 267 Given extended attribute RuntimeEnabled=FeatureName, return: | 267 Given extended attribute RuntimeEnabled=FeatureName, return: |
| 268 RuntimeEnabledFeatures::{featureName}Enabled | 268 RuntimeEnabledFeatures::{featureName}Enabled |
| 269 """ | 269 """ |
| 270 extended_attributes = definition_or_member.extended_attributes | 270 extended_attributes = definition_or_member.extended_attributes |
| 271 if 'RuntimeEnabled' not in extended_attributes: | 271 if 'RuntimeEnabled' not in extended_attributes: |
| 272 return None | 272 return None |
| 273 feature_name = extended_attributes['RuntimeEnabled'] | 273 feature_name = extended_attributes['RuntimeEnabled'] |
| 274 return 'RuntimeEnabledFeatures::%sEnabled' % uncapitalize(feature_name) | 274 return 'RuntimeEnabledFeatures::%sEnabled' % uncapitalize(feature_name) |
| OLD | NEW |