Chromium Code Reviews| Index: Source/core/frame/Screen.h |
| diff --git a/Source/core/frame/Screen.h b/Source/core/frame/Screen.h |
| index b9ce445318b6a981a76c788fdd9474a26faab420..e5e03fe2b1da6d49b51aa641b2de0cf97b868193 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)); } |
|
abarth-chromium
2014/02/16 09:14:11
"Frame *frame" -> "Frame* frame"
Inactive
2014/02/16 14:09:14
Done.
|
| @@ -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*); |
| }; |