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

Unified Diff: athena/home/home_card_gesture_manager.h

Issue 581933004: Update gesture logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years, 3 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_gesture_manager.cc » ('j') | no next file with comments »
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 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_;
« no previous file with comments | « no previous file | athena/home/home_card_gesture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698