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

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

Issue 202203009: Rename |imp| => |impl| in bindings generation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: custom/v8 too Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 namespace WebCore { 68 namespace WebCore {
69 const WrapperTypeInfo V8TestException::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestException::domTemplate, V8TestException::derefObject, 0, 0, 0, V8TestExcep tion::installPerContextEnabledMethods, 0, WrapperTypeExceptionPrototype, false } ; 69 const WrapperTypeInfo V8TestException::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestException::domTemplate, V8TestException::derefObject, 0, 0, 0, V8TestExcep tion::installPerContextEnabledMethods, 0, WrapperTypeExceptionPrototype, false } ;
70 70
71 namespace TestExceptionV8Internal { 71 namespace TestExceptionV8Internal {
72 72
73 template <typename T> void V8_USE(T) { } 73 template <typename T> void V8_USE(T) { }
74 74
75 static void readonlyUnsignedShortAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 75 static void readonlyUnsignedShortAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
76 { 76 {
77 TestException* imp = V8TestException::toNative(info.Holder()); 77 TestException* impl = V8TestException::toNative(info.Holder());
78 v8SetReturnValueUnsigned(info, imp->readonlyUnsignedShortAttribute()); 78 v8SetReturnValueUnsigned(info, impl->readonlyUnsignedShortAttribute());
79 } 79 }
80 80
81 static void readonlyUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info) 81 static void readonlyUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info)
82 { 82 {
83 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 83 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
84 TestExceptionV8Internal::readonlyUnsignedShortAttributeAttributeGetter(info) ; 84 TestExceptionV8Internal::readonlyUnsignedShortAttributeAttributeGetter(info) ;
85 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 85 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
86 } 86 }
87 87
88 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 88 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
89 { 89 {
90 TestException* imp = V8TestException::toNative(info.Holder()); 90 TestException* impl = V8TestException::toNative(info.Holder());
91 v8SetReturnValueString(info, imp->readonlyStringAttribute(), info.GetIsolate ()); 91 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat e());
92 } 92 }
93 93
94 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 94 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
95 { 95 {
96 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 96 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
97 TestExceptionV8Internal::readonlyStringAttributeAttributeGetter(info); 97 TestExceptionV8Internal::readonlyStringAttributeAttributeGetter(info);
98 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 98 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
99 } 99 }
100 100
101 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 101 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
102 { 102 {
103 TestException* imp = V8TestException::toNative(info.Holder()); 103 TestException* impl = V8TestException::toNative(info.Holder());
104 v8SetReturnValueString(info, imp->toString(), info.GetIsolate()); 104 v8SetReturnValueString(info, impl->toString(), info.GetIsolate());
105 } 105 }
106 106
107 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 107 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo)
108 { 108 {
109 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 109 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
110 TestExceptionV8Internal::toStringMethod(info); 110 TestExceptionV8Internal::toStringMethod(info);
111 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 111 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
112 } 112 }
113 113
114 } // namespace TestExceptionV8Internal 114 } // namespace TestExceptionV8Internal
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 fromInternalPointer(object)->deref(); 194 fromInternalPointer(object)->deref();
195 } 195 }
196 196
197 template<> 197 template<>
198 v8::Handle<v8::Value> toV8NoInline(TestException* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate) 198 v8::Handle<v8::Value> toV8NoInline(TestException* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate)
199 { 199 {
200 return toV8(impl, creationContext, isolate); 200 return toV8(impl, creationContext, isolate);
201 } 201 }
202 202
203 } // namespace WebCore 203 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestEventTarget.cpp ('k') | Source/bindings/tests/results/V8TestInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698