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

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: Blink-in-JS Created 6 years, 4 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..7fa995fe4cb713e9c6caf4cbbf4899304c4d1cd8
--- /dev/null
+++ b/Source/core/html/shadow/PluginPlaceholderElement.h
@@ -0,0 +1,28 @@
+// 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 {
+public:
+ // Returns a null pointer if the placeholder DOM could not be built.
+ static PassRefPtrWillBeRawPtr<PluginPlaceholderElement> create(Document&);
+
+ void setMessage(const String&);
+
+private:
+ explicit PluginPlaceholderElement(Document&);
+
+ void initializePlaceholderElements();
+};
+
+} // namespace blink
+
+#endif // PluginPlaceholderElement_h

Powered by Google App Engine
This is Rietveld 408576698