summaryrefslogtreecommitdiffstats
path: root/chrome/browser/device_orientation/orientation.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/device_orientation/orientation.h')
-rw-r--r--chrome/browser/device_orientation/orientation.h6
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_;