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: third_party/WebKit/Source/bindings/core/v8/V8Binding.h

Issue 2004643002: Implement BroadcastChannel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert to mojo interface of PS4 to have less logic in renderer Created 4 years, 6 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
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 STATIC_ONLY(V8TypeOf); 76 STATIC_ONLY(V8TypeOf);
77 // |Type| provides C++ -> V8 type conversion for DOM wrappers. 77 // |Type| provides C++ -> V8 type conversion for DOM wrappers.
78 // The Blink binding code generator will generate specialized version of 78 // The Blink binding code generator will generate specialized version of
79 // V8TypeOf for each wrapper class. 79 // V8TypeOf for each wrapper class.
80 typedef void Type; 80 typedef void Type;
81 }; 81 };
82 82
83 // Helpers for throwing JavaScript TypeErrors for arity mismatches. 83 // Helpers for throwing JavaScript TypeErrors for arity mismatches.
84 CORE_EXPORT void setArityTypeError(ExceptionState&, const char* valid, unsigned provided); 84 CORE_EXPORT void setArityTypeError(ExceptionState&, const char* valid, unsigned provided);
85 CORE_EXPORT v8::Local<v8::Value> createMinimumArityTypeErrorForMethod(v8::Isolat e*, const char* method, const char* type, unsigned expected, unsigned provided); 85 CORE_EXPORT v8::Local<v8::Value> createMinimumArityTypeErrorForMethod(v8::Isolat e*, const char* method, const char* type, unsigned expected, unsigned provided);
86 v8::Local<v8::Value> createMinimumArityTypeErrorForConstructor(v8::Isolate*, con st char* type, unsigned expected, unsigned provided); 86 CORE_EXPORT v8::Local<v8::Value> createMinimumArityTypeErrorForConstructor(v8::I solate*, const char* type, unsigned expected, unsigned provided);
kinuko 2016/06/09 09:14:58 is this related? (wasn't very obvious to me...)
Marijn Kruisselbrink 2016/06/22 18:46:56 The bindings generated code for a constructor can
87 CORE_EXPORT void setMinimumArityTypeError(ExceptionState&, unsigned expected, un signed provided); 87 CORE_EXPORT void setMinimumArityTypeError(ExceptionState&, unsigned expected, un signed provided);
88 88
89 template<typename CallbackInfo, typename S> 89 template<typename CallbackInfo, typename S>
90 inline void v8SetReturnValue(const CallbackInfo& info, const v8::Persistent<S>& handle) 90 inline void v8SetReturnValue(const CallbackInfo& info, const v8::Persistent<S>& handle)
91 { 91 {
92 info.GetReturnValue().Set(handle); 92 info.GetReturnValue().Set(handle);
93 } 93 }
94 94
95 template<typename CallbackInfo, typename S> 95 template<typename CallbackInfo, typename S>
96 inline void v8SetReturnValue(const CallbackInfo& info, const v8::Local<S> handle ) 96 inline void v8SetReturnValue(const CallbackInfo& info, const v8::Local<S> handle )
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 typedef void (*InstallTemplateFunction)(v8::Isolate*, const DOMWrapperWorld&, v8 ::Local<v8::FunctionTemplate> interfaceTemplate); 963 typedef void (*InstallTemplateFunction)(v8::Isolate*, const DOMWrapperWorld&, v8 ::Local<v8::FunctionTemplate> interfaceTemplate);
964 964
965 // Freeze a V8 object. The type of the first parameter and the return value is 965 // Freeze a V8 object. The type of the first parameter and the return value is
966 // intentionally v8::Value so that this function can wrap toV8(). 966 // intentionally v8::Value so that this function can wrap toV8().
967 // If the argument isn't an object, this will crash. 967 // If the argument isn't an object, this will crash.
968 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>, v8::Isolat e*); 968 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>, v8::Isolat e*);
969 969
970 } // namespace blink 970 } // namespace blink
971 971
972 #endif // V8Binding_h 972 #endif // V8Binding_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698