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

Side by Side Diff: Source/web/PluginPlaceholderImpl.cpp

Issue 698533003: Implement support for closing shadow DOM plugin placeholders. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: mkwst comments Created 6 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "web/PluginPlaceholderImpl.h" 6 #include "web/PluginPlaceholderImpl.h"
7 7
8 #include "core/dom/shadow/ShadowRoot.h" 8 #include "core/dom/shadow/ShadowRoot.h"
9 #include "core/html/HTMLPlugInElement.h" 9 #include "core/html/HTMLPlugInElement.h"
10 #include "core/html/shadow/PluginPlaceholderElement.h" 10 #include "core/html/shadow/PluginPlaceholderElement.h"
(...skipping 21 matching lines...) Expand all
32 { 32 {
33 m_placeholderElement->remove(ASSERT_NO_EXCEPTION); 33 m_placeholderElement->remove(ASSERT_NO_EXCEPTION);
34 update(); 34 update();
35 container.removeChildren(); 35 container.removeChildren();
36 container.appendChild(m_placeholderElement); 36 container.appendChild(m_placeholderElement);
37 } 37 }
38 38
39 void PluginPlaceholderImpl::update() 39 void PluginPlaceholderImpl::update()
40 { 40 {
41 m_placeholderElement->setMessage(m_webPluginPlaceholder->message()); 41 m_placeholderElement->setMessage(m_webPluginPlaceholder->message());
42 m_placeholderElement->setIsCloseable(m_webPluginPlaceholder->isCloseable());
42 } 43 }
43 44
44 } // namespace blink 45 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/plugins/testing/DictionaryPluginPlaceholder.h ('k') | Source/web/PluginPlaceholderImplTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698