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

Issue 529813002: Simplify HomeCardGestureManager::UpdateScrollState() (Closed)

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

Description

Simplify HomeCardGestureManager::UpdateScrollState() This CL: - Prevents HomeCardGestureManager from calling OnGestureProgressed() with |from_state| == |to_state| - This fixes the minimized home card's opacity being incorrectly set when dragging down from the minimized state - Removes unnecessary |HomeCardGestureManager::last_state_| BUG=409666 TEST=HomeCardGestureManagerTest.* Committed: https://crrev.com/eaf470240e7579c5036b5ffb184815dcdd02f53f Cr-Commit-Position: refs/heads/master@{#293232}

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -33 lines) Patch
M athena/home/home_card_gesture_manager.h View 1 2 3 2 chunks +7 lines, -8 lines 0 comments Download
M athena/home/home_card_gesture_manager.cc View 1 2 3 chunks +7 lines, -15 lines 0 comments Download
M athena/home/home_card_gesture_manager_unittest.cc View 1 2 3 6 chunks +54 lines, -6 lines 0 comments Download
M athena/home/home_card_impl.cc View 1 2 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
pkotwicz
mukai@ PTAL
6 years, 3 months ago (2014-09-01 16:24:31 UTC) #2
Jun Mukai
Also, please write the tests. I believe this could be captured in home_card_gesture_manager_unittest.cc https://codereview.chromium.org/529813002/diff/1/athena/home/home_card_gesture_manager.h File ...
6 years, 3 months ago (2014-09-02 03:51:43 UTC) #3
pkotwicz
Mukai, can you please take another look? https://codereview.chromium.org/529813002/diff/1/athena/home/home_card_gesture_manager.h File athena/home/home_card_gesture_manager.h (right): https://codereview.chromium.org/529813002/diff/1/athena/home/home_card_gesture_manager.h#newcode31 athena/home/home_card_gesture_manager.h:31: // |from_state| ...
6 years, 3 months ago (2014-09-02 04:41:32 UTC) #4
Jun Mukai
Hmmm, sorry, my comment was wrong and fixing on home_card_gesture_manager doesn't look better... It is ...
6 years, 3 months ago (2014-09-02 08:22:42 UTC) #5
pkotwicz
mukai@, can you please take another look? I thought about this some more. The names ...
6 years, 3 months ago (2014-09-03 03:41:51 UTC) #6
pkotwicz
Correction: if (from_state == VISIBLE_CENTERED || (to_state == VISIBLE_CENTERED && progress < 1.0f) { // ...
6 years, 3 months ago (2014-09-03 03:46:58 UTC) #7
Jun Mukai
lgtm Great, thanks. I also imagine that the name 'from_' and 'to_' are misleading, it's ...
6 years, 3 months ago (2014-09-03 07:16:49 UTC) #8
pkotwicz
I did not change the parameter names because I could not think of better names. ...
6 years, 3 months ago (2014-09-03 20:33:01 UTC) #11
pkotwicz
I did not change the parameter names because I could not think of better names. ...
6 years, 3 months ago (2014-09-03 20:33:02 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/529813002/60001
6 years, 3 months ago (2014-09-03 20:34:10 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/529813002/60001
6 years, 3 months ago (2014-09-03 23:23:25 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001) as c60e2769f9d1c18464a308c8dfca592384d19364
6 years, 3 months ago (2014-09-04 00:17:37 UTC) #18
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:28:55 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/eaf470240e7579c5036b5ffb184815dcdd02f53f
Cr-Commit-Position: refs/heads/master@{#293232}

Powered by Google App Engine
This is Rietveld 408576698