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

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

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.cpp
diff --git a/Source/core/frame/Screen.cpp b/Source/core/frame/Screen.cpp
index bc9184948bc1c3b855ce513e74aa6c43951dbfec..67283acac6e3be568a25bbdd4a14b3cf687d2ee9 100644
--- a/Source/core/frame/Screen.cpp
+++ b/Source/core/frame/Screen.cpp
@@ -120,4 +120,16 @@ unsigned Screen::availWidth() const
return static_cast<unsigned>(screenAvailableRect(m_frame->view()).width());
}
+const AtomicString& Screen::interfaceName() const
+{
+ return EventTargetNames::Screen;
+}
+
+ExecutionContext* Screen::executionContext() const
+{
+ if (!m_frame)
+ return 0;
+ return m_frame->document();
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698