| Index: Source/modules/screen_orientation/OrientationInformation.h
|
| diff --git a/Source/modules/screen_orientation/OrientationInformation.h b/Source/modules/screen_orientation/OrientationInformation.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8275f4d57f8843ec23fd3775613aa62f81f54633
|
| --- /dev/null
|
| +++ b/Source/modules/screen_orientation/OrientationInformation.h
|
| @@ -0,0 +1,47 @@
|
| +// 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 OrientationInformation_h
|
| +#define OrientationInformation_h
|
| +
|
| +#include "bindings/core/v8/ScriptWrappable.h"
|
| +#include "public/platform/WebScreenOrientationType.h"
|
| +
|
| +namespace WebCore {
|
| +
|
| +class OrientationInformation FINAL
|
| + : public GarbageCollectedFinalized<OrientationInformation>
|
| + , public ScriptWrappable {
|
| +public:
|
| + // Returns an OrientationInformation instance filed with fake values.
|
| + static OrientationInformation* createFake();
|
| +
|
| + virtual ~OrientationInformation();
|
| +
|
| + bool initialized() const;
|
| +
|
| + String type() const;
|
| + unsigned short angle() const;
|
| +
|
| + void trace(Visitor*) { }
|
| +
|
| +protected:
|
| + friend class ScreenOrientationController;
|
| +
|
| + OrientationInformation();
|
| + OrientationInformation(const OrientationInformation&);
|
| + bool operator==(const OrientationInformation&);
|
| + bool operator!=(const OrientationInformation&);
|
| +
|
| + void setType(blink::WebScreenOrientationType);
|
| + void setAngle(unsigned short);
|
| +
|
| +private:
|
| + blink::WebScreenOrientationType m_type;
|
| + unsigned short m_angle;
|
| +};
|
| +
|
| +} // namespace WebCore
|
| +
|
| +#endif // OrientationInformation_h
|
|
|