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

Unified Diff: Source/bindings/tests/results/V8TestObject.cpp

Issue 17225003: Support named query generation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: remove int returnValue and hard code v8::None Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/tests/results/V8TestObject.cpp
diff --git a/Source/bindings/tests/results/V8TestObject.cpp b/Source/bindings/tests/results/V8TestObject.cpp
index 6bf4a6debd72598525f0bc71d3d0a2927d0e56ca..f3ec5ca3ec8e07cd3a69ab2982cde77ce7196135 100644
--- a/Source/bindings/tests/results/V8TestObject.cpp
+++ b/Source/bindings/tests/results/V8TestObject.cpp
@@ -4969,6 +4969,22 @@ void V8TestObject::namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Ar
v8SetReturnValue(info, v8names);
}
+void V8TestObject::namedPropertyQuery(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Integer>& info)
+{
+ TestObj* collection = toNative(info.Holder());
+ AtomicString propertyName = toWebCoreAtomicString(name);
+ ExceptionCode ec = 0;
+ int returnValue = 0;
+ bool result = collection->namedPropertyQuery(propertyName, returnValue, ec);
+ if (ec) {
+ setDOMException(ec, info.GetIsolate());
+ return;
+ }
+ if (!result)
+ return;
+ v8SetReturnValueInt(info, 0);
+}
+
static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectTemplate(v8::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWorldType)
{
desc->ReadOnlyPrototype();
« no previous file with comments | « Source/bindings/tests/results/V8TestInterface.cpp ('k') | Source/bindings/v8/custom/V8DOMStringMapCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698