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 15 matching lines...) Expand all Loading... |
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 #include "wtf/RefCounted.h" | 30 #include "wtf/RefCounted.h" |
31 | 31 |
32 namespace blink { | 32 namespace blink { |
33 class WebDeviceOrientationData; | 33 class WebDeviceOrientationData; |
34 } | 34 } |
35 | 35 |
36 namespace WebCore { | 36 namespace blink { |
37 | 37 |
38 class DeviceOrientationData : public RefCountedWillBeGarbageCollected<DeviceOrie
ntationData> { | 38 class DeviceOrientationData : public RefCountedWillBeGarbageCollected<DeviceOrie
ntationData> { |
39 public: | 39 public: |
40 static PassRefPtrWillBeRawPtr<DeviceOrientationData> create(); | 40 static PassRefPtrWillBeRawPtr<DeviceOrientationData> create(); |
41 static PassRefPtrWillBeRawPtr<DeviceOrientationData> create(bool canProvideA
lpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, doub
le gamma, bool canProvideAbsolute = false, bool absolute = false); | 41 static PassRefPtrWillBeRawPtr<DeviceOrientationData> create(bool canProvideA
lpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, doub
le gamma, bool canProvideAbsolute = false, bool absolute = false); |
42 static PassRefPtrWillBeRawPtr<DeviceOrientationData> create(const blink::Web
DeviceOrientationData&); | 42 static PassRefPtrWillBeRawPtr<DeviceOrientationData> create(const blink::Web
DeviceOrientationData&); |
43 void trace(Visitor*) { } | 43 void trace(Visitor*) { } |
44 | 44 |
45 double alpha() const; | 45 double alpha() const; |
46 double beta() const; | 46 double beta() const; |
(...skipping 13 matching lines...) Expand all Loading... |
60 bool m_canProvideAlpha; | 60 bool m_canProvideAlpha; |
61 bool m_canProvideBeta; | 61 bool m_canProvideBeta; |
62 bool m_canProvideGamma; | 62 bool m_canProvideGamma; |
63 bool m_canProvideAbsolute; | 63 bool m_canProvideAbsolute; |
64 double m_alpha; | 64 double m_alpha; |
65 double m_beta; | 65 double m_beta; |
66 double m_gamma; | 66 double m_gamma; |
67 bool m_absolute; | 67 bool m_absolute; |
68 }; | 68 }; |
69 | 69 |
70 } // namespace WebCore | 70 } // namespace blink |
71 | 71 |
72 #endif // DeviceOrientationData_h | 72 #endif // DeviceOrientationData_h |
OLD | NEW |