| Index: public/platform/WebScreenOrientationClient.h
|
| diff --git a/public/platform/WebScreenOrientationClient.h b/public/platform/WebScreenOrientationClient.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..56a74f0feef0a99ba95e2bb57e55258ca987388f
|
| --- /dev/null
|
| +++ b/public/platform/WebScreenOrientationClient.h
|
| @@ -0,0 +1,28 @@
|
| +// 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 {
|
| +public:
|
| + virtual ~WebScreenOrientationClient() { }
|
| +
|
| + // 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
|
|
|