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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/LongOrTestDictionary.h

Issue 1974143002: Revert of Generate separate files for union type containers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/tests/results/core/LongOrTestDictionary.h
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/LongOrTestDictionary.h b/third_party/WebKit/Source/bindings/tests/results/core/LongOrTestDictionary.h
deleted file mode 100644
index a359371c2866ee522d9b42f9da24c7d1b94bcc88..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/bindings/tests/results/core/LongOrTestDictionary.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
-
-#ifndef LongOrTestDictionary_h
-#define LongOrTestDictionary_h
-
-#include "bindings/core/v8/Dictionary.h"
-#include "bindings/core/v8/ExceptionState.h"
-#include "bindings/core/v8/V8Binding.h"
-#include "bindings/core/v8/V8TestDictionary.h"
-#include "core/CoreExport.h"
-#include "platform/heap/Handle.h"
-
-namespace blink {
-
-
-class CORE_EXPORT LongOrTestDictionary final {
- DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
-public:
- LongOrTestDictionary();
- bool isNull() const { return m_type == SpecificTypeNone; }
-
- bool isLong() const { return m_type == SpecificTypeLong; }
- int getAsLong() const;
- void setLong(int);
- static LongOrTestDictionary fromLong(int);
-
- bool isTestDictionary() const { return m_type == SpecificTypeTestDictionary; }
- TestDictionary getAsTestDictionary() const;
- void setTestDictionary(TestDictionary);
- static LongOrTestDictionary fromTestDictionary(TestDictionary);
-
- LongOrTestDictionary(const LongOrTestDictionary&);
- ~LongOrTestDictionary();
- LongOrTestDictionary& operator=(const LongOrTestDictionary&);
- DECLARE_TRACE();
-
-private:
- enum SpecificTypes {
- SpecificTypeNone,
- SpecificTypeLong,
- SpecificTypeTestDictionary,
- };
- SpecificTypes m_type;
-
- int m_long;
- TestDictionary m_testDictionary;
-
- friend CORE_EXPORT v8::Local<v8::Value> toV8(const LongOrTestDictionary&, v8::Local<v8::Object>, v8::Isolate*);
-};
-
-class V8LongOrTestDictionary final {
-public:
- CORE_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, LongOrTestDictionary&, UnionTypeConversionMode, ExceptionState&);
-};
-
-CORE_EXPORT v8::Local<v8::Value> toV8(const LongOrTestDictionary&, v8::Local<v8::Object>, v8::Isolate*);
-
-template <class CallbackInfo>
-inline void v8SetReturnValue(const CallbackInfo& callbackInfo, LongOrTestDictionary& impl)
-{
- v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate()));
-}
-
-template <>
-struct NativeValueTraits<LongOrTestDictionary> {
- CORE_EXPORT static LongOrTestDictionary nativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionState&);
-};
-
-} // namespace blink
-
-// We need to set canInitializeWithMemset=true because HeapVector supports
-// items that can initialize with memset or have a vtable. It is safe to
-// set canInitializeWithMemset=true for a union type object in practice.
-// See https://codereview.chromium.org/1118993002/#msg5 for more details.
-WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::LongOrTestDictionary);
-
-#endif // LongOrTestDictionary_h

Powered by Google App Engine
This is Rietveld 408576698