| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/views/animation/ink_drop_host_view.h" | 5 #include "ui/views/animation/ink_drop_host_view.h" |
| 6 | 6 |
| 7 #include "ui/gfx/color_palette.h" | 7 #include "ui/gfx/color_palette.h" |
| 8 #include "ui/views/animation/ink_drop_hover.h" | 8 #include "ui/views/animation/ink_drop_hover.h" |
| 9 #include "ui/views/animation/square_ink_drop_animation.h" | 9 #include "ui/views/animation/square_ink_drop_animation.h" |
| 10 | 10 |
| 11 namespace views { | 11 namespace views { |
| 12 | 12 |
| 13 // Default sizes for ink drop effects. | 13 // Default sizes for ink drop effects. |
| 14 const int kInkDropSize = 24; | 14 const int kInkDropSize = 40; |
| 15 const int kInkDropLargeCornerRadius = 4; | 15 const int kInkDropLargeCornerRadius = 4; |
| 16 | 16 |
| 17 // static | 17 // static |
| 18 const int InkDropHostView::kInkDropSmallCornerRadius = 2; | 18 const int InkDropHostView::kInkDropSmallCornerRadius = 2; |
| 19 | 19 |
| 20 InkDropHostView::InkDropHostView() | 20 InkDropHostView::InkDropHostView() |
| 21 : ink_drop_size_(kInkDropSize, kInkDropSize) {} | 21 : ink_drop_size_(kInkDropSize, kInkDropSize) {} |
| 22 | 22 |
| 23 InkDropHostView::~InkDropHostView() {} | 23 InkDropHostView::~InkDropHostView() {} |
| 24 | 24 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 54 gfx::Point InkDropHostView::GetInkDropCenter() const { | 54 gfx::Point InkDropHostView::GetInkDropCenter() const { |
| 55 return GetLocalBounds().CenterPoint(); | 55 return GetLocalBounds().CenterPoint(); |
| 56 } | 56 } |
| 57 | 57 |
| 58 SkColor InkDropHostView::GetInkDropBaseColor() const { | 58 SkColor InkDropHostView::GetInkDropBaseColor() const { |
| 59 NOTREACHED(); | 59 NOTREACHED(); |
| 60 return gfx::kPlaceholderColor; | 60 return gfx::kPlaceholderColor; |
| 61 } | 61 } |
| 62 | 62 |
| 63 } // namespace views | 63 } // namespace views |
| OLD | NEW |