summaryrefslogtreecommitdiffstats
path: root/third_party/sudden_motion_sensor
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-13 20:59:03 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-13 20:59:03 +0000
commit00c58fa7a9accc2edfdd61561c9efd735d68f7e5 (patch)
treebb7fffda4cc6ea79ef0239293e4c3f5a2e713a63 /third_party/sudden_motion_sensor
parentb56717517cf3296c05350bbfdcfc67077abc4484 (diff)
downloadchromium_src-00c58fa7a9accc2edfdd61561c9efd735d68f7e5.zip
chromium_src-00c58fa7a9accc2edfdd61561c9efd735d68f7e5.tar.gz
chromium_src-00c58fa7a9accc2edfdd61561c9efd735d68f7e5.tar.bz2
Orientation calibration update for new MacBooks.
BUG=none TEST=orientation test on new MacBooks Review URL: https://chromiumcodereview.appspot.com/10532134 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141965 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/sudden_motion_sensor')
-rw-r--r--third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc b/third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc
index bf868dc..296e3dc 100644
--- a/third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc
+++ b/third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc
@@ -145,6 +145,8 @@ const SuddenMotionSensor::SensorDescriptor
// - MacBookAir3,2 (13" MacBook Air, late 2010)
// - MacBookAir4,1 (11" MacBook Air, mid 2011)
// - MacBookAir4,2 (13" MacBook Air, mid 2011)
+ // - MacBookAir5,1 (11" MacBook Air, mid 2012)
+ // - MacBookAir5,2 (13" MacBook Air, mid 2012)
// have no accelerometer sensors.
// Tested by crc on a 15" MacBook Pro.
@@ -203,10 +205,20 @@ const SuddenMotionSensor::SensorDescriptor
// Tested by avi on a 17" MacBook Pro.
{ "MacBookPro8,3", NULL, { { 0, false }, { 2, false }, { 4, false } } },
+ // Tested by avi on a 15" MacBook Pro.
+ { "MacBookPro9,1", NULL, { { 0, false }, { 2, false }, { 4, false } } },
+
+ // Tested by avi on a 13" MacBook Pro.
+ { "MacBookPro9,2", NULL, { { 0, false }, { 2, false }, { 4, false } } },
+
+ // Note:
+ // - MacBookPro10,1 (15" MacBook Pro with Retina display, mid 2012)
+ // has no accelerometer sensors.
+
// Generic MacBook accelerometer sensor data, to be used for future models
// until they can be tested and their data entered. Note that this generic
// configuration may well have problems with inverted axes.
- { "", NULL, { { 0, true }, { 2, true }, { 4, false } } }
+ { "", NULL, { { 0, false }, { 2, false }, { 4, false } } }
};
// Create a SuddenMotionSensor object and return NULL if no valid sensor found.