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

Side by Side Diff: Source/bindings/templates/callback_interface.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
« no previous file with comments | « Source/bindings/templates/callback_interface.h ('k') | Source/bindings/templates/interface.h » ('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 // 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 %} 11 {% for filename in cpp_includes %}
12 #include "{{filename}}" 12 #include "{{filename}}"
13 {% endfor %} 13 {% endfor %}
14 14
15 namespace WebCore { 15 namespace blink {
16 16
17 {{v8_class}}::{{v8_class}}(v8::Handle<v8::Function> callback, ScriptState* scrip tState) 17 {{v8_class}}::{{v8_class}}(v8::Handle<v8::Function> callback, ScriptState* scrip tState)
18 : ActiveDOMCallback(scriptState->executionContext()) 18 : ActiveDOMCallback(scriptState->executionContext())
19 , m_scriptState(scriptState) 19 , m_scriptState(scriptState)
20 { 20 {
21 m_callback.set(scriptState->isolate(), callback); 21 m_callback.set(scriptState->isolate(), callback);
22 } 22 }
23 23
24 {{v8_class}}::~{{v8_class}}() 24 {{v8_class}}::~{{v8_class}}()
25 { 25 {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 v8::TryCatch exceptionCatcher; 65 v8::TryCatch exceptionCatcher;
66 exceptionCatcher.SetVerbose(true); 66 exceptionCatcher.SetVerbose(true);
67 ScriptController::callFunction(m_scriptState->executionContext(), m_callback .newLocal(m_scriptState->isolate()), {{this_handle_parameter}}{{method.arguments | length}}, argv, m_scriptState->isolate()); 67 ScriptController::callFunction(m_scriptState->executionContext(), m_callback .newLocal(m_scriptState->isolate()), {{this_handle_parameter}}{{method.arguments | length}}, argv, m_scriptState->isolate());
68 return !exceptionCatcher.HasCaught(); 68 return !exceptionCatcher.HasCaught();
69 {% else %}{# void #} 69 {% else %}{# void #}
70 ScriptController::callFunction(m_scriptState->executionContext(), m_callback .newLocal(m_scriptState->isolate()), {{this_handle_parameter}}{{method.arguments | length}}, argv, m_scriptState->isolate()); 70 ScriptController::callFunction(m_scriptState->executionContext(), m_callback .newLocal(m_scriptState->isolate()), {{this_handle_parameter}}{{method.arguments | length}}, argv, m_scriptState->isolate());
71 {% endif %} 71 {% endif %}
72 } 72 }
73 73
74 {% endfor %} 74 {% endfor %}
75 } // namespace WebCore 75 } // namespace blink
76 {% endfilter %} 76 {% endfilter %}
OLDNEW
« no previous file with comments | « Source/bindings/templates/callback_interface.h ('k') | Source/bindings/templates/interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698