Chromium Code Reviews| 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 #include "wtf/Assertions.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 PluginPlaceholderElement::PluginPlaceholderElement(Document& document) | |
| 15 : HTMLDivElement(document) | |
|
esprehn
2014/09/09 04:13:30
We really need to stop having exotic <div>'s :/ I
jbroman
2014/09/09 14:05:23
Acknowledged.
| |
| 16 { | |
| 17 ScriptWrappable::init(this); | |
| 18 } | |
| 19 | |
| 20 PassRefPtrWillBeRawPtr<PluginPlaceholderElement> PluginPlaceholderElement::creat e(Document& document) | |
| 21 { | |
| 22 RefPtrWillBeRawPtr<PluginPlaceholderElement> element = adoptRefWillBeNoop(ne w PluginPlaceholderElement(document)); | |
| 23 bool success = V8PluginPlaceholderElement::PrivateScript::createCallbackMeth od(document.frame(), element.get()); | |
|
esprehn
2014/09/09 04:13:30
createdCallback, this should be just like a custom
jbroman
2014/09/09 14:05:23
Done.
| |
| 24 ASSERT_UNUSED(success, success); | |
| 25 return element.release(); | |
| 26 } | |
| 27 | |
| 28 void PluginPlaceholderElement::setMessage(const String& message) | |
| 29 { | |
| 30 bool success = V8PluginPlaceholderElement::PrivateScript::messageAttributeSe tter(document().frame(), this, message); | |
| 31 ASSERT_UNUSED(success, success); | |
| 32 } | |
| 33 | |
| 34 v8::Handle<v8::Object> PluginPlaceholderElement::wrap(v8::Handle<v8::Object> cre ationContext, v8::Isolate* isolate) | |
| 35 { | |
| 36 return blink::wrap(this, creationContext, isolate); | |
| 37 } | |
| 38 | |
| 39 } // namespace blink | |
| OLD | NEW |