| Index: Source/core/frame/Screen.h
|
| diff --git a/Source/core/frame/Screen.h b/Source/core/frame/Screen.h
|
| index b9ce445318b6a981a76c788fdd9474a26faab420..14d0032f0596811aaffa91e2e6566002b8d87ad0 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,7 +41,8 @@ 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)); }
|
|
|
| @@ -52,6 +55,9 @@ namespace WebCore {
|
| unsigned availHeight() const;
|
| unsigned availWidth() const;
|
|
|
| + virtual const AtomicString& interfaceName() const OVERRIDE;
|
| + virtual ExecutionContext* executionContext() const OVERRIDE;
|
| +
|
| private:
|
| explicit Screen(Frame*);
|
| };
|
|
|