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

Side by Side Diff: third_party/WebKit/Source/bindings/scripts/v8_utilities.py

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 if e.exposed not in EXPOSED_EXECUTION_CONTEXT_METHOD: 316 if e.exposed not in EXPOSED_EXECUTION_CONTEXT_METHOD:
317 raise ValueError('Invalid execution context: %s' % e.exposed) 317 raise ValueError('Invalid execution context: %s' % e.exposed)
318 318
319 # Methods must not be exposed to a broader scope than their interface. 319 # Methods must not be exposed to a broader scope than their interface.
320 if not exposure_set.issubset(interface_exposure_set): 320 if not exposure_set.issubset(interface_exposure_set):
321 raise ValueError('Interface members\' exposure sets must be a subset of the interface\'s.') 321 raise ValueError('Interface members\' exposure sets must be a subset of the interface\'s.')
322 322
323 return exposure_set.code() 323 return exposure_set.code()
324 324
325 325
326 # [GarbageCollected], [WillBeGarbageCollected] 326 # [GarbageCollected], [GarbageCollected]
sof 2016/02/09 15:45:45 More duplication.
327 def gc_type(definition): 327 def gc_type(definition):
328 extended_attributes = definition.extended_attributes 328 extended_attributes = definition.extended_attributes
329 if 'GarbageCollected' in extended_attributes: 329 if 'GarbageCollected' in extended_attributes:
330 return 'GarbageCollectedObject' 330 return 'GarbageCollectedObject'
331 elif 'WillBeGarbageCollected' in extended_attributes: 331 elif 'GarbageCollected' in extended_attributes:
332 return 'WillBeGarbageCollectedObject' 332 return 'WillBeGarbageCollectedObject'
333 return 'RefCountedObject' 333 return 'RefCountedObject'
334 334
335 335
336 # [ImplementedAs] 336 # [ImplementedAs]
337 def cpp_name(definition_or_member): 337 def cpp_name(definition_or_member):
338 extended_attributes = definition_or_member.extended_attributes 338 extended_attributes = definition_or_member.extended_attributes
339 if 'ImplementedAs' not in extended_attributes: 339 if 'ImplementedAs' not in extended_attributes:
340 return definition_or_member.name 340 return definition_or_member.name
341 return extended_attributes['ImplementedAs'] 341 return extended_attributes['ImplementedAs']
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 except StopIteration: 594 except StopIteration:
595 return None 595 return None
596 596
597 597
598 IdlInterface.indexed_property_getter = property(indexed_property_getter) 598 IdlInterface.indexed_property_getter = property(indexed_property_getter)
599 IdlInterface.indexed_property_setter = property(indexed_property_setter) 599 IdlInterface.indexed_property_setter = property(indexed_property_setter)
600 IdlInterface.indexed_property_deleter = property(indexed_property_deleter) 600 IdlInterface.indexed_property_deleter = property(indexed_property_deleter)
601 IdlInterface.named_property_getter = property(named_property_getter) 601 IdlInterface.named_property_getter = property(named_property_getter)
602 IdlInterface.named_property_setter = property(named_property_setter) 602 IdlInterface.named_property_setter = property(named_property_setter)
603 IdlInterface.named_property_deleter = property(named_property_deleter) 603 IdlInterface.named_property_deleter = property(named_property_deleter)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698