| Index: ui/views/controls/button/custom_button.h
|
| diff --git a/ui/views/controls/button/custom_button.h b/ui/views/controls/button/custom_button.h
|
| index d3fbdfa214a281ce7862cf758ce6caee1f7f5c98..afcefbe9bf8441fc06fb3b4d6b8c7a0576a153ef 100644
|
| --- a/ui/views/controls/button/custom_button.h
|
| +++ b/ui/views/controls/button/custom_button.h
|
| @@ -76,6 +76,12 @@ class VIEWS_EXPORT CustomButton : public Button, public gfx::AnimationDelegate {
|
| notify_action_ = notify_action;
|
| }
|
|
|
| + void set_hide_ink_drop_when_showing_context_menu(
|
| + bool hide_ink_drop_when_showing_context_menu) {
|
| + hide_ink_drop_when_showing_context_menu_ =
|
| + hide_ink_drop_when_showing_context_menu;
|
| + }
|
| +
|
| void set_ink_drop_base_color(SkColor color) { ink_drop_base_color_ = color; }
|
|
|
| void SetHotTracked(bool is_hot_tracked);
|
| @@ -197,6 +203,10 @@ class VIEWS_EXPORT CustomButton : public Button, public gfx::AnimationDelegate {
|
| // is clicked.
|
| InkDropState ink_drop_action_on_click_;
|
|
|
| + // When true, the ink drop ripple and hover will be hidden prior to showing
|
| + // the context menu.
|
| + bool hide_ink_drop_when_showing_context_menu_;
|
| +
|
| // The color of the ripple and hover.
|
| SkColor ink_drop_base_color_;
|
|
|
|
|