Revert 268405 "Make sure that ScratchBuffer::Allocate() always r..."
[chromium-blink-merge.git] / content / browser / screen_orientation / screen_orientation_provider.h
blob4ae858805b0d3d84c56afd2913f25daea200a654
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"
10 namespace content {
12 // Interface that needs to be implemented by any backend that wants to handle
13 // screen orientation lock/unlock.
14 class ScreenOrientationProvider {
15 public:
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_