| Index: trunk/public/platform/WebLockOrientationCallback.h
|
| ===================================================================
|
| --- trunk/public/platform/WebLockOrientationCallback.h (revision 196345)
|
| +++ trunk/public/platform/WebLockOrientationCallback.h (working copy)
|
| @@ -2,4 +2,27 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "public/platform/modules/screen_orientation/WebLockOrientationCallback.h"
|
| +#ifndef WebLockOrientationCallback_h
|
| +#define WebLockOrientationCallback_h
|
| +
|
| +#include "public/platform/WebLockOrientationError.h"
|
| +#include "public/platform/WebScreenOrientationType.h"
|
| +
|
| +namespace blink {
|
| +
|
| +// WebScreenOrientationType is an interface to be used by the embedder in order
|
| +// to inform Blink when a screen lock operation has succeeded or failed.
|
| +// A success notification comes with the new orientation angle and orientation
|
| +// type and a failure notification comes with an information about the type of
|
| +// failure.
|
| +class WebLockOrientationCallback {
|
| +public:
|
| + virtual ~WebLockOrientationCallback() { }
|
| +
|
| + virtual void onSuccess() = 0;
|
| + virtual void onError(WebLockOrientationError) = 0;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // WebLockOrientationCallback_h
|
|
|