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

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

Issue 466283002: Rename parameter providedleastNumMandatoryParams => provided (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « Source/bindings/core/v8/V8Binding.h ('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) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 #include "wtf/unicode/CharacterNames.h" 71 #include "wtf/unicode/CharacterNames.h"
72 #include "wtf/unicode/Unicode.h" 72 #include "wtf/unicode/Unicode.h"
73 73
74 namespace blink { 74 namespace blink {
75 75
76 void setArityTypeError(ExceptionState& exceptionState, const char* valid, unsign ed provided) 76 void setArityTypeError(ExceptionState& exceptionState, const char* valid, unsign ed provided)
77 { 77 {
78 exceptionState.throwTypeError(ExceptionMessages::invalidArity(valid, provide d)); 78 exceptionState.throwTypeError(ExceptionMessages::invalidArity(valid, provide d));
79 } 79 }
80 80
81 v8::Local<v8::Value> createMinimumArityTypeErrorForMethod(const char* method, co nst char* type, unsigned expected, unsigned providedLeastNumMandatoryParams, v8: :Isolate* isolate) 81 v8::Local<v8::Value> createMinimumArityTypeErrorForMethod(const char* method, co nst char* type, unsigned expected, unsigned provided, v8::Isolate* isolate)
82 { 82 {
83 return V8ThrowException::createTypeError(ExceptionMessages::failedToExecute( method, type, ExceptionMessages::notEnoughArguments(expected, providedLeastNumMa ndatoryParams)), isolate); 83 return V8ThrowException::createTypeError(ExceptionMessages::failedToExecute( method, type, ExceptionMessages::notEnoughArguments(expected, provided)), isolat e);
84 } 84 }
85 85
86 v8::Local<v8::Value> createMinimumArityTypeErrorForConstructor(const char* type, unsigned expected, unsigned providedLeastNumMandatoryParams, v8::Isolate* isola te) 86 v8::Local<v8::Value> createMinimumArityTypeErrorForConstructor(const char* type, unsigned expected, unsigned provided, v8::Isolate* isolate)
87 { 87 {
88 return V8ThrowException::createTypeError(ExceptionMessages::failedToConstruc t(type, ExceptionMessages::notEnoughArguments(expected, providedLeastNumMandator yParams)), isolate); 88 return V8ThrowException::createTypeError(ExceptionMessages::failedToConstruc t(type, ExceptionMessages::notEnoughArguments(expected, provided)), isolate);
89 } 89 }
90 90
91 void setMinimumArityTypeError(ExceptionState& exceptionState, unsigned expected, unsigned providedLeastNumMandatoryParams) 91 void setMinimumArityTypeError(ExceptionState& exceptionState, unsigned expected, unsigned provided)
92 { 92 {
93 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(expected , providedLeastNumMandatoryParams)); 93 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(expected , provided));
94 } 94 }
95 95
96 class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator { 96 class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
97 virtual void* Allocate(size_t size) OVERRIDE 97 virtual void* Allocate(size_t size) OVERRIDE
98 { 98 {
99 void* data; 99 void* data;
100 WTF::ArrayBufferContents::allocateMemory(size, WTF::ArrayBufferContents: :ZeroInitialize, data); 100 WTF::ArrayBufferContents::allocateMemory(size, WTF::ArrayBufferContents: :ZeroInitialize, data);
101 return data; 101 return data;
102 } 102 }
103 103
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(Executio nContext* context, v8::Handle<v8::Function> function, v8::Isolate* isolate) 903 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(Executio nContext* context, v8::Handle<v8::Function> function, v8::Isolate* isolate)
904 { 904 {
905 int scriptId = 0; 905 int scriptId = 0;
906 String resourceName; 906 String resourceName;
907 int lineNumber = 1; 907 int lineNumber = 1;
908 GetDevToolsFunctionInfo(function, isolate, scriptId, resourceName, lineNumbe r); 908 GetDevToolsFunctionInfo(function, isolate, scriptId, resourceName, lineNumbe r);
909 return InspectorFunctionCallEvent::data(context, scriptId, resourceName, lin eNumber); 909 return InspectorFunctionCallEvent::data(context, scriptId, resourceName, lin eNumber);
910 } 910 }
911 911
912 } // namespace blink 912 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/V8Binding.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698