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 1bc122f673113aa619f7090577aef20857efd78a..bd27e61d947b365057972b9aec65c3f8067cee34 100644 |
--- a/athena/home/home_card_gesture_manager.h |
+++ b/athena/home/home_card_gesture_manager.h |
@@ -44,14 +44,17 @@ class ATHENA_EXPORT HomeCardGestureManager { |
void ProcessGestureEvent(ui::GestureEvent* event); |
private: |
- // Get the closest state from the last position. |
- HomeCard::State GetClosestState() const; |
+ // Get the final state from the last position. |
+ HomeCard::State GetFinalState() const; |
// Update the current position and emits OnGestureProgressed(). |
void UpdateScrollState(const ui::GestureEvent& event); |
Delegate* delegate_; // Not owned. |
+ // The state when the gesture starts. |
+ HomeCard::State original_state_; |
+ |
// The offset from the top edge of the home card and the initial position of |
// gesture. |
int y_offset_; |