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

Side by Side Diff: content/browser/screen_orientation/screen_orientation_provider.h

Issue 177793003: Chromium plumbing for Screen Orientation API lock/unlock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chromium_plumbing_screen_orientation
Patch Set: fix compilation issue Created 6 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_
6 #define CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_
7
8 namespace content {
9
10 // Interface that needs to be implemented by any backend that wants to handle
11 // screen orientation lock/unlock.
12 class ScreenOrientationProvider {
13 public:
14 // Lock the screen orientation to |orientations|.
15 virtual void LockOrientation(blink::WebScreenOrientations orientations) = 0;
16
17 // Unlock the screen orientation.
18 virtual void UnlockOrientation() = 0;
19
20 virtual ~ScreenOrientationProvider() {}
21 };
22
23 } // namespace content
24
25 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698