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

Unified Diff: chrome/browser/ui/views/download/download_item_view.cc

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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: chrome/browser/ui/views/download/download_item_view.cc
diff --git a/chrome/browser/ui/views/download/download_item_view.cc b/chrome/browser/ui/views/download/download_item_view.cc
index 2af5c69da02f1c59632f4809f5c8d0385429b25a..9fba09021e21aa63cbd3be765ac183fdd034d93b 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -59,6 +59,7 @@
#include "ui/gfx/vector_icons_public.h"
#include "ui/views/animation/flood_fill_ink_drop_ripple.h"
#include "ui/views/animation/ink_drop_highlight.h"
+#include "ui/views/animation/ink_drop_impl.h"
#include "ui/views/border.h"
#include "ui/views/controls/button/md_text_button.h"
#include "ui/views/controls/button/vector_icon_button.h"
@@ -194,8 +195,7 @@ DownloadItemView::DownloadItemView(DownloadItem* download_item,
set_context_menu_controller(this);
dropdown_button_->SetBorder(
- views::Border::CreateEmptyBorder(gfx::Insets(kDropdownBorderWidth)));
- dropdown_button_->set_ink_drop_size(gfx::Size(32, 32));
+ views::CreateEmptyBorder(gfx::Insets(kDropdownBorderWidth)));
AddChildView(dropdown_button_);
LoadIcon();
@@ -491,6 +491,10 @@ void DownloadItemView::AddInkDropLayer(ui::Layer* ink_drop_layer) {
layer()->SetMasksToBounds(true);
}
+std::unique_ptr<views::InkDrop> DownloadItemView::CreateInkDrop() {
+ return CreateDefaultFloodFillInkDropImpl();
+}
+
std::unique_ptr<views::InkDropRipple> DownloadItemView::CreateInkDropRipple()
const {
return base::MakeUnique<views::FloodFillInkDropRipple>(

Powered by Google App Engine
This is Rietveld 408576698