Index: Source/core/plugins/testing/DictionaryPluginPlaceholder.h |
diff --git a/Source/core/plugins/testing/DictionaryPluginPlaceholder.h b/Source/core/plugins/testing/DictionaryPluginPlaceholder.h |
deleted file mode 100644 |
index 1d22f1d25bfeedbae2fbb9a8a5533f428d9a33f4..0000000000000000000000000000000000000000 |
--- a/Source/core/plugins/testing/DictionaryPluginPlaceholder.h |
+++ /dev/null |
@@ -1,52 +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. |
- |
-#ifndef DictionaryPluginPlaceholder_h |
-#define DictionaryPluginPlaceholder_h |
- |
-#include "core/html/shadow/PluginPlaceholderElement.h" |
-#include "core/plugins/PluginPlaceholder.h" |
-#include "core/testing/PluginPlaceholderOptions.h" |
-#include "wtf/text/WTFString.h" |
- |
-namespace blink { |
- |
-// Manipulates a plugin placeholder element based on a fixed dictionary given. |
-// Used for layout tests that examine the formatting of structured placeholders. |
-class DictionaryPluginPlaceholder final : public NoBaseWillBeGarbageCollected<DictionaryPluginPlaceholder>, public PluginPlaceholder { |
- WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DictionaryPluginPlaceholder); |
- WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(DictionaryPluginPlaceholder); |
-public: |
- static PassOwnPtrWillBeRawPtr<DictionaryPluginPlaceholder> create(Document& document, const PluginPlaceholderOptions& options) |
- { |
- RefPtrWillBeRawPtr<PluginPlaceholderElement> placeholder = PluginPlaceholderElement::create(document); |
- if (options.hasMessage()) |
- placeholder->setMessage(options.message()); |
- |
- if (options.hasCloseable()) |
- placeholder->setIsCloseable(options.closeable()); |
- |
- return adoptPtrWillBeNoop(new DictionaryPluginPlaceholder(placeholder.release())); |
- } |
- |
-#if !ENABLE(OILPAN) |
- ~DictionaryPluginPlaceholder() override { } |
-#endif |
- DEFINE_INLINE_VIRTUAL_TRACE() { visitor->trace(m_pluginPlaceholderElement); } |
- |
- void loadIntoContainer(ContainerNode& container) override |
- { |
- container.removeChildren(); |
- container.appendChild(m_pluginPlaceholderElement, ASSERT_NO_EXCEPTION); |
- } |
- |
-private: |
- DictionaryPluginPlaceholder(PassRefPtrWillBeRawPtr<PluginPlaceholderElement> element) : m_pluginPlaceholderElement(element) { } |
- |
- RefPtrWillBeMember<PluginPlaceholderElement> m_pluginPlaceholderElement; |
-}; |
- |
-} // namespace blink |
- |
-#endif // DictionaryPluginPlaceholder_h |