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

Side by Side Diff: Source/bindings/v8/custom/V8JavaScriptCallFrameCustom.cpp

Issue 54283002: Rename |args| to |info| in V8 bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "V8JavaScriptCallFrame.h" 32 #include "V8JavaScriptCallFrame.h"
33 33
34 #include "bindings/v8/V8Binding.h" 34 #include "bindings/v8/V8Binding.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 void V8JavaScriptCallFrame::evaluateMethodCustom(const v8::FunctionCallbackInfo< v8::Value>& args) 38 void V8JavaScriptCallFrame::evaluateMethodCustom(const v8::FunctionCallbackInfo< v8::Value>& info)
39 { 39 {
40 JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(args.Holder()); 40 JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(info.Holder());
41 String expression = toWebCoreStringWithUndefinedOrNullCheck(args[0]); 41 String expression = toWebCoreStringWithUndefinedOrNullCheck(info[0]);
42 v8SetReturnValue(args, impl->evaluate(expression)); 42 v8SetReturnValue(info, impl->evaluate(expression));
43 } 43 }
44 44
45 void V8JavaScriptCallFrame::restartMethodCustom(const v8::FunctionCallbackInfo<v 8::Value>& args) 45 void V8JavaScriptCallFrame::restartMethodCustom(const v8::FunctionCallbackInfo<v 8::Value>& info)
46 { 46 {
47 JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(args.Holder()); 47 JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(info.Holder());
48 v8SetReturnValue(args, impl->restart()); 48 v8SetReturnValue(info, impl->restart());
49 } 49 }
50 50
51 void V8JavaScriptCallFrame::setVariableValueMethodCustom(const v8::FunctionCallb ackInfo<v8::Value>& args) 51 void V8JavaScriptCallFrame::setVariableValueMethodCustom(const v8::FunctionCallb ackInfo<v8::Value>& info)
52 { 52 {
53 JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(args.Holder()); 53 JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(info.Holder());
54 int scopeIndex = args[0]->Int32Value(); 54 int scopeIndex = info[0]->Int32Value();
55 String variableName = toWebCoreStringWithUndefinedOrNullCheck(args[1]); 55 String variableName = toWebCoreStringWithUndefinedOrNullCheck(info[1]);
56 v8::Handle<v8::Value> newValue = args[2]; 56 v8::Handle<v8::Value> newValue = info[2];
57 v8SetReturnValue(args, impl->setVariableValue(scopeIndex, variableName, newV alue)); 57 v8SetReturnValue(info, impl->setVariableValue(scopeIndex, variableName, newV alue));
58 } 58 }
59 59
60 void V8JavaScriptCallFrame::scopeChainAttributeGetterCustom(v8::Local<v8::String > name, const v8::PropertyCallbackInfo<v8::Value>& info) 60 void V8JavaScriptCallFrame::scopeChainAttributeGetterCustom(v8::Local<v8::String > name, const v8::PropertyCallbackInfo<v8::Value>& info)
61 { 61 {
62 JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(info.Holder()); 62 JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(info.Holder());
63 v8SetReturnValue(info, impl->scopeChain()); 63 v8SetReturnValue(info, impl->scopeChain());
64 } 64 }
65 65
66 void V8JavaScriptCallFrame::scopeTypeMethodCustom(const v8::FunctionCallbackInfo <v8::Value>& args) 66 void V8JavaScriptCallFrame::scopeTypeMethodCustom(const v8::FunctionCallbackInfo <v8::Value>& info)
67 { 67 {
68 JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(args.Holder()); 68 JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(info.Holder());
69 int scopeIndex = args[0]->Int32Value(); 69 int scopeIndex = info[0]->Int32Value();
70 v8SetReturnValue(args, impl->scopeType(scopeIndex)); 70 v8SetReturnValue(info, impl->scopeType(scopeIndex));
71 } 71 }
72 72
73 void V8JavaScriptCallFrame::thisObjectAttributeGetterCustom(v8::Local<v8::String > name, const v8::PropertyCallbackInfo<v8::Value>& info) 73 void V8JavaScriptCallFrame::thisObjectAttributeGetterCustom(v8::Local<v8::String > name, const v8::PropertyCallbackInfo<v8::Value>& info)
74 { 74 {
75 JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(info.Holder()); 75 JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(info.Holder());
76 v8SetReturnValue(info, impl->thisObject()); 76 v8SetReturnValue(info, impl->thisObject());
77 } 77 }
78 78
79 void V8JavaScriptCallFrame::typeAttributeGetterCustom(v8::Local<v8::String> name , const v8::PropertyCallbackInfo<v8::Value>& info) 79 void V8JavaScriptCallFrame::typeAttributeGetterCustom(v8::Local<v8::String> name , const v8::PropertyCallbackInfo<v8::Value>& info)
80 { 80 {
81 v8SetReturnValue(info, v8::String::NewSymbol("function")); 81 v8SetReturnValue(info, v8::String::NewSymbol("function"));
82 } 82 }
83 83
84 } // namespace WebCore 84 } // namespace WebCore
85 85
OLDNEW
« no previous file with comments | « Source/bindings/v8/custom/V8InspectorFrontendHostCustom.cpp ('k') | Source/bindings/v8/custom/V8LocationCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698