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

Unified Diff: public/platform/WebScreenOrientationClient.h

Issue 315693002: Use WebViewClient instead of BlinkPlatform for screen lock. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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/WebScreenOrientationClient.h
diff --git a/public/platform/WebScreenOrientationClient.h b/public/platform/WebScreenOrientationClient.h
new file mode 100644
index 0000000000000000000000000000000000000000..72ddc39d30c2f8fb593c6fe9a776ebd720f59e26
--- /dev/null
+++ b/public/platform/WebScreenOrientationClient.h
@@ -0,0 +1,26 @@
+// 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.
+
+#ifndef WebScreenOrientationClient_h
+#define WebScreenOrientationClient_h
+
+#include "public/platform/WebScreenOrientationLockType.h"
+
+namespace blink {
+
+class WebLockOrientationCallback;
+
+// Client handling screen orientation locking for a given WebView.
+class WebScreenOrientationClient {
Inactive 2014/06/03 18:04:53 No virtual destructor?
mlamouri (slow - plz ping) 2014/06/03 19:49:30 Done.
+public:
+ // Request a screen orientation lock. The implementation will own the callback.
+ virtual void lockOrientation(WebScreenOrientationLockType, WebLockOrientationCallback*) = 0;
+
+ // Unlock the screen orientation. No-op if the screen orientation was not locked.
+ virtual void unlockOrientation() = 0;
+};
+
+} // namespace blink
+
+#endif // WebScreenOrientationClient_h

Powered by Google App Engine
This is Rietveld 408576698