OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PluginPlaceholderElement_h | 5 #ifndef PluginPlaceholderElement_h |
6 #define PluginPlaceholderElement_h | 6 #define PluginPlaceholderElement_h |
7 | 7 |
8 #include "core/dom/Element.h" | 8 #include "core/dom/Element.h" |
9 #include "core/html/HTMLDivElement.h" | 9 #include "core/html/HTMLDivElement.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 class PluginPlaceholderElement FINAL : public HTMLDivElement { | 13 class PluginPlaceholderElement FINAL : public HTMLDivElement { |
14 DEFINE_WRAPPERTYPEINFO(); | 14 DEFINE_WRAPPERTYPEINFO(); |
15 public: | 15 public: |
16 // Returns a null pointer if the placeholder DOM could not be built. | 16 // Returns a null pointer if the placeholder DOM could not be built. |
17 static PassRefPtrWillBeRawPtr<PluginPlaceholderElement> create(Document&); | 17 static PassRefPtrWillBeRawPtr<PluginPlaceholderElement> create(Document&); |
18 | 18 |
19 void setMessage(const String& htmlMessage); | 19 void setMessage(const String& htmlMessage); |
20 | 20 |
| 21 // Exposed for private script. |
| 22 String styleSource() const; |
| 23 |
21 // We need to get a V8PluginPlaceholderElement wrapper. | 24 // We need to get a V8PluginPlaceholderElement wrapper. |
22 // By default, this will get an V8HTMLDivElement wrapper. | 25 // By default, this will get an V8HTMLDivElement wrapper. |
23 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate*) OVERRIDE; | 26 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate*) OVERRIDE; |
24 | 27 |
25 private: | 28 private: |
26 explicit PluginPlaceholderElement(Document&); | 29 explicit PluginPlaceholderElement(Document&); |
27 }; | 30 }; |
28 | 31 |
29 } // namespace blink | 32 } // namespace blink |
30 | 33 |
31 #endif // PluginPlaceholderElement_h | 34 #endif // PluginPlaceholderElement_h |
OLD | NEW |