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

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

Issue 2183623004: Add IDLDictionaryBase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix multi-level inheritance bug Created 4 years, 5 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/IDLDictionaryBase.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/IDLDictionaryBase.h b/third_party/WebKit/Source/bindings/core/v8/IDLDictionaryBase.h
new file mode 100644
index 0000000000000000000000000000000000000000..2617028808d5d2b0bda9359e8bf76fd599eb882a
--- /dev/null
+++ b/third_party/WebKit/Source/bindings/core/v8/IDLDictionaryBase.h
@@ -0,0 +1,31 @@
+// Copyright 2016 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.
+
+#ifndef IDLDictionaryBase_h
+#define IDLDictionaryBase_h
+
+#include "core/CoreExport.h"
+#include "platform/heap/Handle.h"
+#include "wtf/Allocator.h"
+#include <v8.h>
+
+namespace blink {
+
+// This class provides toV8Impl() virtual function which will be overridden
+// by auto-generated IDL dictionary impl classes. toV8Impl() is used
+// in ToV8.h to provide a consistent API of toV8().
+class CORE_EXPORT IDLDictionaryBase {
+ DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
+public:
+ IDLDictionaryBase() {}
Yuki 2016/07/27 05:38:33 I don't know why, but Blink's coding style is
bashi 2016/07/27 09:01:19 Done.
+ virtual ~IDLDictionaryBase() {}
Yuki 2016/07/27 05:38:33 ditto.
bashi 2016/07/27 09:01:19 Done.
+
+ virtual v8::Local<v8::Value> toV8Impl(v8::Local<v8::Object> creationContext, v8::Isolate*) const;
+
+ DECLARE_VIRTUAL_TRACE();
+};
+
+} // namespace blink
+
+#endif // IDLDictionaryBase_h

Powered by Google App Engine
This is Rietveld 408576698