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

Unified Diff: app/multi_animation.cc

Issue 5588004: [gtk] Add fade-commit to instant suggestion for predictive instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 10 years 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 | « app/multi_animation.h ('k') | chrome/browser/autocomplete/autocomplete_edit_view_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/multi_animation.cc
diff --git a/app/multi_animation.cc b/app/multi_animation.cc
index 411708c89dd4c8a68708c24acf6b547cf4e2a97f..6001a2a13bb05d8e9d73b65ff4edb166674bc406 100644
--- a/app/multi_animation.cc
+++ b/app/multi_animation.cc
@@ -55,6 +55,12 @@ void MultiAnimation::Step(base::TimeTicks time_now) {
}
}
+void MultiAnimation::SetStartTime(base::TimeTicks start_time) {
+ Animation::SetStartTime(start_time);
+ current_value_ = 0;
+ current_part_index_ = 0;
+}
+
const MultiAnimation::Part& MultiAnimation::GetPart(int* time_ms,
size_t* part_index) {
DCHECK(*time_ms < cycle_time_ms_);
« no previous file with comments | « app/multi_animation.h ('k') | chrome/browser/autocomplete/autocomplete_edit_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698