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

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: Other extended attribute combinations 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
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 {% endif %} 88 {% endif %}
89 {{attribute_setter_callback(attribute, world_suffix)}} 89 {{attribute_setter_callback(attribute, world_suffix)}}
90 {% endif %} 90 {% endif %}
91 {% endfor %} 91 {% endfor %}
92 {% endfor %} 92 {% endfor %}
93 {% block constructor_getter %}{% endblock %} 93 {% block constructor_getter %}{% endblock %}
94 {% block replaceable_attribute_setter_and_callback %}{% endblock %} 94 {% block replaceable_attribute_setter_and_callback %}{% endblock %}
95 {% block security_check_functions %}{% endblock %} 95 {% block security_check_functions %}{% endblock %}
96 {# Methods #} 96 {# Methods #}
97 {% from 'methods.cpp' import generate_method, overload_resolution_method, 97 {% from 'methods.cpp' import generate_method, overload_resolution_method,
98 method_callback with context %} 98 method_callback, domain_safe_method_getter with context %}
99 {% for method in methods %} 99 {% for method in methods %}
100 {% for world_suffix in method.world_suffixes %} 100 {% for world_suffix in method.world_suffixes %}
101 {% if not method.is_custom %} 101 {% if not method.is_custom %}
102 {{generate_method(method, world_suffix)}} 102 {{generate_method(method, world_suffix)}}
103 {% endif %} 103 {% endif %}
104 {% if method.overloads %} 104 {% if method.overloads %}
105 {{overload_resolution_method(method.overloads, world_suffix)}} 105 {{overload_resolution_method(method.overloads, world_suffix)}}
106 {% endif %} 106 {% endif %}
107 {% if not method.overload_index or method.overloads %} 107 {% if not method.overload_index or method.overloads %}
108 {# A single callback is generated for overloaded methods #} 108 {# A single callback is generated for overloaded methods #}
109 {{method_callback(method, world_suffix)}} 109 {{method_callback(method, world_suffix)}}
110 {% endif %} 110 {% endif %}
111 {% if method.is_do_not_check_security %}
112 {{domain_safe_method_getter(method, world_suffix)}}
113 {% endif %}
111 {% endfor %} 114 {% endfor %}
112 {% endfor %} 115 {% endfor %}
116 {% block domain_safe_method_setter %}{% endblock %}
113 } // namespace {{cpp_class_name}}V8Internal 117 } // namespace {{cpp_class_name}}V8Internal
114 118
115 {% block class_attributes %}{% endblock %} 119 {% block class_attributes %}{% endblock %}
116 {% block class_accessors %}{% endblock %} 120 {% block class_accessors %}{% endblock %}
117 {% block class_methods %}{% endblock %} 121 {% block class_methods %}{% endblock %}
118 {% block configure_class_template %}{% endblock %} 122 {% block configure_class_template %}{% endblock %}
119 {% block get_template %}{% endblock %} 123 {% block get_template %}{% endblock %}
120 {% block has_instance_and_has_instance_in_any_world %}{% endblock %} 124 {% block has_instance_and_has_instance_in_any_world %}{% endblock %}
121 {% block install_per_context_attributes %}{% endblock %} 125 {% block install_per_context_attributes %}{% endblock %}
122 {% block install_per_context_methods %}{% endblock %} 126 {% block install_per_context_methods %}{% endblock %}
123 {% block to_active_dom_object %}{% endblock %} 127 {% block to_active_dom_object %}{% endblock %}
124 {% block create_wrapper_and_deref_object %}{% endblock %} 128 {% block create_wrapper_and_deref_object %}{% endblock %}
125 } // namespace WebCore 129 } // namespace WebCore
126 {% if conditional_string %} 130 {% if conditional_string %}
127 131
128 #endif // {{conditional_string}} 132 #endif // {{conditional_string}}
129 {% endif %} 133 {% endif %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698