Chromium Code Reviews| 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 |