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

Unified Diff: third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc

Issue 10532134: Orientation calibration update for new MacBooks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc
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 bf868dc30573a6fd87ae71d52335eb85404c94c9..296e3dcad2ab1a3042d86520883e77c7de96d48e 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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698