Chromium Code Reviews| OLD | NEW |
|---|---|
| (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() {}; | |
|
jochen (gone - plz use gerrit)
2014/02/25 16:23:06
nit. no ; at EOL
mlamouri (slow - plz ping)
2014/02/28 11:53:30
Done.
| |
| 21 }; | |
| 22 | |
| 23 } // namespace content | |
| 24 | |
| 25 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ | |
| OLD | NEW |