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

Unified Diff: third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskQueueBase.h

Issue 1914923002: Rename all existing custom element classes as V0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CustomElementV0 -> V0CustomElement Created 4 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/core/dom/custom/V0CustomElementMicrotaskQueueBase.h
diff --git a/third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskQueueBase.h b/third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskQueueBase.h
new file mode 100644
index 0000000000000000000000000000000000000000..0b77c630b96ae86f7f653176444c6bcf476a5802
--- /dev/null
+++ b/third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskQueueBase.h
@@ -0,0 +1,38 @@
+// 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.
+
+#ifndef V0CustomElementMicrotaskQueueBase_h
+#define V0CustomElementMicrotaskQueueBase_h
+
+#include "core/dom/custom/V0CustomElementMicrotaskStep.h"
+#include "platform/heap/Handle.h"
+#include "wtf/Vector.h"
+
+namespace blink {
+
+class V0CustomElementMicrotaskQueueBase : public GarbageCollectedFinalized<V0CustomElementMicrotaskQueueBase> {
+ WTF_MAKE_NONCOPYABLE(V0CustomElementMicrotaskQueueBase);
+public:
+ virtual ~V0CustomElementMicrotaskQueueBase() { }
+
+ bool isEmpty() const { return m_queue.isEmpty(); }
+ void dispatch();
+
+ DECLARE_TRACE();
+
+#if !defined(NDEBUG)
+ void show(unsigned indent);
+#endif
+
+protected:
+ V0CustomElementMicrotaskQueueBase() : m_inDispatch(false) { }
+ virtual void doDispatch() = 0;
+
+ HeapVector<Member<V0CustomElementMicrotaskStep>> m_queue;
+ bool m_inDispatch;
+};
+
+} // namespace blink
+
+#endif // V0CustomElementMicrotaskQueueBase_h

Powered by Google App Engine
This is Rietveld 408576698