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

Side by Side Diff: Source/modules/device_orientation/DeviceOrientationData.h

Issue 21256002: Fire null Device Motion events only once. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed comments 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
OLDNEW
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 double alpha() const; 44 double alpha() const;
45 double beta() const; 45 double beta() const;
46 double gamma() const; 46 double gamma() const;
47 bool absolute() const; 47 bool absolute() const;
48 bool canProvideAlpha() const; 48 bool canProvideAlpha() const;
49 bool canProvideBeta() const; 49 bool canProvideBeta() const;
50 bool canProvideGamma() const; 50 bool canProvideGamma() const;
51 bool canProvideAbsolute() const; 51 bool canProvideAbsolute() const;
52 52
53 bool canProvideEventData() const;
54
53 private: 55 private:
54 DeviceOrientationData(); 56 DeviceOrientationData();
55 DeviceOrientationData(bool canProvideAlpha, double alpha, bool canProvideBet a, double beta, bool canProvideGamma, double gamma, bool canProvideAbsolute, boo l absolute); 57 DeviceOrientationData(bool canProvideAlpha, double alpha, bool canProvideBet a, double beta, bool canProvideGamma, double gamma, bool canProvideAbsolute, boo l absolute);
56 58
57 bool m_canProvideAlpha; 59 bool m_canProvideAlpha;
58 bool m_canProvideBeta; 60 bool m_canProvideBeta;
59 bool m_canProvideGamma; 61 bool m_canProvideGamma;
60 bool m_canProvideAbsolute; 62 bool m_canProvideAbsolute;
61 double m_alpha; 63 double m_alpha;
62 double m_beta; 64 double m_beta;
63 double m_gamma; 65 double m_gamma;
64 bool m_absolute; 66 bool m_absolute;
65 }; 67 };
66 68
67 } // namespace WebCore 69 } // namespace WebCore
68 70
69 #endif // DeviceOrientationData_h 71 #endif // DeviceOrientationData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698