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

Unified Diff: chrome/browser/device_orientation/orientation.h

Issue 3136008: Implement device_orientation::Provider. (Closed)
Patch Set: Patch Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/device_orientation/data_fetcher.h ('k') | chrome/browser/device_orientation/provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/device_orientation/orientation.h
diff --git a/chrome/browser/device_orientation/orientation.h b/chrome/browser/device_orientation/orientation.h
index d43a989b1a985a3fd675e9218292de335dfe17c9..2193170991e745d419a8a83b854e224e4ff4408c 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_;
« no previous file with comments | « chrome/browser/device_orientation/data_fetcher.h ('k') | chrome/browser/device_orientation/provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698