summaryrefslogtreecommitdiff
path: root/src/activity_replay.cc
diff options
context:
space:
mode:
authorChe-Liang Chiou <clchiou@chromium.org>2012-10-11 14:35:58 -0700
committerGerrit <chrome-bot@google.com>2012-10-24 12:55:44 -0700
commitbad2e4fa08064ecc27b7e24e810b4daa44437e72 (patch)
tree86427345ce52de474ffb0654fe0ffa761d864e66 /src/activity_replay.cc
parent77d770b03bd4cbd9003f20fbf75a4ed7f2b2b346 (diff)
downloadlibchrome-gestures-bad2e4fa08064ecc27b7e24e810b4daa44437e72.tar.gz
Add orientation min/max to HardwareProperties
Since orientation min/max is important to scaling filter's calibration process, add it to HardwareProperties. BUG=chromium-os:29435 TEST=unittest and all regression tests passed Change-Id: Ie604b05b5a3b0a6dda682f97d332f70ed3a0bb36 Reviewed-on: https://gerrit.chromium.org/gerrit/35330 Tested-by: Che-Liang Chiou <clchiou@chromium.org> Reviewed-by: Andrew de los Reyes <adlr@chromium.org> Commit-Ready: Che-Liang Chiou <clchiou@chromium.org>
Diffstat (limited to 'src/activity_replay.cc')
-rw-r--r--src/activity_replay.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/activity_replay.cc b/src/activity_replay.cc
index 941225f..d98f3e1 100644
--- a/src/activity_replay.cc
+++ b/src/activity_replay.cc
@@ -141,6 +141,10 @@ bool ActivityReplay::ParseHardwareProperties(DictionaryValue* obj,
props.screen_x_dpi, float);
PARSE_HP(obj, ActivityLog::kKeyHardwarePropYDpi, double, GetDouble,
props.screen_y_dpi, float);
+ PARSE_HP(obj, ActivityLog::kKeyHardwarePropOrientationMinimum,
+ double, GetDouble, props.orientation_minimum, float);
+ PARSE_HP(obj, ActivityLog::kKeyHardwarePropOrientationMaximum,
+ double, GetDouble, props.orientation_maximum, float);
PARSE_HP(obj, ActivityLog::kKeyHardwarePropMaxFingerCount, int, GetInteger,
props.max_finger_cnt, unsigned short);
PARSE_HP(obj, ActivityLog::kKeyHardwarePropMaxTouchCount, int, GetInteger,