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

Unified Diff: Source/core/plugins/testing/DictionaryPluginPlaceholder.h

Issue 1313763002: Blink Plugins: Remove Shadow DOM Plugin Placeholder (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: merge origin/master Created 5 years, 4 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: 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
« no previous file with comments | « Source/core/plugins/PluginPlaceholder.h ('k') | Source/core/plugins/testing/DocumentFragmentPluginPlaceholder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698