Chromium Code Reviews| Index: public/platform/WebScreenOrientationClient.h |
| diff --git a/public/platform/WebScreenOrientationClient.h b/public/platform/WebScreenOrientationClient.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..72ddc39d30c2f8fb593c6fe9a776ebd720f59e26 |
| --- /dev/null |
| +++ b/public/platform/WebScreenOrientationClient.h |
| @@ -0,0 +1,26 @@ |
| +// 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 WebScreenOrientationClient_h |
| +#define WebScreenOrientationClient_h |
| + |
| +#include "public/platform/WebScreenOrientationLockType.h" |
| + |
| +namespace blink { |
| + |
| +class WebLockOrientationCallback; |
| + |
| +// Client handling screen orientation locking for a given WebView. |
| +class WebScreenOrientationClient { |
|
Inactive
2014/06/03 18:04:53
No virtual destructor?
mlamouri (slow - plz ping)
2014/06/03 19:49:30
Done.
|
| +public: |
| + // Request a screen orientation lock. The implementation will own the callback. |
| + virtual void lockOrientation(WebScreenOrientationLockType, WebLockOrientationCallback*) = 0; |
| + |
| + // Unlock the screen orientation. No-op if the screen orientation was not locked. |
| + virtual void unlockOrientation() = 0; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // WebScreenOrientationClient_h |