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

Unified Diff: Source/web/PluginPlaceholderImpl.cpp

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
« no previous file with comments | « Source/web/PluginPlaceholderImpl.h ('k') | Source/web/web.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/PluginPlaceholderImpl.cpp
diff --git a/Source/web/PluginPlaceholderImpl.cpp b/Source/web/PluginPlaceholderImpl.cpp
deleted file mode 100644
index e19009a63f8028381b8fd175f9cee1ceef71edc4..0000000000000000000000000000000000000000
--- a/Source/web/PluginPlaceholderImpl.cpp
+++ /dev/null
@@ -1,45 +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.
-
-#include "config.h"
-#include "web/PluginPlaceholderImpl.h"
-
-#include "core/dom/shadow/ShadowRoot.h"
-#include "core/html/HTMLPlugInElement.h"
-#include "core/html/shadow/PluginPlaceholderElement.h"
-#include "public/web/WebPluginPlaceholder.h"
-
-namespace blink {
-
-PluginPlaceholderImpl::PluginPlaceholderImpl(PassOwnPtr<WebPluginPlaceholder> webPluginPlaceholder, Document& document)
- : m_webPluginPlaceholder(webPluginPlaceholder)
- , m_placeholderElement(PluginPlaceholderElement::create(document))
-{
- ASSERT(m_webPluginPlaceholder);
-}
-
-PluginPlaceholderImpl::~PluginPlaceholderImpl()
-{
-}
-
-DEFINE_TRACE(PluginPlaceholderImpl)
-{
- visitor->trace(m_placeholderElement);
-}
-
-void PluginPlaceholderImpl::loadIntoContainer(ContainerNode& container)
-{
- m_placeholderElement->remove(ASSERT_NO_EXCEPTION);
- update();
- container.removeChildren();
- container.appendChild(m_placeholderElement);
-}
-
-void PluginPlaceholderImpl::update()
-{
- m_placeholderElement->setMessage(m_webPluginPlaceholder->message());
- m_placeholderElement->setIsCloseable(m_webPluginPlaceholder->isCloseable());
-}
-
-} // namespace blink
« no previous file with comments | « Source/web/PluginPlaceholderImpl.h ('k') | Source/web/web.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698