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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/VoidCallbackFunctionModules.cpp

Issue 2595543003: Rename toV8(...) function in Blink to ToV8(...). (Closed)
Patch Set: Rebasing... Created 3 years, 11 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
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_v8.py. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // This file has been generated from the Jinja2 template in 8 // This file has been generated from the Jinja2 template in
9 // third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl 9 // third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 return false; 43 return false;
44 44
45 if (m_callback.isEmpty()) 45 if (m_callback.isEmpty())
46 return false; 46 return false;
47 47
48 // TODO(bashi): Make sure that using DummyExceptionStateForTesting is OK. 48 // TODO(bashi): Make sure that using DummyExceptionStateForTesting is OK.
49 // crbug.com/653769 49 // crbug.com/653769
50 DummyExceptionStateForTesting exceptionState; 50 DummyExceptionStateForTesting exceptionState;
51 ScriptState::Scope scope(m_scriptState.get()); 51 ScriptState::Scope scope(m_scriptState.get());
52 52
53 v8::Local<v8::Value> thisValue = toV8(scriptWrappable, m_scriptState->context( )->Global(), m_scriptState->isolate()); 53 v8::Local<v8::Value> thisValue = ToV8(scriptWrappable, m_scriptState->context( )->Global(), m_scriptState->isolate());
54 54
55 v8::Local<v8::Value> *argv = nullptr; 55 v8::Local<v8::Value> *argv = nullptr;
56 56
57 v8::Local<v8::Value> v8ReturnValue; 57 v8::Local<v8::Value> v8ReturnValue;
58 v8::TryCatch exceptionCatcher(m_scriptState->isolate()); 58 v8::TryCatch exceptionCatcher(m_scriptState->isolate());
59 exceptionCatcher.SetVerbose(true); 59 exceptionCatcher.SetVerbose(true);
60 60
61 if (V8ScriptRunner::callFunction(m_callback.newLocal(m_scriptState->isolate()) , m_scriptState->getExecutionContext(), thisValue, 0, argv, m_scriptState->isola te()).ToLocal(&v8ReturnValue)) { 61 if (V8ScriptRunner::callFunction(m_callback.newLocal(m_scriptState->isolate()) , m_scriptState->getExecutionContext(), thisValue, 0, argv, m_scriptState->isola te()).ToLocal(&v8ReturnValue)) {
62 return true; 62 return true;
63 } 63 }
64 return false; 64 return false;
65 } 65 }
66 66
67 } // namespace blink 67 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698