OLD | NEW |
| (Empty) |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef OrientationInformation_h | |
6 #define OrientationInformation_h | |
7 | |
8 #include "bindings/core/v8/ScriptWrappable.h" | |
9 #include "public/platform/WebScreenOrientationType.h" | |
10 #include "wtf/text/WTFString.h" | |
11 | |
12 namespace WebCore { | |
13 | |
14 // OrientationInformation is the C++ counter-part of the OrientationInformation | |
15 // web interface. It is GarbageCollectedFinalized because ScriptWrappable | |
16 // requires it. | |
17 class OrientationInformation FINAL | |
18 : public GarbageCollectedFinalized<OrientationInformation> | |
19 , public ScriptWrappable { | |
20 public: | |
21 OrientationInformation(); | |
22 bool initialized() const; | |
23 | |
24 String type() const; | |
25 unsigned short angle() const; | |
26 | |
27 void setType(blink::WebScreenOrientationType); | |
28 void setAngle(unsigned short); | |
29 | |
30 void trace(Visitor*) { } | |
31 | |
32 private: | |
33 blink::WebScreenOrientationType m_type; | |
34 unsigned short m_angle; | |
35 }; | |
36 | |
37 } // namespace WebCore | |
38 | |
39 #endif // OrientationInformation_h | |
OLD | NEW |