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

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

Issue 398673003: Rename WebCore namespace to blink in bindings and web (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
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 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! 5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 {% filter conditional(conditional_string) %} 8 {% filter conditional(conditional_string) %}
9 #include "{{v8_class}}.h" 9 #include "{{v8_class}}.h"
10 10
11 {% for filename in cpp_includes if filename != '%s.h' % v8_class %} 11 {% for filename in cpp_includes if filename != '%s.h' % v8_class %}
12 #include "{{filename}}" 12 #include "{{filename}}"
13 {% endfor %} 13 {% endfor %}
14 14
15 namespace WebCore { 15 namespace blink {
16 16
17 static void initializeScriptWrappableForInterface({{cpp_class}}* object) 17 static void initializeScriptWrappableForInterface({{cpp_class}}* object)
18 { 18 {
19 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) 19 if (ScriptWrappable::wrapperCanBeStoredInObject(object))
20 ScriptWrappable::fromObject(object)->setTypeInfo(&{{v8_class}}::wrapperT ypeInfo); 20 ScriptWrappable::fromObject(object)->setTypeInfo(&{{v8_class}}::wrapperT ypeInfo);
21 else 21 else
22 ASSERT_NOT_REACHED(); 22 ASSERT_NOT_REACHED();
23 } 23 }
24 24
25 } // namespace WebCore 25 } // namespace blink
26 26
27 {# 27 {#
28 In ScriptWrappable::init, the use of a local function declaration has an 28 In ScriptWrappable::init, the use of a local function declaration has an
29 issue on Windows: the local declaration does not pick up the surrounding 29 issue on Windows: the local declaration does not pick up the surrounding
30 namespace. Therefore, we provide this function in the global namespace. 30 namespace. Therefore, we provide this function in the global namespace.
31 More info on the MSVC bug here (Bug 664619): 31 More info on the MSVC bug here (Bug 664619):
32 The namespace of local function declarations in C++ by Uray M. János 32 The namespace of local function declarations in C++ by Uray M. János
33 http://connect.microsoft.com/VisualStudio/feedback/details/664619/the-namespace- of-local-function-declarations-in-c 33 http://connect.microsoft.com/VisualStudio/feedback/details/664619/the-namespace- of-local-function-declarations-in-c
34 #} 34 #}
35 void webCoreInitializeScriptWrappableForInterface(WebCore::{{cpp_class}}* object ) 35 void webCoreInitializeScriptWrappableForInterface(blink::{{cpp_class}}* object)
36 { 36 {
37 WebCore::initializeScriptWrappableForInterface(object); 37 blink::initializeScriptWrappableForInterface(object);
38 } 38 }
39 39
40 namespace WebCore { 40 namespace blink {
41 {% set to_active_dom_object = '%s::toActiveDOMObject' % v8_class 41 {% set to_active_dom_object = '%s::toActiveDOMObject' % v8_class
42 if is_active_dom_object else '0' %} 42 if is_active_dom_object else '0' %}
43 {% set to_event_target = '%s::toEventTarget' % v8_class 43 {% set to_event_target = '%s::toEventTarget' % v8_class
44 if is_event_target else '0' %} 44 if is_event_target else '0' %}
45 {% set visit_dom_wrapper = '%s::visitDOMWrapper' % v8_class 45 {% set visit_dom_wrapper = '%s::visitDOMWrapper' % v8_class
46 if has_visit_dom_wrapper else '0' %} 46 if has_visit_dom_wrapper else '0' %}
47 {% set parent_wrapper_type_info = '&V8%s::wrapperTypeInfo' % parent_interface 47 {% set parent_wrapper_type_info = '&V8%s::wrapperTypeInfo' % parent_interface
48 if parent_interface else '0' %} 48 if parent_interface else '0' %}
49 {% set wrapper_type_prototype = 'WrapperTypeExceptionPrototype' if is_exception else 49 {% set wrapper_type_prototype = 'WrapperTypeExceptionPrototype' if is_exception else
50 'WrapperTypeObjectPrototype' %} 50 'WrapperTypeObjectPrototype' %}
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 {% block has_instance %}{% endblock %} 154 {% block has_instance %}{% endblock %}
155 {% block to_native_with_type_check %}{% endblock %} 155 {% block to_native_with_type_check %}{% endblock %}
156 {% block install_per_context_attributes %}{% endblock %} 156 {% block install_per_context_attributes %}{% endblock %}
157 {% block install_per_context_methods %}{% endblock %} 157 {% block install_per_context_methods %}{% endblock %}
158 {% block to_active_dom_object %}{% endblock %} 158 {% block to_active_dom_object %}{% endblock %}
159 {% block to_event_target %}{% endblock %} 159 {% block to_event_target %}{% endblock %}
160 {% block get_shadow_object_template %}{% endblock %} 160 {% block get_shadow_object_template %}{% endblock %}
161 {% block wrap %}{% endblock %} 161 {% block wrap %}{% endblock %}
162 {% block create_wrapper %}{% endblock %} 162 {% block create_wrapper %}{% endblock %}
163 {% block deref_object_and_to_v8_no_inline %}{% endblock %} 163 {% block deref_object_and_to_v8_no_inline %}{% endblock %}
164 } // namespace WebCore 164 } // namespace blink
165 {% endfilter %} 165 {% endfilter %}
OLDNEW
« no previous file with comments | « Source/bindings/templates/interface.h ('k') | Source/bindings/tests/results/V8SVGTestInterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698