Index: Source/core/frame/Screen.h |
diff --git a/Source/core/frame/Screen.h b/Source/core/frame/Screen.h |
index b9ce445318b6a981a76c788fdd9474a26faab420..df9e6e517e0735f601f5df0751e4da3c9514b1f2 100644 |
--- a/Source/core/frame/Screen.h |
+++ b/Source/core/frame/Screen.h |
@@ -31,7 +31,9 @@ |
#define Screen_h |
#include "bindings/v8/ScriptWrappable.h" |
+#include "core/events/EventTarget.h" |
#include "core/frame/DOMWindowProperty.h" |
+#include "platform/Supplementable.h" |
#include "wtf/PassRefPtr.h" |
#include "wtf/RefCounted.h" |
@@ -39,9 +41,10 @@ namespace WebCore { |
class Frame; |
- class Screen FINAL : public ScriptWrappable, public RefCounted<Screen>, public DOMWindowProperty { |
+ class Screen FINAL : public ScriptWrappable, public RefCounted<Screen>, public EventTargetWithInlineData, public DOMWindowProperty, public Supplementable<Screen> { |
+ REFCOUNTED_EVENT_TARGET(Screen); |
public: |
- static PassRefPtr<Screen> create(Frame *frame) { return adoptRef(new Screen(frame)); } |
+ static PassRefPtr<Screen> create(Frame* frame) { return adoptRef(new Screen(frame)); } |
unsigned height() const; |
unsigned width() const; |
@@ -52,6 +55,10 @@ namespace WebCore { |
unsigned availHeight() const; |
unsigned availWidth() const; |
+ // EventTarget. |
+ virtual const AtomicString& interfaceName() const OVERRIDE; |
+ virtual ExecutionContext* executionContext() const OVERRIDE; |
+ |
private: |
explicit Screen(Frame*); |
}; |