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

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

Issue 22962003: Remove support for [IsIndex] IDL extended attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | « Source/bindings/tests/idls/TestEventTarget.idl ('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 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 13 matching lines...) Expand all
24 #include "RuntimeEnabledFeatures.h" 24 #include "RuntimeEnabledFeatures.h"
25 #include "V8EventTarget.h" 25 #include "V8EventTarget.h"
26 #include "V8Node.h" 26 #include "V8Node.h"
27 #include "bindings/v8/ExceptionState.h" 27 #include "bindings/v8/ExceptionState.h"
28 #include "bindings/v8/ScriptController.h" 28 #include "bindings/v8/ScriptController.h"
29 #include "bindings/v8/V8Binding.h" 29 #include "bindings/v8/V8Binding.h"
30 #include "bindings/v8/V8DOMConfiguration.h" 30 #include "bindings/v8/V8DOMConfiguration.h"
31 #include "bindings/v8/V8DOMWrapper.h" 31 #include "bindings/v8/V8DOMWrapper.h"
32 #include "core/dom/ContextFeatures.h" 32 #include "core/dom/ContextFeatures.h"
33 #include "core/dom/Document.h" 33 #include "core/dom/Document.h"
34 #include "core/dom/ExceptionCode.h"
35 #include "core/page/Frame.h" 34 #include "core/page/Frame.h"
36 #include "core/platform/chromium/TraceEvent.h" 35 #include "core/platform/chromium/TraceEvent.h"
37 #include "wtf/GetPtr.h" 36 #include "wtf/GetPtr.h"
38 #include "wtf/RefPtr.h" 37 #include "wtf/RefPtr.h"
39 #include "wtf/UnusedParam.h" 38 #include "wtf/UnusedParam.h"
40 39
41 namespace WebCore { 40 namespace WebCore {
42 41
43 static void initializeScriptWrappableForInterface(TestEventTarget* object) 42 static void initializeScriptWrappableForInterface(TestEventTarget* object)
44 { 43 {
(...skipping 21 matching lines...) Expand all
66 65
67 template <typename T> void V8_USE(T) { } 66 template <typename T> void V8_USE(T) { }
68 67
69 static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& args) 68 static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& args)
70 { 69 {
71 if (args.Length() < 1) { 70 if (args.Length() < 1) {
72 throwNotEnoughArgumentsError(args.GetIsolate()); 71 throwNotEnoughArgumentsError(args.GetIsolate());
73 return; 72 return;
74 } 73 }
75 TestEventTarget* imp = V8TestEventTarget::toNative(args.Holder()); 74 TestEventTarget* imp = V8TestEventTarget::toNative(args.Holder());
76 ExceptionState es(args.GetIsolate()); 75 V8TRYCATCH_VOID(unsigned, index, toUInt32(args[0]));
77 V8TRYCATCH_VOID(int, index, toUInt32(args[0]));
78 if (UNLIKELY(index < 0)) {
79 setDOMException(IndexSizeError, args.GetIsolate());
80 return;
81 }
82 v8SetReturnValue(args, toV8(imp->item(index), args.Holder(), args.GetIsolate ())); 76 v8SetReturnValue(args, toV8(imp->item(index), args.Holder(), args.GetIsolate ()));
83 return; 77 return;
84 } 78 }
85 79
86 static void itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args) 80 static void itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args)
87 { 81 {
88 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 82 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
89 TestEventTargetV8Internal::itemMethod(args); 83 TestEventTargetV8Internal::itemMethod(args);
90 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 84 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
91 } 85 }
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 installPerContextProperties(wrapper, impl.get(), isolate); 343 installPerContextProperties(wrapper, impl.get(), isolate);
350 V8DOMWrapper::associateObjectWithWrapper<V8TestEventTarget>(impl, &info, wra pper, isolate, WrapperConfiguration::Independent); 344 V8DOMWrapper::associateObjectWithWrapper<V8TestEventTarget>(impl, &info, wra pper, isolate, WrapperConfiguration::Independent);
351 return wrapper; 345 return wrapper;
352 } 346 }
353 void V8TestEventTarget::derefObject(void* object) 347 void V8TestEventTarget::derefObject(void* object)
354 { 348 {
355 fromInternalPointer(object)->deref(); 349 fromInternalPointer(object)->deref();
356 } 350 }
357 351
358 } // namespace WebCore 352 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestEventTarget.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698