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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h

Issue 2843603002: Move ScriptWrappable and dependencies to platform/bindings (Closed)
Patch Set: Rebase and try again Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h b/third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h
index 215eca8768e236e99780ec726ba8825f96412601..3fbde8b56ba597c75e48a695fe674aab55568620 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h
@@ -28,43 +28,6 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef V8BindingMacros_h
-#define V8BindingMacros_h
-
-#include "platform/wtf/Assertions.h"
-#include "v8/include/v8.h"
-
-namespace blink {
-
-// type is an instance of class template V8StringResource<>,
-// but Mode argument varies; using type (not Mode) for consistency
-// with other macros and ease of code generation
-#define TOSTRING_VOID(type, var, value) \
- type var(value); \
- if (UNLIKELY(!var.Prepare())) \
- return;
-
-#define TOSTRING_DEFAULT(type, var, value, retVal) \
- type var(value); \
- if (UNLIKELY(!var.Prepare())) \
- return retVal;
-
-// Checks for a given v8::Value (value) whether it is an ArrayBufferView and
-// below a certain size limit. If below the limit, memory is allocated on the
-// stack to hold the actual payload. Keep the limit in sync with V8's
-// typed_array_max_size.
-#define allocateFlexibleArrayBufferViewStorage(value) \
- (value->IsArrayBufferView() && \
- (value.As<v8::ArrayBufferView>()->ByteLength() <= 64) \
- ? alloca(value.As<v8::ArrayBufferView>()->ByteLength()) \
- : nullptr)
-
-// DEPRECATED
-inline bool V8CallBoolean(v8::Maybe<bool> maybe) {
- bool result;
- return maybe.To(&result) && result;
-}
-
-} // namespace blink
-
-#endif // V8BindingMacros_h
+// This file has been moved to platform/bindings/V8BindingMacros.h.
+// TODO(adithyas): Remove this file.
+#include "platform/bindings/V8BindingMacros.h"
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp ('k') | third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698