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

Issue 581933004: Update gesture logic. (Closed)

Created:
6 years, 3 months ago by Jun Mukai
Modified:
6 years, 3 months ago
Reviewers:
pkotwicz
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Update gesture logic. - record the original state when the gesture starts - changes the height condition for the closest state based on the original state - limit the fling handling only when the closest state ends up with the original state. This will save the most of the case, however it may cause unexpected results if the user makes complicated gestures (like moves up from minimized, up to the full-screen, then fling-down). I think this is a rare case and we don't have to care about. BUG=415211 R=pkotwicz@chromium.org TEST=athena_unittests && manually Committed: https://crrev.com/deb67ab915f05ff05495e55f0bb3e615202712a2 Cr-Commit-Position: refs/heads/master@{#295616}

Patch Set 1 #

Patch Set 2 : minor fix #

Total comments: 10

Patch Set 3 : fix #

Total comments: 4

Patch Set 4 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -23 lines) Patch
M athena/home/home_card_gesture_manager.h View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M athena/home/home_card_gesture_manager.cc View 1 2 3 4 chunks +47 lines, -12 lines 0 comments Download
M athena/home/home_card_gesture_manager_unittest.cc View 1 2 3 5 chunks +64 lines, -9 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
Jun Mukai
6 years, 3 months ago (2014-09-18 19:17:09 UTC) #1
pkotwicz
LGTM with comment nits https://codereview.chromium.org/581933004/diff/20001/athena/home/home_card_gesture_manager.cc File athena/home/home_card_gesture_manager.cc (right): https://codereview.chromium.org/581933004/diff/20001/athena/home/home_card_gesture_manager.cc#newcode16 athena/home/home_card_gesture_manager.cc:16: const int kMinimizedHomeBufferSize = 50; ...
6 years, 3 months ago (2014-09-18 21:11:50 UTC) #2
pkotwicz
https://codereview.chromium.org/581933004/diff/20001/athena/home/home_card_gesture_manager_unittest.cc File athena/home/home_card_gesture_manager_unittest.cc (right): https://codereview.chromium.org/581933004/diff/20001/athena/home/home_card_gesture_manager_unittest.cc#newcode194 athena/home/home_card_gesture_manager_unittest.cc:194: // No changes for slight changes. changes -> move ...
6 years, 3 months ago (2014-09-18 21:24:26 UTC) #3
Jun Mukai
https://codereview.chromium.org/581933004/diff/20001/athena/home/home_card_gesture_manager.cc File athena/home/home_card_gesture_manager.cc (right): https://codereview.chromium.org/581933004/diff/20001/athena/home/home_card_gesture_manager.cc#newcode16 athena/home/home_card_gesture_manager.cc:16: const int kMinimizedHomeBufferSize = 50; On 2014/09/18 21:11:50, pkotwicz ...
6 years, 3 months ago (2014-09-18 21:57:29 UTC) #4
pkotwicz
https://codereview.chromium.org/581933004/diff/40001/athena/home/home_card_gesture_manager.cc File athena/home/home_card_gesture_manager.cc (right): https://codereview.chromium.org/581933004/diff/40001/athena/home/home_card_gesture_manager.cc#newcode93 athena/home/home_card_gesture_manager.cc:93: if (last_estimated_height_ < kHomeCardMinimizedHeight + height) Nit: Can this ...
6 years, 3 months ago (2014-09-18 22:15:32 UTC) #5
Jun Mukai
https://codereview.chromium.org/581933004/diff/40001/athena/home/home_card_gesture_manager.cc File athena/home/home_card_gesture_manager.cc (right): https://codereview.chromium.org/581933004/diff/40001/athena/home/home_card_gesture_manager.cc#newcode93 athena/home/home_card_gesture_manager.cc:93: if (last_estimated_height_ < kHomeCardMinimizedHeight + height) On 2014/09/18 22:15:32, ...
6 years, 3 months ago (2014-09-18 22:33:33 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/581933004/50001
6 years, 3 months ago (2014-09-18 22:34:35 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:50001) as 47f4c25298e0f58c976d914cbe309878dad27dfd
6 years, 3 months ago (2014-09-19 00:10:40 UTC) #9
commit-bot: I haz the power
6 years, 3 months ago (2014-09-19 00:11:24 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/deb67ab915f05ff05495e55f0bb3e615202712a2
Cr-Commit-Position: refs/heads/master@{#295616}

Powered by Google App Engine
This is Rietveld 408576698