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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/LongCallbackFunction.cpp

Issue 2709983004: WIP bindings: Add support for the record<K,V> WebIDL type. (Closed)
Patch Set: Rebased patch using NativeValueTraits for IDL types Created 3 years, 9 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 if (V8ScriptRunner::callFunction(m_callback.newLocal(m_scriptState->isolate()) , m_scriptState->getExecutionContext(), thisValue, 2, argv, m_scriptState->isola te()).ToLocal(&v8ReturnValue)) { 71 if (V8ScriptRunner::callFunction(m_callback.newLocal(m_scriptState->isolate()) , m_scriptState->getExecutionContext(), thisValue, 2, argv, m_scriptState->isola te()).ToLocal(&v8ReturnValue)) {
72 int cppValue = toInt32(m_scriptState->isolate(), v8ReturnValue, NormalConver sion, exceptionState); 72 int cppValue = toInt32(m_scriptState->isolate(), v8ReturnValue, NormalConver sion, exceptionState);
73 if (exceptionState.hadException()) 73 if (exceptionState.hadException())
74 return false; 74 return false;
75 returnValue = cppValue; 75 returnValue = cppValue;
76 return true; 76 return true;
77 } 77 }
78 return false; 78 return false;
79 } 79 }
80 80
81 LongCallbackFunction* NativeValueTraits<LongCallbackFunction>::nativeValue(v8::I solate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) {
82 return LongCallbackFunction::create(ScriptState::current(isolate), value);
83 }
84
81 } // namespace blink 85 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698