| Index: chrome/browser/ui/views/location_bar/bubble_icon_view.cc
|
| diff --git a/chrome/browser/ui/views/location_bar/bubble_icon_view.cc b/chrome/browser/ui/views/location_bar/bubble_icon_view.cc
|
| index 8b459490e870917a995810dace905484d95a0758..e237922b420874ab797ce9f138eb049f12c9a542 100644
|
| --- a/chrome/browser/ui/views/location_bar/bubble_icon_view.cc
|
| +++ b/chrome/browser/ui/views/location_bar/bubble_icon_view.cc
|
| @@ -13,6 +13,7 @@
|
| #include "ui/gfx/color_utils.h"
|
| #include "ui/gfx/paint_vector_icon.h"
|
| #include "ui/native_theme/native_theme.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/bubble/bubble_dialog_delegate.h"
|
| @@ -152,7 +153,8 @@ void BubbleIconView::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {
|
| }
|
|
|
| std::unique_ptr<views::InkDrop> BubbleIconView::CreateInkDrop() {
|
| - std::unique_ptr<views::InkDropImpl> ink_drop = CreateDefaultInkDropImpl();
|
| + std::unique_ptr<views::InkDropImpl> ink_drop =
|
| + CreateDefaultFloodFillInkDropImpl();
|
| ink_drop->SetShowHighlightOnFocus(true);
|
| return std::move(ink_drop);
|
| }
|
| @@ -162,6 +164,14 @@ SkColor BubbleIconView::GetInkDropBaseColor() const {
|
| ui::NativeTheme::kColorId_TextfieldDefaultColor));
|
| }
|
|
|
| +std::unique_ptr<views::InkDropRipple> BubbleIconView::CreateInkDropRipple()
|
| + const {
|
| + return base::MakeUnique<views::FloodFillInkDropRipple>(
|
| + gfx::Size(kDefaultInkDropSize, kDefaultInkDropSize),
|
| + GetLocalBounds().CenterPoint(), GetInkDropBaseColor(),
|
| + ink_drop_visible_opacity());
|
| +}
|
| +
|
| void BubbleIconView::OnGestureEvent(ui::GestureEvent* event) {
|
| if (event->type() == ui::ET_GESTURE_TAP) {
|
| AnimateInkDrop(views::InkDropState::ACTIVATED, event);
|
|
|