| 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> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 layer()->SetMasksToBounds(true); | 513 layer()->SetMasksToBounds(true); |
| 514 } | 514 } |
| 515 | 515 |
| 516 std::unique_ptr<views::InkDrop> DownloadItemView::CreateInkDrop() { | 516 std::unique_ptr<views::InkDrop> DownloadItemView::CreateInkDrop() { |
| 517 return CreateDefaultFloodFillInkDropImpl(); | 517 return CreateDefaultFloodFillInkDropImpl(); |
| 518 } | 518 } |
| 519 | 519 |
| 520 std::unique_ptr<views::InkDropRipple> DownloadItemView::CreateInkDropRipple() | 520 std::unique_ptr<views::InkDropRipple> DownloadItemView::CreateInkDropRipple() |
| 521 const { | 521 const { |
| 522 return base::MakeUnique<views::FloodFillInkDropRipple>( | 522 return base::MakeUnique<views::FloodFillInkDropRipple>( |
| 523 GetLocalBounds(), GetInkDropCenterBasedOnLastEvent(), | 523 size(), GetInkDropCenterBasedOnLastEvent(), |
| 524 color_utils::DeriveDefaultIconColor(GetTextColor()), | 524 color_utils::DeriveDefaultIconColor(GetTextColor()), |
| 525 ink_drop_visible_opacity()); | 525 ink_drop_visible_opacity()); |
| 526 } | 526 } |
| 527 | 527 |
| 528 std::unique_ptr<views::InkDropHighlight> | 528 std::unique_ptr<views::InkDropHighlight> |
| 529 DownloadItemView::CreateInkDropHighlight() const { | 529 DownloadItemView::CreateInkDropHighlight() const { |
| 530 if (IsShowingWarningDialog()) | 530 if (IsShowingWarningDialog()) |
| 531 return nullptr; | 531 return nullptr; |
| 532 | 532 |
| 533 gfx::Size size = GetPreferredSize(); | 533 gfx::Size size = GetPreferredSize(); |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1119 SchedulePaint(); | 1119 SchedulePaint(); |
| 1120 } | 1120 } |
| 1121 | 1121 |
| 1122 SkColor DownloadItemView::GetTextColor() const { | 1122 SkColor DownloadItemView::GetTextColor() const { |
| 1123 return GetTextColorForThemeProvider(GetThemeProvider()); | 1123 return GetTextColorForThemeProvider(GetThemeProvider()); |
| 1124 } | 1124 } |
| 1125 | 1125 |
| 1126 SkColor DownloadItemView::GetDimmedTextColor() const { | 1126 SkColor DownloadItemView::GetDimmedTextColor() const { |
| 1127 return SkColorSetA(GetTextColor(), 0xC7); | 1127 return SkColorSetA(GetTextColor(), 0xC7); |
| 1128 } | 1128 } |
| OLD | NEW |