 Chromium Code Reviews
 Chromium Code Reviews Issue 1280953003:
  Enhance the material design ripple API so the ripple's state can be controlled by it's owning View.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 1280953003:
  Enhance the material design ripple API so the ripple's state can be controlled by it's owning View.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| 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"; | 
| } |