Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: Source/modules/screen_orientation/OrientationInformation.h

Issue 366853008: [screen-orientation] Expose orientation info in OrientationInformation interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update ctor listing Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/screen_orientation/OrientationInformation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698