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

Unified Diff: ash/shelf/shelf_view.cc

Issue 1975533002: Change ui::Event::time_stamp from TimeDelta to TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates Created 4 years, 7 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
Index: ash/shelf/shelf_view.cc
diff --git a/ash/shelf/shelf_view.cc b/ash/shelf/shelf_view.cc
index ffa1141d40b76bf2f796cedc0567a751690ef307..9e9a173a39607b635b2e96dd43fd2af10713c951 100644
--- a/ash/shelf/shelf_view.cc
+++ b/ash/shelf/shelf_view.cc
@@ -1619,8 +1619,6 @@ void ShelfView::ShelfItemChanged(int model_index, const ShelfItem& old_item) {
view_model_->Add(new_view, model_index);
view_model_->set_ideal_bounds(model_index, old_ideal_bounds);
new_view->SetBoundsRect(old_view->bounds());
- if (overflow_button_ && overflow_button_->visible())
- AnimateToIdealBounds();
return;
}
@@ -1869,7 +1867,7 @@ bool ShelfView::IsRepostEvent(const ui::Event& event) {
return false;
base::TimeDelta delta =
- base::TimeDelta(event.time_stamp() - closing_event_time_);
+ (event.time_stamp() - base::TimeTicks()) - closing_event_time_;
closing_event_time_ = base::TimeDelta();
// If the current (press down) event is a repost event, the time stamp of
// these two events should be the same.

Powered by Google App Engine
This is Rietveld 408576698