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

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

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/ExceptionMessages.h ('k') | Source/bindings/core/v8/V8Binding.cpp » ('j') | 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Ericsson AB. All rights reserved. 3 * Copyright (C) 2012 Ericsson AB. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 class XPathNSResolver; 59 class XPathNSResolver;
60 60
61 namespace TraceEvent { 61 namespace TraceEvent {
62 class ConvertableToTraceFormat; 62 class ConvertableToTraceFormat;
63 } 63 }
64 64
65 const int kMaxRecursionDepth = 22; 65 const int kMaxRecursionDepth = 22;
66 66
67 // Helpers for throwing JavaScript TypeErrors for arity mismatches. 67 // Helpers for throwing JavaScript TypeErrors for arity mismatches.
68 void setArityTypeError(ExceptionState&, const char* valid, unsigned provided); 68 void setArityTypeError(ExceptionState&, const char* valid, unsigned provided);
69 v8::Local<v8::Value> createMinimumArityTypeErrorForMethod(const char* method, co nst char* type, unsigned expected, unsigned providedLeastNumMandatoryParams, v8: :Isolate*); 69 v8::Local<v8::Value> createMinimumArityTypeErrorForMethod(const char* method, co nst char* type, unsigned expected, unsigned provided, v8::Isolate*);
70 v8::Local<v8::Value> createMinimumArityTypeErrorForConstructor(const char* type, unsigned expected, unsigned providedLeastNumMandatoryParams, v8::Isolate*); 70 v8::Local<v8::Value> createMinimumArityTypeErrorForConstructor(const char* type, unsigned expected, unsigned provided, v8::Isolate*);
71 void setMinimumArityTypeError(ExceptionState&, unsigned expected, unsigned provi dedLeastNumMandatoryParams); 71 void setMinimumArityTypeError(ExceptionState&, unsigned expected, unsigned provi ded);
72 72
73 v8::ArrayBuffer::Allocator* v8ArrayBufferAllocator(); 73 v8::ArrayBuffer::Allocator* v8ArrayBufferAllocator();
74 74
75 template<typename CallbackInfo, typename V> 75 template<typename CallbackInfo, typename V>
76 inline void v8SetReturnValue(const CallbackInfo& info, V v) 76 inline void v8SetReturnValue(const CallbackInfo& info, V v)
77 { 77 {
78 info.GetReturnValue().Set(v); 78 info.GetReturnValue().Set(v);
79 } 79 }
80 80
81 template<typename CallbackInfo> 81 template<typename CallbackInfo>
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 m_block.ReThrow(); 956 m_block.ReThrow();
957 } 957 }
958 958
959 private: 959 private:
960 v8::TryCatch& m_block; 960 v8::TryCatch& m_block;
961 }; 961 };
962 962
963 } // namespace blink 963 } // namespace blink
964 964
965 #endif // V8Binding_h 965 #endif // V8Binding_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/ExceptionMessages.h ('k') | Source/bindings/core/v8/V8Binding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698