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

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

Issue 132113006: Add initial Blink-side support for the Screen Orientation API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update compile-time assertion for matching enum 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
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;
abarth-chromium 2014/02/15 18:44:27 Is it ok for this to return 0?
+
private:
explicit Screen(Frame*);
};

Powered by Google App Engine
This is Rietveld 408576698