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

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

Issue 2447523002: [ash-md] Added different highlighting modes to the InkDropImpl. (Closed)
Patch Set: Fixed InkDropHostView::GetInkDrop() to use CreateInkDrop(). 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 44a19fb3c0bbce6f4e7dae673c720a748689448f..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"
@@ -195,7 +196,6 @@ DownloadItemView::DownloadItemView(DownloadItem* download_item,
dropdown_button_->SetBorder(
views::CreateEmptyBorder(gfx::Insets(kDropdownBorderWidth)));
- dropdown_button_->set_ink_drop_size(gfx::Size(32, 32));
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>(
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.h ('k') | chrome/browser/ui/views/location_bar/bubble_icon_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698