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

Unified Diff: athena/home/home_card_gesture_manager.h

Issue 529813002: Simplify HomeCardGestureManager::UpdateScrollState() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | athena/home/home_card_impl.cc » ('j') | athena/home/home_card_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/home/home_card_gesture_manager.h
diff --git a/athena/home/home_card_gesture_manager.h b/athena/home/home_card_gesture_manager.h
index 8749b91d8cb426be204f5b5822c9e46283603e47..e8f48d72e16b23026f2b37f8a7698b68d7001243 100644
--- a/athena/home/home_card_gesture_manager.h
+++ b/athena/home/home_card_gesture_manager.h
@@ -24,13 +24,13 @@ class ATHENA_EXPORT HomeCardGestureManager {
// end up with |final_state|.
virtual void OnGestureEnded(HomeCard::State final_state) = 0;
- // Called when the gesture position is updated so that |delegate| should
- // update the visual. The arguments represent the state of the current
- // gesture position is switching from |from_state| to |to_state|, and
- // the level of the progress is at |progress|, which is 0 to 1.
- // |from_state| and |to_state| could be same. For example, if the user moves
- // the finger down to the bottom of the screen, both states are MINIMIZED.
- // In that case |progress| is 0.
+ // Called when the gesture position is updated so that |delegate| updates
+ // the visual. The arguments indicate that the gesture is switching from
+ // |from_state| to |to_state|, and that the level of progress is at
+ // |progress|, which is 0 to 1.
+ // |from_state| may be equal to |to_state| but only if
Jun Mukai 2014/09/02 03:51:42 I think from_state could be equal to to_state and
pkotwicz 2014/09/02 04:41:32 With the current implementation of UpdateScrollSta
+ // |from_state| == VISIBLE_MINIMIZED. This occurs if the user moves their
+ // finger to the bottom of the screen.
virtual void OnGestureProgressed(
HomeCard::State from_state,
HomeCard::State to_state,
« no previous file with comments | « no previous file | athena/home/home_card_impl.cc » ('j') | athena/home/home_card_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698