diff options
author | Che-Liang Chiou <clchiou@chromium.org> | 2012-10-11 14:35:58 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-10-24 12:55:44 -0700 |
commit | bad2e4fa08064ecc27b7e24e810b4daa44437e72 (patch) | |
tree | 86427345ce52de474ffb0654fe0ffa761d864e66 /src/activity_replay.cc | |
parent | 77d770b03bd4cbd9003f20fbf75a4ed7f2b2b346 (diff) | |
download | libchrome-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.cc | 4 |
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, |