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

Side by Side Diff: Source/core/html/shadow/PluginPlaceholderElement.cpp

Issue 522783002: Add a custom element to own structure of shadow DOM plugin placeholders. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Blink-in-JS Created 6 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 | Annotate | Revision Log
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698