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.
6 #include "core/html/shadow/PluginPlaceholderElement.h"
8 #include "bindings/core/v8/V8PluginPlaceholderElement.h"
9 #include "core/dom/Document.h"
10 #include "wtf/Assertions.h"
14 PluginPlaceholderElement::PluginPlaceholderElement(Document& document)
15 : HTMLDivElement(document)
19 PassRefPtrWillBeRawPtr<PluginPlaceholderElement> PluginPlaceholderElement::create(Document& document)
21 RefPtrWillBeRawPtr<PluginPlaceholderElement> element = adoptRefWillBeNoop(new PluginPlaceholderElement(document));
22 bool success = V8PluginPlaceholderElement::PrivateScript::createdCallbackMethod(document.frame(), element.get());
23 ASSERT_UNUSED(success, success);
24 return element.release();
27 void PluginPlaceholderElement::setMessage(const String& message)
29 bool success = V8PluginPlaceholderElement::PrivateScript::messageAttributeSetter(document().frame(), this, message);
30 ASSERT_UNUSED(success, success);