| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 return set() | 141 return set() |
| 142 | 142 |
| 143 includes.add('bindings/v8/V8DOMActivityLogger.h') | 143 includes.add('bindings/v8/V8DOMActivityLogger.h') |
| 144 if 'LogAllWorlds' in extended_attributes: | 144 if 'LogAllWorlds' in extended_attributes: |
| 145 return set(['', 'ForMainWorld']) | 145 return set(['', 'ForMainWorld']) |
| 146 return set(['']) # At minimum, include isolated worlds. | 146 return set(['']) # At minimum, include isolated worlds. |
| 147 | 147 |
| 148 | 148 |
| 149 # [CallWith] | 149 # [CallWith] |
| 150 CALL_WITH_ARGUMENTS = { | 150 CALL_WITH_ARGUMENTS = { |
| 151 'ScriptState': 'state', | 151 'ScriptState': 'scriptState', |
| 152 'ExecutionContext': 'scriptContext', | 152 'ExecutionContext': 'scriptContext', |
| 153 'ScriptArguments': 'scriptArguments.release()', | 153 'ScriptArguments': 'scriptArguments.release()', |
| 154 'ActiveWindow': 'callingDOMWindow(info.GetIsolate())', | 154 'ActiveWindow': 'callingDOMWindow(info.GetIsolate())', |
| 155 'FirstWindow': 'enteredDOMWindow(info.GetIsolate())', | 155 'FirstWindow': 'enteredDOMWindow(info.GetIsolate())', |
| 156 } | 156 } |
| 157 # List because key order matters, as we want arguments in deterministic order | 157 # List because key order matters, as we want arguments in deterministic order |
| 158 CALL_WITH_VALUES = [ | 158 CALL_WITH_VALUES = [ |
| 159 'ScriptState', | 159 'ScriptState', |
| 160 'ExecutionContext', | 160 'ExecutionContext', |
| 161 'ScriptArguments', | 161 'ScriptArguments', |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 239 |
| 240 The returned function checks if a method/attribute is enabled. | 240 The returned function checks if a method/attribute is enabled. |
| 241 Given extended attribute RuntimeEnabled=FeatureName, return: | 241 Given extended attribute RuntimeEnabled=FeatureName, return: |
| 242 RuntimeEnabledFeatures::{featureName}Enabled | 242 RuntimeEnabledFeatures::{featureName}Enabled |
| 243 """ | 243 """ |
| 244 extended_attributes = definition_or_member.extended_attributes | 244 extended_attributes = definition_or_member.extended_attributes |
| 245 if 'RuntimeEnabled' not in extended_attributes: | 245 if 'RuntimeEnabled' not in extended_attributes: |
| 246 return None | 246 return None |
| 247 feature_name = extended_attributes['RuntimeEnabled'] | 247 feature_name = extended_attributes['RuntimeEnabled'] |
| 248 return 'RuntimeEnabledFeatures::%sEnabled' % uncapitalize(feature_name) | 248 return 'RuntimeEnabledFeatures::%sEnabled' % uncapitalize(feature_name) |
| OLD | NEW |