Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(842)

Unified Diff: Source/core/frame/Screen.h

Issue 168763002: Add initial Screen Orientation API support: IDL changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix remaining nits Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/events/EventTargetFactory.in ('k') | Source/core/frame/Screen.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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*);
};
« no previous file with comments | « Source/core/events/EventTargetFactory.in ('k') | Source/core/frame/Screen.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698