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

Side by Side Diff: Source/bindings/tests/results/V8TestInterface2.cpp

Issue 413393003: Blink-in-JS: Implement internal APIs exposed only to private scripts (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
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. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestInterface2.h" 8 #include "V8TestInterface2.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 // The ownerNode() method may return a reference or a pointer. 432 // The ownerNode() method may return a reference or a pointer.
433 if (Node* owner = WTF::getPtr(impl->ownerNode())) { 433 if (Node* owner = WTF::getPtr(impl->ownerNode())) {
434 Node* root = V8GCController::opaqueRootForGC(owner, isolate); 434 Node* root = V8GCController::opaqueRootForGC(owner, isolate);
435 isolate->SetReferenceFromGroup(v8::UniqueId(reinterpret_cast<intptr_t>(r oot)), wrapper); 435 isolate->SetReferenceFromGroup(v8::UniqueId(reinterpret_cast<intptr_t>(r oot)), wrapper);
436 return; 436 return;
437 } 437 }
438 setObjectGroup(object, wrapper, isolate); 438 setObjectGroup(object, wrapper, isolate);
439 } 439 }
440 440
441 static const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] = { 441 static const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] = {
442 {"item", TestInterface2V8Internal::itemMethodCallback, 0, 1}, 442 {"item", TestInterface2V8Internal::itemMethodCallback, 0, 1, V8DOMConfigurat ion::ExposedToAllScripts},
443 {"setItem", TestInterface2V8Internal::setItemMethodCallback, 0, 2}, 443 {"setItem", TestInterface2V8Internal::setItemMethodCallback, 0, 2, V8DOMConf iguration::ExposedToAllScripts},
444 {"deleteItem", TestInterface2V8Internal::deleteItemMethodCallback, 0, 1}, 444 {"deleteItem", TestInterface2V8Internal::deleteItemMethodCallback, 0, 1, V8D OMConfiguration::ExposedToAllScripts},
445 {"namedItem", TestInterface2V8Internal::namedItemMethodCallback, 0, 1}, 445 {"namedItem", TestInterface2V8Internal::namedItemMethodCallback, 0, 1, V8DOM Configuration::ExposedToAllScripts},
446 {"setNamedItem", TestInterface2V8Internal::setNamedItemMethodCallback, 0, 2} , 446 {"setNamedItem", TestInterface2V8Internal::setNamedItemMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScripts},
447 {"deleteNamedItem", TestInterface2V8Internal::deleteNamedItemMethodCallback, 0, 1}, 447 {"deleteNamedItem", TestInterface2V8Internal::deleteNamedItemMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
448 {"stringifierMethod", TestInterface2V8Internal::stringifierMethodMethodCallb ack, 0, 0}, 448 {"stringifierMethod", TestInterface2V8Internal::stringifierMethodMethodCallb ack, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
449 {"toString", TestInterface2V8Internal::toStringMethodCallback, 0, 0}, 449 {"toString", TestInterface2V8Internal::toStringMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts},
450 }; 450 };
451 451
452 void V8TestInterface2::constructorCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 452 void V8TestInterface2::constructorCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
453 { 453 {
454 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); 454 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor");
455 if (!info.IsConstructCall()) { 455 if (!info.IsConstructCall()) {
456 throwTypeError(ExceptionMessages::constructorNotCallableAsFunction("Test Interface2"), info.GetIsolate()); 456 throwTypeError(ExceptionMessages::constructorNotCallableAsFunction("Test Interface2"), info.GetIsolate());
457 return; 457 return;
458 } 458 }
459 459
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 fromInternalPointer(object)->deref(); 542 fromInternalPointer(object)->deref();
543 } 543 }
544 544
545 template<> 545 template<>
546 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) 546 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
547 { 547 {
548 return toV8(impl, creationContext, isolate); 548 return toV8(impl, creationContext, isolate);
549 } 549 }
550 550
551 } // namespace blink 551 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterface.cpp ('k') | Source/bindings/tests/results/V8TestInterfaceCheckSecurity.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698