OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ | 5 #ifndef CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ |
6 #define CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ | 6 #define CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ |
7 | 7 |
| 8 #include "third_party/WebKit/public/platform/WebScreenOrientation.h" |
| 9 |
8 namespace content { | 10 namespace content { |
9 | 11 |
10 // Interface that needs to be implemented by any backend that wants to handle | 12 // Interface that needs to be implemented by any backend that wants to handle |
11 // screen orientation lock/unlock. | 13 // screen orientation lock/unlock. |
12 class ScreenOrientationProvider { | 14 class ScreenOrientationProvider { |
13 public: | 15 public: |
14 // Lock the screen orientation to |orientations|. | 16 // Lock the screen orientation to |orientations|. |
15 virtual void LockOrientation(blink::WebScreenOrientations orientations) = 0; | 17 virtual void LockOrientation(blink::WebScreenOrientations orientations) = 0; |
16 | 18 |
17 // Unlock the screen orientation. | 19 // Unlock the screen orientation. |
18 virtual void UnlockOrientation() = 0; | 20 virtual void UnlockOrientation() = 0; |
19 | 21 |
20 virtual ~ScreenOrientationProvider() {} | 22 virtual ~ScreenOrientationProvider() {} |
21 }; | 23 }; |
22 | 24 |
23 } // namespace content | 25 } // namespace content |
24 | 26 |
25 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ | 27 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ |
OLD | NEW |