diff options
Diffstat (limited to 'chrome/browser/device_orientation/orientation.h')
-rw-r--r-- | chrome/browser/device_orientation/orientation.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/device_orientation/orientation.h b/chrome/browser/device_orientation/orientation.h index d43a989..2193170 100644 --- a/chrome/browser/device_orientation/orientation.h +++ b/chrome/browser/device_orientation/orientation.h @@ -34,6 +34,12 @@ class Orientation { can_provide_gamma_(false) { } + static Orientation Empty() { return Orientation(); } + + bool IsEmpty() { + return !can_provide_alpha_ && !can_provide_beta_ && !can_provide_gamma_; + } + double alpha_; double beta_; double gamma_; |