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

Unified Diff: content/common/sensors.h

Issue 7273073: Animated Rotation (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 6 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
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_

Powered by Google App Engine
This is Rietveld 408576698