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

Side by Side Diff: public/platform/WebDeviceOrientationData.h

Issue 22038002: Get rid of the tryFast*alloc API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review item. Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « public/platform/WebDeviceMotionData.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « public/platform/WebDeviceMotionData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698