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

Side by Side Diff: Source/bindings/scripts/v8_private_script_interface.py

Issue 351423002: Moved files under Source/bindings/v8 to Source/bindings/core/v8. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/scripts/v8_methods.py ('k') | Source/bindings/scripts/v8_types.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Generate template values for V8PrivateScriptInterface. 5 """Generate template values for V8PrivateScriptInterface.
6 6
7 Blink-in-JS design doc: https://docs.google.com/a/google.com/document/d/13cT9Klg vt_ciAR3ONGvzKvw6fz9-f6E0FrqYFqfoc8Y/edit 7 Blink-in-JS design doc: https://docs.google.com/a/google.com/document/d/13cT9Klg vt_ciAR3ONGvzKvw6fz9-f6E0FrqYFqfoc8Y/edit
8 """ 8 """
9 9
10 from idl_types import IdlType 10 from idl_types import IdlType
11 from v8_globals import includes 11 from v8_globals import includes
12 import v8_types 12 import v8_types
13 import v8_utilities 13 import v8_utilities
14 14
15 BLINK_IN_JS_INTERFACE_H_INCLUDES = frozenset([ 15 BLINK_IN_JS_INTERFACE_H_INCLUDES = frozenset([
16 'bindings/v8/V8Binding.h', 16 'bindings/core/v8/V8Binding.h',
17 ]) 17 ])
18 18
19 BLINK_IN_JS_INTERFACE_CPP_INCLUDES = frozenset([ 19 BLINK_IN_JS_INTERFACE_CPP_INCLUDES = frozenset([
20 'bindings/core/v8/PrivateScriptRunner.h',
20 'bindings/core/v8/V8Window.h', 21 'bindings/core/v8/V8Window.h',
21 'bindings/v8/PrivateScriptRunner.h',
22 'core/dom/ScriptForbiddenScope.h', 22 'core/dom/ScriptForbiddenScope.h',
23 'core/frame/LocalFrame.h', 23 'core/frame/LocalFrame.h',
24 ]) 24 ])
25 25
26 26
27 def private_script_interface_context(private_script_interface): 27 def private_script_interface_context(private_script_interface):
28 includes.clear() 28 includes.clear()
29 includes.update(BLINK_IN_JS_INTERFACE_CPP_INCLUDES) 29 includes.update(BLINK_IN_JS_INTERFACE_CPP_INCLUDES)
30 return { 30 return {
31 'cpp_class': private_script_interface.name, 31 'cpp_class': private_script_interface.name,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 argument_declarations = ['LocalFrame* frame'] 75 argument_declarations = ['LocalFrame* frame']
76 argument_declarations.extend(['%s %s' % (argument.idl_type.cpp_type_args( 76 argument_declarations.extend(['%s %s' % (argument.idl_type.cpp_type_args(
77 used_as_argument=True), argument.name) for argument in arguments]) 77 used_as_argument=True), argument.name) for argument in arguments])
78 if idl_type.name != 'void': 78 if idl_type.name != 'void':
79 argument_declarations.append('%s* %s' % (idl_type.cpp_type, 'output')) 79 argument_declarations.append('%s* %s' % (idl_type.cpp_type, 'output'))
80 return { 80 return {
81 'argument_declarations': argument_declarations, 81 'argument_declarations': argument_declarations,
82 'arguments': [argument_context(argument) for argument in arguments], 82 'arguments': [argument_context(argument) for argument in arguments],
83 } 83 }
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_methods.py ('k') | Source/bindings/scripts/v8_types.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698