OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * * Redistributions of source code must retain the above copyright | 7 * * Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * * Redistributions in binary form must reproduce the above copyright | 9 * * Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #ifndef DeviceOrientationData_h | 26 #ifndef DeviceOrientationData_h |
27 #define DeviceOrientationData_h | 27 #define DeviceOrientationData_h |
28 | 28 |
29 #include "platform/heap/Handle.h" | 29 #include "platform/heap/Handle.h" |
30 | 30 |
31 namespace blink { | 31 namespace blink { |
32 | 32 |
33 class WebDeviceOrientationData; | 33 class WebDeviceOrientationData; |
34 | 34 |
35 class DeviceOrientationData FINAL : public GarbageCollected<DeviceOrientationDat
a> { | 35 class DeviceOrientationData final : public GarbageCollected<DeviceOrientationDat
a> { |
36 public: | 36 public: |
37 static DeviceOrientationData* create(); | 37 static DeviceOrientationData* create(); |
38 static DeviceOrientationData* create(bool canProvideAlpha, double alpha, boo
l canProvideBeta, double beta, bool canProvideGamma, double gamma, bool canProvi
deAbsolute = false, bool absolute = false); | 38 static DeviceOrientationData* create(bool canProvideAlpha, double alpha, boo
l canProvideBeta, double beta, bool canProvideGamma, double gamma, bool canProvi
deAbsolute = false, bool absolute = false); |
39 static DeviceOrientationData* create(const WebDeviceOrientationData&); | 39 static DeviceOrientationData* create(const WebDeviceOrientationData&); |
40 void trace(Visitor*) { } | 40 void trace(Visitor*) { } |
41 | 41 |
42 double alpha() const; | 42 double alpha() const; |
43 double beta() const; | 43 double beta() const; |
44 double gamma() const; | 44 double gamma() const; |
45 bool absolute() const; | 45 bool absolute() const; |
(...skipping 14 matching lines...) Expand all Loading... |
60 bool m_canProvideAbsolute; | 60 bool m_canProvideAbsolute; |
61 double m_alpha; | 61 double m_alpha; |
62 double m_beta; | 62 double m_beta; |
63 double m_gamma; | 63 double m_gamma; |
64 bool m_absolute; | 64 bool m_absolute; |
65 }; | 65 }; |
66 | 66 |
67 } // namespace blink | 67 } // namespace blink |
68 | 68 |
69 #endif // DeviceOrientationData_h | 69 #endif // DeviceOrientationData_h |
OLD | NEW |