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

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

Issue 2848243004: Clean up bindings/core/v8 (Part 2) (Closed)
Patch Set: Rebase Created 3 years, 7 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 'not be specified on the same definition: %s' 423 'not be specified on the same definition: %s'
424 % definition_or_member.name) 424 % definition_or_member.name)
425 425
426 if is_feature_policy_enabled and 'SecureContext' in extended_attributes: 426 if is_feature_policy_enabled and 'SecureContext' in extended_attributes:
427 raise Exception('[FeaturePolicy] and [SecureContext] must ' 427 raise Exception('[FeaturePolicy] and [SecureContext] must '
428 'not be specified on the same definition ' 428 'not be specified on the same definition '
429 '(see https://crbug.com/695123 for workaround): %s' 429 '(see https://crbug.com/695123 for workaround): %s'
430 % definition_or_member.name) 430 % definition_or_member.name)
431 431
432 if is_feature_policy_enabled: 432 if is_feature_policy_enabled:
433 includes.add('bindings/core/v8/ScriptState.h') 433 includes.add('platform/bindings/ScriptState.h')
434 includes.add('platform/feature_policy/FeaturePolicy.h') 434 includes.add('platform/feature_policy/FeaturePolicy.h')
435 435
436 trial_name = extended_attributes['FeaturePolicy'] 436 trial_name = extended_attributes['FeaturePolicy']
437 return 'FeaturePolicy::%sEnabled' % uncapitalize(trial_name) 437 return 'FeaturePolicy::%sEnabled' % uncapitalize(trial_name)
438 438
439 return None 439 return None
440 440
441 441
442 def origin_trial_feature_name(definition_or_member): 442 def origin_trial_feature_name(definition_or_member):
443 extended_attributes = definition_or_member.extended_attributes 443 extended_attributes = definition_or_member.extended_attributes
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 return None 658 return None
659 659
660 660
661 IdlInterface.legacy_caller = property(legacy_caller) 661 IdlInterface.legacy_caller = property(legacy_caller)
662 IdlInterface.indexed_property_getter = property(indexed_property_getter) 662 IdlInterface.indexed_property_getter = property(indexed_property_getter)
663 IdlInterface.indexed_property_setter = property(indexed_property_setter) 663 IdlInterface.indexed_property_setter = property(indexed_property_setter)
664 IdlInterface.indexed_property_deleter = property(indexed_property_deleter) 664 IdlInterface.indexed_property_deleter = property(indexed_property_deleter)
665 IdlInterface.named_property_getter = property(named_property_getter) 665 IdlInterface.named_property_getter = property(named_property_getter)
666 IdlInterface.named_property_setter = property(named_property_setter) 666 IdlInterface.named_property_setter = property(named_property_setter)
667 IdlInterface.named_property_deleter = property(named_property_deleter) 667 IdlInterface.named_property_deleter = property(named_property_deleter)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698