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

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

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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 bool DeviceOrientationData::canProvideGamma() const 101 bool DeviceOrientationData::canProvideGamma() const
102 { 102 {
103 return m_canProvideGamma; 103 return m_canProvideGamma;
104 } 104 }
105 105
106 bool DeviceOrientationData::canProvideAbsolute() const 106 bool DeviceOrientationData::canProvideAbsolute() const
107 { 107 {
108 return m_canProvideAbsolute; 108 return m_canProvideAbsolute;
109 } 109 }
110 110
111 bool DeviceOrientationData::canProvideEventData() const
112 {
113 return canProvideAlpha() || canProvideBeta() || canProvideGamma();
114 }
115
111 } // namespace WebCore 116 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698