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

Unified Diff: Source/core/html/shadow/PluginPlaceholderElement.h

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: rebase 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/html/shadow/PluginPlaceholderElement.h
diff --git a/Source/core/html/shadow/PluginPlaceholderElement.h b/Source/core/html/shadow/PluginPlaceholderElement.h
new file mode 100644
index 0000000000000000000000000000000000000000..5481a57fba46b28390321c7cb3a64e118f152f35
--- /dev/null
+++ b/Source/core/html/shadow/PluginPlaceholderElement.h
@@ -0,0 +1,31 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PluginPlaceholderElement_h
+#define PluginPlaceholderElement_h
+
+#include "core/dom/Element.h"
+#include "core/html/HTMLDivElement.h"
+
+namespace blink {
+
+class PluginPlaceholderElement FINAL : public HTMLDivElement {
+ DEFINE_WRAPPERTYPEINFO();
+public:
+ // Returns a null pointer if the placeholder DOM could not be built.
esprehn 2014/09/09 04:13:30 Remove comment, this should never fail.
jbroman 2014/09/09 14:05:23 Done.
+ static PassRefPtrWillBeRawPtr<PluginPlaceholderElement> create(Document&);
+
+ void setMessage(const String&);
+
+ // We need to get a V8PluginPlaceholderElement wrapper.
+ // By default, this will get an V8HTMLDivElement wrapper.
+ virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) OVERRIDE;
+
+private:
+ explicit PluginPlaceholderElement(Document&);
+};
+
+} // namespace blink
+
+#endif // PluginPlaceholderElement_h

Powered by Google App Engine
This is Rietveld 408576698