Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / frame / Screen.h
index b9ce445..df9e6e5 100644 (file)
@@ -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(Frameframe) { 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*);
     };