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

Side by Side Diff: Source/core/html/shadow/PluginPlaceholderElement.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, 3 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "config.h"
6 #include "core/html/shadow/PluginPlaceholderElement.h"
7
8 #include "bindings/core/v8/V8PluginPlaceholderElement.h"
9 #include "core/dom/Document.h"
10 #include "wtf/Assertions.h"
11
12 namespace blink {
13
14 PluginPlaceholderElement::PluginPlaceholderElement(Document& document)
15 : HTMLDivElement(document)
16 {
17 }
18
19 PassRefPtrWillBeRawPtr<PluginPlaceholderElement> PluginPlaceholderElement::creat e(Document& document)
20 {
21 RefPtrWillBeRawPtr<PluginPlaceholderElement> element = adoptRefWillBeNoop(ne w PluginPlaceholderElement(document));
22 bool success = V8PluginPlaceholderElement::PrivateScript::createdCallbackMet hod(document.frame(), element.get());
23 ASSERT_UNUSED(success, success);
24 return element.release();
25 }
26
27 void PluginPlaceholderElement::setMessage(const String& message)
28 {
29 bool success = V8PluginPlaceholderElement::PrivateScript::messageAttributeSe tter(document().frame(), this, message);
30 ASSERT_UNUSED(success, success);
31 }
32
33 void PluginPlaceholderElement::setIsCloseable(bool closeable)
34 {
35 bool success = V8PluginPlaceholderElement::PrivateScript::closeableAttribute Setter(document().frame(), this, closeable);
36 ASSERT_UNUSED(success, success);
37 }
38
39 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/shadow/PluginPlaceholderElement.h ('k') | Source/core/html/shadow/PluginPlaceholderElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698