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

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

Issue 339343003: Cleanup Blink's Platform from Screen Orientation stuff. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 | « no previous file | public/platform/Platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/screen_orientation/ScreenOrientationController.cpp
diff --git a/Source/modules/screen_orientation/ScreenOrientationController.cpp b/Source/modules/screen_orientation/ScreenOrientationController.cpp
index a553065ef8cedba490184814bd55abcc45b60667..4da6dd564b19ed09f71815d193a794995b41fc7f 100644
--- a/Source/modules/screen_orientation/ScreenOrientationController.cpp
+++ b/Source/modules/screen_orientation/ScreenOrientationController.cpp
@@ -13,7 +13,6 @@
#include "core/page/Page.h"
#include "platform/LayoutTestSupport.h"
#include "platform/PlatformScreen.h"
-#include "public/platform/Platform.h"
#include "public/platform/WebScreenOrientationClient.h"
namespace WebCore {
@@ -119,8 +118,6 @@ blink::WebScreenOrientationType ScreenOrientationController::orientation() const
void ScreenOrientationController::lockOrientation(blink::WebScreenOrientationLockType orientation, blink::WebLockOrientationCallback* callback)
{
if (!m_client) {
- // FIXME: temporary until the content layer gets updated.
- blink::Platform::current()->lockOrientation(orientation, callback);
return;
}
@@ -130,8 +127,6 @@ void ScreenOrientationController::lockOrientation(blink::WebScreenOrientationLoc
void ScreenOrientationController::unlockOrientation()
{
if (!m_client) {
- // FIXME: temporary until the content layer gets updated.
- blink::Platform::current()->unlockOrientation();
return;
}
« no previous file with comments | « no previous file | public/platform/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698