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