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

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

Issue 1635593004: Rename Experimental Framework classes and concepts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 if is_post_message: 112 if is_post_message:
113 includes.add('bindings/core/v8/SerializedScriptValueFactory.h') 113 includes.add('bindings/core/v8/SerializedScriptValueFactory.h')
114 includes.add('core/dom/DOMArrayBuffer.h') 114 includes.add('core/dom/DOMArrayBuffer.h')
115 includes.add('core/dom/MessagePort.h') 115 includes.add('core/dom/MessagePort.h')
116 includes.add('core/frame/ImageBitmap.h') 116 includes.add('core/frame/ImageBitmap.h')
117 117
118 if 'LenientThis' in extended_attributes: 118 if 'LenientThis' in extended_attributes:
119 raise Exception('[LenientThis] is not supported for operations.') 119 raise Exception('[LenientThis] is not supported for operations.')
120 120
121 if 'APIExperimentEnabled' in extended_attributes: 121 if 'APIExperimentEnabled' in extended_attributes:
122 includes.add('core/experiments/ExperimentalFeatures.h')
123 includes.add('core/inspector/ConsoleMessage.h') 122 includes.add('core/inspector/ConsoleMessage.h')
123 includes.add('core/origin_trials/OriginTrials.h')
124 124
125 argument_contexts = [ 125 argument_contexts = [
126 argument_context(interface, method, argument, index, is_visible=is_visib le) 126 argument_context(interface, method, argument, index, is_visible=is_visib le)
127 for index, argument in enumerate(arguments)] 127 for index, argument in enumerate(arguments)]
128 128
129 return { 129 return {
130 'activity_logging_world_list': v8_utilities.activity_logging_world_list( method), # [ActivityLogging] 130 'activity_logging_world_list': v8_utilities.activity_logging_world_list( method), # [ActivityLogging]
131 'api_experiment_enabled': v8_utilities.api_experiment_enabled_function(m ethod), # [APIExperimentEnabled] 131 'api_experiment_enabled': v8_utilities.api_experiment_enabled_function(m ethod), # [APIExperimentEnabled]
132 'api_experiment_enabled_per_interface': v8_utilities.api_experiment_enab led_function(interface), # [APIExperimentEnabled] 132 'api_experiment_enabled_per_interface': v8_utilities.api_experiment_enab led_function(interface), # [APIExperimentEnabled]
133 'arguments': argument_contexts, 133 'arguments': argument_contexts,
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 return method.idl_type and method.idl_type.name == 'Promise' 479 return method.idl_type and method.idl_type.name == 'Promise'
480 480
481 IdlOperation.returns_promise = property(method_returns_promise) 481 IdlOperation.returns_promise = property(method_returns_promise)
482 482
483 483
484 def argument_conversion_needs_exception_state(method, argument): 484 def argument_conversion_needs_exception_state(method, argument):
485 idl_type = argument.idl_type 485 idl_type = argument.idl_type
486 return (idl_type.v8_conversion_needs_exception_state or 486 return (idl_type.v8_conversion_needs_exception_state or
487 argument.is_variadic or 487 argument.is_variadic or
488 (method.returns_promise and idl_type.is_string_type)) 488 (method.returns_promise and idl_type.is_string_type))
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/scripts/v8_interface.py ('k') | third_party/WebKit/Source/bindings/scripts/v8_utilities.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698