| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "chrome/browser/extensions/api/experience_sampling_private/experience_s
ampling.h" | 26 #include "chrome/browser/extensions/api/experience_sampling_private/experience_s
ampling.h" |
| 27 #include "chrome/browser/profiles/profile.h" | 27 #include "chrome/browser/profiles/profile.h" |
| 28 #include "chrome/browser/safe_browsing/download_feedback_service.h" | 28 #include "chrome/browser/safe_browsing/download_feedback_service.h" |
| 29 #include "chrome/browser/safe_browsing/download_protection_service.h" | 29 #include "chrome/browser/safe_browsing/download_protection_service.h" |
| 30 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 30 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 31 #include "chrome/browser/themes/theme_properties.h" | 31 #include "chrome/browser/themes/theme_properties.h" |
| 32 #include "chrome/browser/ui/views/download/download_feedback_dialog_view.h" | 32 #include "chrome/browser/ui/views/download/download_feedback_dialog_view.h" |
| 33 #include "chrome/browser/ui/views/download/download_shelf_context_menu_view.h" | 33 #include "chrome/browser/ui/views/download/download_shelf_context_menu_view.h" |
| 34 #include "chrome/browser/ui/views/download/download_shelf_view.h" | 34 #include "chrome/browser/ui/views/download/download_shelf_view.h" |
| 35 #include "chrome/browser/ui/views/frame/browser_view.h" | 35 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 36 #include "chrome/grit/generated_resources.h" |
| 36 #include "content/public/browser/download_danger_type.h" | 37 #include "content/public/browser/download_danger_type.h" |
| 37 #include "grit/generated_resources.h" | |
| 38 #include "grit/theme_resources.h" | 38 #include "grit/theme_resources.h" |
| 39 #include "third_party/icu/source/common/unicode/uchar.h" | 39 #include "third_party/icu/source/common/unicode/uchar.h" |
| 40 #include "ui/accessibility/ax_view_state.h" | 40 #include "ui/accessibility/ax_view_state.h" |
| 41 #include "ui/base/l10n/l10n_util.h" | 41 #include "ui/base/l10n/l10n_util.h" |
| 42 #include "ui/base/resource/resource_bundle.h" | 42 #include "ui/base/resource/resource_bundle.h" |
| 43 #include "ui/base/theme_provider.h" | 43 #include "ui/base/theme_provider.h" |
| 44 #include "ui/events/event.h" | 44 #include "ui/events/event.h" |
| 45 #include "ui/gfx/animation/slide_animation.h" | 45 #include "ui/gfx/animation/slide_animation.h" |
| 46 #include "ui/gfx/canvas.h" | 46 #include "ui/gfx/canvas.h" |
| 47 #include "ui/gfx/color_utils.h" | 47 #include "ui/gfx/color_utils.h" |
| (...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1391 void DownloadItemView::AnimateStateTransition(State from, State to, | 1391 void DownloadItemView::AnimateStateTransition(State from, State to, |
| 1392 gfx::SlideAnimation* animation) { | 1392 gfx::SlideAnimation* animation) { |
| 1393 if (from == NORMAL && to == HOT) { | 1393 if (from == NORMAL && to == HOT) { |
| 1394 animation->Show(); | 1394 animation->Show(); |
| 1395 } else if (from == HOT && to == NORMAL) { | 1395 } else if (from == HOT && to == NORMAL) { |
| 1396 animation->Hide(); | 1396 animation->Hide(); |
| 1397 } else if (from != to) { | 1397 } else if (from != to) { |
| 1398 animation->Reset((to == HOT) ? 1.0 : 0.0); | 1398 animation->Reset((to == HOT) ? 1.0 : 0.0); |
| 1399 } | 1399 } |
| 1400 } | 1400 } |
| OLD | NEW |