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

Unified Diff: public/platform/Platform.h

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
Index: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index 39ba78edfd10072f763d816c7ecdd22f8c809eaa..32a771664055d8965f14439bba5fa19c1b5d5e86 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -44,8 +44,6 @@
#include "WebGraphicsContext3D.h"
#include "WebLocalizedString.h"
#include "WebLockOrientationCallback.h"
-#include "WebScreenOrientationLockType.h"
-#include "WebScreenOrientationType.h"
#include "WebSpeechSynthesizer.h"
#include "WebStorageQuotaCallbacks.h"
#include "WebStorageQuotaType.h"
@@ -91,7 +89,6 @@ class WebPublicSuffixList;
class WebRTCPeerConnectionHandler;
class WebRTCPeerConnectionHandlerClient;
class WebSandboxSupport;
-class WebScreenOrientationListener;
class WebScrollbarBehavior;
class WebSocketHandle;
class WebSocketStreamHandle;
@@ -632,24 +629,6 @@ public:
virtual void setDeviceLightListener(blink::WebDeviceLightListener*) { }
- // Screen Orientation -------------------------------------------------
- // FIXME: this is meant to be removed when the content layer will be updated.
-
- virtual void lockOrientation(WebScreenOrientationLockType) { }
- // Request a screen orientation lock and pass a |callback| object to be used
- // to notify of success/failure. The |callback| parameter is expected to be
- // owned by the implementation.
- virtual void lockOrientation(WebScreenOrientationLockType orientation, WebLockOrientationCallback* callback)
- {
- // FIXME: remove this when
- // lockOrientation(orientation, callback) will be handled in Chromium.
- lockOrientation(orientation);
-
- delete callback; // prevents memory leak if there is no implementation.
- }
- virtual void unlockOrientation() { }
-
-
// Quota -----------------------------------------------------------
// Queries the storage partition's storage usage and quota information.
« no previous file with comments | « Source/modules/screen_orientation/ScreenOrientationController.cpp ('k') | public/platform/WebScreenOrientationListener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698