Chromium Code Reviews| Index: content/browser/screen_orientation/screen_orientation_provider.h |
| diff --git a/content/browser/screen_orientation/screen_orientation_provider.h b/content/browser/screen_orientation/screen_orientation_provider.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..34d77c6d41ec1c7f1576cdb1cf6fe947dd65b664 |
| --- /dev/null |
| +++ b/content/browser/screen_orientation/screen_orientation_provider.h |
| @@ -0,0 +1,25 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ |
| +#define CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ |
| + |
| +namespace content { |
| + |
| +// Interface that needs to be implemented by any backend that wants to handle |
| +// screen orientation lock/unlock. |
| +class ScreenOrientationProvider { |
| + public: |
| + // Lock the screen orientation to |orientations|. |
| + virtual void LockOrientation(blink::WebScreenOrientations orientations) = 0; |
| + |
| + // Unlock the screen orientation. |
| + virtual void UnlockOrientation() = 0; |
| + |
| + 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.
|
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ |