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.
5 #ifndef CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_PROVIDER_H_
6 #define CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_PROVIDER_H_
8 #include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h"
12 // Interface that needs to be implemented by any backend that wants to handle
13 // screen orientation lock/unlock.
14 class ScreenOrientationProvider
{
16 // Lock the screen orientation to |orientations|.
17 virtual void LockOrientation(
18 blink::WebScreenOrientationLockType orientations
) = 0;
20 // Unlock the screen orientation.
21 virtual void UnlockOrientation() = 0;
23 virtual ~ScreenOrientationProvider() {}
26 } // namespace content
28 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_PROVIDER_H_