OLD | NEW |
---|---|
(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 | |
11 namespace blink { | |
12 | |
13 PluginPlaceholderElement::PluginPlaceholderElement(Document& document) | |
14 : HTMLDivElement(document) | |
15 { | |
16 ScriptWrappable::init(this); | |
17 } | |
18 | |
19 PassRefPtrWillBeRawPtr<PluginPlaceholderElement> PluginPlaceholderElement::creat e(Document& document) | |
20 { | |
21 RefPtrWillBeRawPtr<PluginPlaceholderElement> element = adoptRefWillBeNoop(ne w PluginPlaceholderElement(document)); | |
22 element->initializePlaceholderElements(); | |
23 return element.release(); | |
24 } | |
25 | |
26 void PluginPlaceholderElement::setMessage(const String& message) | |
27 { | |
28 bool success = V8PluginPlaceholderElement::PrivateScript::messageAttributeSe tter(document().frame(), this, message); | |
29 ASSERT_UNUSED(success, success); | |
30 } | |
31 | |
32 void PluginPlaceholderElement::initializePlaceholderElements() | |
haraken
2014/08/31 14:53:33
This helper function looks redundant.
jbroman
2014/08/31 16:53:49
Yes, this could be inlined into create, if that's
| |
33 { | |
34 bool success = V8PluginPlaceholderElement::PrivateScript::initializePlacehol derElementsMethod(document().frame(), this); | |
35 ASSERT_UNUSED(success, success); | |
36 } | |
37 | |
38 } // namespace blink | |
OLD | NEW |