OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/views/download/download_item_view.h" | 5 #include "chrome/browser/ui/views/download/download_item_view.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/bind.h" | 12 #include "base/bind.h" |
11 #include "base/callback.h" | 13 #include "base/callback.h" |
12 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
13 #include "base/i18n/break_iterator.h" | 15 #include "base/i18n/break_iterator.h" |
14 #include "base/i18n/rtl.h" | 16 #include "base/i18n/rtl.h" |
15 #include "base/location.h" | 17 #include "base/location.h" |
16 #include "base/metrics/histogram.h" | 18 #include "base/metrics/histogram.h" |
(...skipping 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1389 void DownloadItemView::AnimateStateTransition(State from, State to, | 1391 void DownloadItemView::AnimateStateTransition(State from, State to, |
1390 gfx::SlideAnimation* animation) { | 1392 gfx::SlideAnimation* animation) { |
1391 if (from == NORMAL && to == HOT) { | 1393 if (from == NORMAL && to == HOT) { |
1392 animation->Show(); | 1394 animation->Show(); |
1393 } else if (from == HOT && to == NORMAL) { | 1395 } else if (from == HOT && to == NORMAL) { |
1394 animation->Hide(); | 1396 animation->Hide(); |
1395 } else if (from != to) { | 1397 } else if (from != to) { |
1396 animation->Reset((to == HOT) ? 1.0 : 0.0); | 1398 animation->Reset((to == HOT) ? 1.0 : 0.0); |
1397 } | 1399 } |
1398 } | 1400 } |
OLD | NEW |