Index: content/common/sensors.h |
diff --git a/content/common/sensors.h b/content/common/sensors.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f2a6c1b45b5649ffe9f42fdb6ff4f61cce052bfc |
--- /dev/null |
+++ b/content/common/sensors.h |
@@ -0,0 +1,32 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_COMMON_SENSORS_H_ |
+#define CONTENT_COMMON_SENSORS_H_ |
+#pragma once |
+ |
+namespace sensors { |
+ |
+enum Channel { |
+ kScreenOrientationChannel, |
+}; |
+ |
+struct ScreenOrientationChange { |
+ enum Side { |
+ TOP = 0, |
+ BOTTOM = 1, |
+ LEFT = 2, |
+ RIGHT = 3, |
+ FRONT = 4, |
+ BACK = 5, |
+ }; |
+ |
+ // The side of the device which the user probably perceives as facing upward. |
+ // This can be used to orient controls and content in a "natural" direction. |
+ Side upward; |
+}; |
+ |
+} // namespace sensors |
+ |
+#endif // CONTENT_COMMON_SENSORS_H_ |