| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 return set() | 70 return set() |
| 71 activity_logging = member.extended_attributes['ActivityLogging'] | 71 activity_logging = member.extended_attributes['ActivityLogging'] |
| 72 # [ActivityLogging=For*] (no prefix, starts with the worlds suffix) means | 72 # [ActivityLogging=For*] (no prefix, starts with the worlds suffix) means |
| 73 # "log for all use (method)/access (attribute)", otherwise check that value | 73 # "log for all use (method)/access (attribute)", otherwise check that value |
| 74 # agrees with specified access_type (Getter/Setter). | 74 # agrees with specified access_type (Getter/Setter). |
| 75 has_logging = (activity_logging.startswith('For') or | 75 has_logging = (activity_logging.startswith('For') or |
| 76 (access_type and activity_logging.startswith(access_type))) | 76 (access_type and activity_logging.startswith(access_type))) |
| 77 if not has_logging: | 77 if not has_logging: |
| 78 return set() | 78 return set() |
| 79 # TODO(terry): Remove Me? | 79 # TODO(terry): Remove Me? |
| 80 # includes.add('bindings/v8/V8DOMActivityLogger.h') | 80 # includes.add('bindings/core/v8/V8DOMActivityLogger.h') |
| 81 if activity_logging.endswith('ForIsolatedWorlds'): | 81 if activity_logging.endswith('ForIsolatedWorlds'): |
| 82 return set(['']) | 82 return set(['']) |
| 83 return set(['', 'ForMainWorld']) # endswith('ForAllWorlds') | 83 return set(['', 'ForMainWorld']) # endswith('ForAllWorlds') |
| 84 | 84 |
| 85 | 85 |
| 86 # [CallWith] | 86 # [CallWith] |
| 87 _CALL_WITH_ARGUMENTS = { | 87 _CALL_WITH_ARGUMENTS = { |
| 88 'ScriptState': '&state', | 88 'ScriptState': 'state', |
| 89 'ExecutionContext': 'context', | 89 'ExecutionContext': 'context', |
| 90 'ScriptArguments': 'scriptArguments.release()', | 90 'ScriptArguments': 'scriptArguments.release()', |
| 91 'ActiveWindow': 'DartUtilities::callingDomWindowForCurrentIsolate()', | 91 'ActiveWindow': 'DartUtilities::callingDomWindowForCurrentIsolate()', |
| 92 'FirstWindow': 'DartUtilities::enteredDomWindowForCurrentIsolate()', | 92 'FirstWindow': 'DartUtilities::enteredDomWindowForCurrentIsolate()', |
| 93 } | 93 } |
| 94 | 94 |
| 95 # List because key order matters, as we want arguments in deterministic order | 95 # List because key order matters, as we want arguments in deterministic order |
| 96 _CALL_WITH_VALUES = [ | 96 _CALL_WITH_VALUES = [ |
| 97 'ScriptState', | 97 'ScriptState', |
| 98 'ExecutionContext', | 98 'ExecutionContext', |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 DartUtilities.generate_native_entry = _generate_native_entry | 188 DartUtilities.generate_native_entry = _generate_native_entry |
| 189 DartUtilities.has_extended_attribute = v8_utilities.has_extended_attribute | 189 DartUtilities.has_extended_attribute = v8_utilities.has_extended_attribute |
| 190 DartUtilities.has_extended_attribute_value = v8_utilities.has_extended_attribute
_value | 190 DartUtilities.has_extended_attribute_value = v8_utilities.has_extended_attribute
_value |
| 191 DartUtilities.measure_as = _measure_as | 191 DartUtilities.measure_as = _measure_as |
| 192 DartUtilities.per_context_enabled_function_name = v8_utilities.per_context_enabl
ed_function_name | 192 DartUtilities.per_context_enabled_function_name = v8_utilities.per_context_enabl
ed_function_name |
| 193 DartUtilities.runtime_enabled_function_name = v8_utilities.runtime_enabled_funct
ion_name | 193 DartUtilities.runtime_enabled_function_name = v8_utilities.runtime_enabled_funct
ion_name |
| 194 DartUtilities.scoped_name = _scoped_name | 194 DartUtilities.scoped_name = _scoped_name |
| 195 DartUtilities.strip_suffix = v8_utilities.strip_suffix | 195 DartUtilities.strip_suffix = v8_utilities.strip_suffix |
| 196 DartUtilities.uncapitalize = v8_utilities.uncapitalize | 196 DartUtilities.uncapitalize = v8_utilities.uncapitalize |
| 197 DartUtilities.v8_class_name = v8_utilities.v8_class_name | 197 DartUtilities.v8_class_name = v8_utilities.v8_class_name |
| OLD | NEW |