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

Side by Side Diff: chrome/browser/ui/views/download/download_item_view.cc

Issue 1545153002: Switch to standard integer types in chrome/browser/ui/views/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.h ('k') | chrome/browser/ui/views/download/download_item_view_md.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698