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

Unified Diff: Source/modules/screen_orientation/OrientationInformation.cpp

Issue 364253007: Revert of [screen-orientation] Expose orientation info in OrientationInformation interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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/modules/screen_orientation/OrientationInformation.cpp
diff --git a/Source/modules/screen_orientation/OrientationInformation.cpp b/Source/modules/screen_orientation/OrientationInformation.cpp
deleted file mode 100644
index 028e80d3d859ede0da03b9c603e49283d62d9ebc..0000000000000000000000000000000000000000
--- a/Source/modules/screen_orientation/OrientationInformation.cpp
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "config.h"
-#include "modules/screen_orientation/OrientationInformation.h"
-
-#include "modules/screen_orientation/ScreenOrientation.h"
-
-namespace WebCore {
-
-OrientationInformation::OrientationInformation()
- : m_type(blink::WebScreenOrientationUndefined)
- , m_angle(0)
-{
- ScriptWrappable::init(this);
-}
-
-bool OrientationInformation::initialized() const
-{
- return m_type != blink::WebScreenOrientationUndefined;
-}
-
-String OrientationInformation::type() const
-{
- return ScreenOrientation::orientationTypeToString(m_type);
-}
-
-unsigned short OrientationInformation::angle() const
-{
- return m_angle;
-}
-
-void OrientationInformation::setType(blink::WebScreenOrientationType type)
-{
- ASSERT(type != blink::WebScreenOrientationUndefined);
- m_type = type;
-}
-
-void OrientationInformation::setAngle(unsigned short angle)
-{
- m_angle = angle;
-}
-
-} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698