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

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

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/frame/Screen.h ('k') | Source/core/frame/Screen.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/frame/Screen.h ('k') | Source/core/frame/Screen.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698