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

Side by Side Diff: Source/bindings/core/v8/V8DOMConfiguration.cpp

Issue 948583002: Bindings: Make interface operation (method) properties configurable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline newly behaving tests Created 5 years, 10 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 | « LayoutTests/http/tests/w3c/webperf/approved/UserTiming/idlharness-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 v8::Local<v8::ObjectTemplate> prototype = functionDescriptor->PrototypeT emplate(); 242 v8::Local<v8::ObjectTemplate> prototype = functionDescriptor->PrototypeT emplate();
243 prototype->SetInternalFieldCount(v8PrototypeInternalFieldcount); 243 prototype->SetInternalFieldCount(v8PrototypeInternalFieldcount);
244 } 244 }
245 245
246 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, func tionDescriptor); 246 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, func tionDescriptor);
247 if (attributeCount) 247 if (attributeCount)
248 installAttributes(isolate, instanceTemplate, functionDescriptor->Prototy peTemplate(), attributes, attributeCount); 248 installAttributes(isolate, instanceTemplate, functionDescriptor->Prototy peTemplate(), attributes, attributeCount);
249 if (accessorCount) 249 if (accessorCount)
250 installAccessors(isolate, functionDescriptor->PrototypeTemplate(), defau ltSignature, accessors, accessorCount); 250 installAccessors(isolate, functionDescriptor->PrototypeTemplate(), defau ltSignature, accessors, accessorCount);
251 if (callbackCount) 251 if (callbackCount)
252 installMethods(isolate, functionDescriptor->PrototypeTemplate(), default Signature, static_cast<v8::PropertyAttribute>(v8::DontDelete), callbacks, callba ckCount); 252 installMethods(isolate, functionDescriptor->PrototypeTemplate(), default Signature, static_cast<v8::PropertyAttribute>(v8::None), callbacks, callbackCoun t);
253 return defaultSignature; 253 return defaultSignature;
254 } 254 }
255 255
256 v8::Handle<v8::FunctionTemplate> V8DOMConfiguration::domClassTemplate(v8::Isolat e* isolate, WrapperTypeInfo* wrapperTypeInfo, void (*configureDOMClassTemplate)( v8::Local<v8::FunctionTemplate>, v8::Isolate*)) 256 v8::Handle<v8::FunctionTemplate> V8DOMConfiguration::domClassTemplate(v8::Isolat e* isolate, WrapperTypeInfo* wrapperTypeInfo, void (*configureDOMClassTemplate)( v8::Local<v8::FunctionTemplate>, v8::Isolate*))
257 { 257 {
258 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 258 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
259 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(wrapperTy peInfo); 259 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(wrapperTy peInfo);
260 if (!result.IsEmpty()) 260 if (!result.IsEmpty())
261 return result; 261 return result;
262 262
263 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "BuildDOMTemplate"); 263 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "BuildDOMTemplate");
264 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons tructorMode); 264 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons tructorMode);
265 configureDOMClassTemplate(result, isolate); 265 configureDOMClassTemplate(result, isolate);
266 data->setDOMTemplate(wrapperTypeInfo, result); 266 data->setDOMTemplate(wrapperTypeInfo, result);
267 return result; 267 return result;
268 } 268 }
269 269
270 } // namespace blink 270 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/w3c/webperf/approved/UserTiming/idlharness-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698