Chromium Code Reviews| Index: chrome/browser/ui/views/toolbar/back_button.cc |
| diff --git a/chrome/browser/ui/views/toolbar/back_button.cc b/chrome/browser/ui/views/toolbar/back_button.cc |
| index 54c6f2f988420906f69c52044461e5474815a742..dcefcf79f8b038615f66ba41aba80342112b56b1 100644 |
| --- a/chrome/browser/ui/views/toolbar/back_button.cc |
| +++ b/chrome/browser/ui/views/toolbar/back_button.cc |
| @@ -5,6 +5,7 @@ |
| #include "chrome/browser/ui/views/toolbar/back_button.h" |
| #include "ui/gfx/geometry/insets.h" |
| +#include "ui/views/animation/ink_drop_animation_controller.h" |
| #include "ui/views/controls/button/label_button_border.h" |
| #include "ui/views/painter.h" |
| @@ -31,6 +32,11 @@ void BackButton::SetLeadingMargin(int margin) { |
| InvalidateLayout(); |
| } |
| +void BackButton::LayoutInkDrop() { |
| + ink_drop_animation_controller()->SetBounds( |
| + gfx::Rect(margin_leading_, 0, width() - margin_leading_, height())); |
|
jonross
2015/08/07 17:14:31
Is this something that could be gained by applying
bruthig
2015/08/07 22:00:45
Discussed offline, the inset's track the space bet
|
| +} |
| + |
| const char* BackButton::GetClassName() const { |
| return "BackButton"; |
| } |