diff options
author | Andrew de los Reyes <adlr@chromium.org> | 2013-01-17 15:00:10 -0800 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-01-18 11:19:01 -0800 |
commit | fe4440680a696ad417570c3eb1305b2bab17858f (patch) | |
tree | 97bf2e7733c042f5782a1cf366f055b2b9a0cade /src/activity_replay.cc | |
parent | b4ca6d5fd724c99fda24290419b13e3988307eaa (diff) | |
download | libchrome-gestures-fe4440680a696ad417570c3eb1305b2bab17858f.tar.gz |
New gesture: SwipeLift: When a 3f swipe ends
This CL adds a new gesture type that represents a 3 finger swipe
ending. This CL doesn't actually include code to generate it; that
will be a followup CL.
BUG=chromium-os:38007
TEST=link/simple_3f_swipe regression test
Change-Id: I953bc2ee2f77ae946cc66868807865283515f9b1
Reviewed-on: https://gerrit.chromium.org/gerrit/41614
Reviewed-by: Yufeng Shen <miletus@chromium.org>
Commit-Queue: Andrew de los Reyes <adlr@chromium.org>
Tested-by: Andrew de los Reyes <adlr@chromium.org>
Diffstat (limited to 'src/activity_replay.cc')
-rw-r--r-- | src/activity_replay.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/activity_replay.cc b/src/activity_replay.cc index 322a097..40bc679 100644 --- a/src/activity_replay.cc +++ b/src/activity_replay.cc @@ -343,6 +343,9 @@ bool ActivityReplay::ParseGesture(DictionaryValue* entry) { } else if (gesture_type == ActivityLog::kValueGestureTypeSwipe) { if (!ParseGestureSwipe(entry, &gs)) return false; + } else if (gesture_type == ActivityLog::kValueGestureTypeSwipeLift) { + if (!ParseGestureSwipeLift(entry, &gs)) + return false; } else if (gesture_type == ActivityLog::kValueGestureTypePinch) { if (!ParseGesturePinch(entry, &gs)) return false; @@ -409,6 +412,12 @@ bool ActivityReplay::ParseGestureSwipe(DictionaryValue* entry, return true; } +bool ActivityReplay::ParseGestureSwipeLift(DictionaryValue* entry, + Gesture* out_gs) { + out_gs->type = kGestureTypeSwipeLift; + return true; +} + bool ActivityReplay::ParseGesturePinch(DictionaryValue* entry, Gesture* out_gs) { out_gs->type = kGestureTypePinch; |