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

Side by Side Diff: Source/bindings/templates/interface_base.cpp

Issue 77453002: IDL compiler: [CheckSecurity=Frame] interface + [DoNotCheckSecurity] members (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revised Created 7 years, 1 month 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/templates/interface.cpp ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {# http://www.chromium.org/blink/coding-style#TOC-License #} 1 {# http://www.chromium.org/blink/coding-style#TOC-License #}
2 /* 2 /*
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 {% endif %} 89 {% endif %}
90 {{attribute_setter_callback(attribute, world_suffix)}} 90 {{attribute_setter_callback(attribute, world_suffix)}}
91 {% endif %} 91 {% endif %}
92 {% endfor %} 92 {% endfor %}
93 {% endfor %} 93 {% endfor %}
94 {% block constructor_getter %}{% endblock %} 94 {% block constructor_getter %}{% endblock %}
95 {% block replaceable_attribute_setter_and_callback %}{% endblock %} 95 {% block replaceable_attribute_setter_and_callback %}{% endblock %}
96 {% block security_check_functions %}{% endblock %} 96 {% block security_check_functions %}{% endblock %}
97 {# Methods #} 97 {# Methods #}
98 {% from 'methods.cpp' import generate_method, overload_resolution_method, 98 {% from 'methods.cpp' import generate_method, overload_resolution_method,
99 method_callback with context %} 99 method_callback, origin_safe_method_getter with context %}
100 {% for method in methods %} 100 {% for method in methods %}
101 {% for world_suffix in method.world_suffixes %} 101 {% for world_suffix in method.world_suffixes %}
102 {% if not method.is_custom %} 102 {% if not method.is_custom %}
103 {{generate_method(method, world_suffix)}} 103 {{generate_method(method, world_suffix)}}
104 {% endif %} 104 {% endif %}
105 {% if method.overloads %} 105 {% if method.overloads %}
106 {{overload_resolution_method(method.overloads, world_suffix)}} 106 {{overload_resolution_method(method.overloads, world_suffix)}}
107 {% endif %} 107 {% endif %}
108 {% if not method.overload_index or method.overloads %} 108 {% if not method.overload_index or method.overloads %}
109 {# A single callback is generated for overloaded methods #} 109 {# A single callback is generated for overloaded methods #}
110 {{method_callback(method, world_suffix)}} 110 {{method_callback(method, world_suffix)}}
111 {% endif %} 111 {% endif %}
112 {% if method.is_do_not_check_security %}
113 {{origin_safe_method_getter(method, world_suffix)}}
114 {% endif %}
112 {% endfor %} 115 {% endfor %}
113 {% endfor %} 116 {% endfor %}
117 {% block origin_safe_method_setter %}{% endblock %}
114 } // namespace {{cpp_class_name}}V8Internal 118 } // namespace {{cpp_class_name}}V8Internal
115 119
116 {% block class_attributes %}{% endblock %} 120 {% block class_attributes %}{% endblock %}
117 {% block class_accessors %}{% endblock %} 121 {% block class_accessors %}{% endblock %}
118 {% block class_methods %}{% endblock %} 122 {% block class_methods %}{% endblock %}
119 {% block configure_class_template %}{% endblock %} 123 {% block configure_class_template %}{% endblock %}
120 {% block get_template %}{% endblock %} 124 {% block get_template %}{% endblock %}
121 {% block has_instance_and_has_instance_in_any_world %}{% endblock %} 125 {% block has_instance_and_has_instance_in_any_world %}{% endblock %}
122 {% block install_per_context_attributes %}{% endblock %} 126 {% block install_per_context_attributes %}{% endblock %}
123 {% block install_per_context_methods %}{% endblock %} 127 {% block install_per_context_methods %}{% endblock %}
124 {% block to_active_dom_object %}{% endblock %} 128 {% block to_active_dom_object %}{% endblock %}
125 {% block create_wrapper_and_deref_object %}{% endblock %} 129 {% block create_wrapper_and_deref_object %}{% endblock %}
126 } // namespace WebCore 130 } // namespace WebCore
127 {% endfilter %} 131 {% endfilter %}
OLDNEW
« no previous file with comments | « Source/bindings/templates/interface.cpp ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698