| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 bool hasBeta : 1; | 50 bool hasBeta : 1; |
| 51 bool hasGamma : 1; | 51 bool hasGamma : 1; |
| 52 | 52 |
| 53 bool absolute : 1; | 53 bool absolute : 1; |
| 54 bool hasAbsolute : 1; | 54 bool hasAbsolute : 1; |
| 55 | 55 |
| 56 bool allAvailableSensorsAreActive : 1; | 56 bool allAvailableSensorsAreActive : 1; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 #if WEBKIT_IMPLEMENTATION | 59 #if WEBKIT_IMPLEMENTATION |
| 60 #include "wtf/Assertions.h" |
| 61 |
| 60 COMPILE_ASSERT(sizeof(WebDeviceOrientationData) == (3 * sizeof(double) + 1 * siz
eof(char)), WebDeviceOrientationData_has_wrong_size); | 62 COMPILE_ASSERT(sizeof(WebDeviceOrientationData) == (3 * sizeof(double) + 1 * siz
eof(char)), WebDeviceOrientationData_has_wrong_size); |
| 61 #endif | 63 #endif |
| 62 | 64 |
| 63 #pragma pack(pop) | 65 #pragma pack(pop) |
| 64 | 66 |
| 65 } // namespace WebKit | 67 } // namespace WebKit |
| 66 | 68 |
| 67 #endif // WebDeviceOrientationData_h | 69 #endif // WebDeviceOrientationData_h |
| OLD | NEW |