Chromium Code Reviews| Index: ui/views/controls/button/menu_button.h |
| diff --git a/ui/views/controls/button/menu_button.h b/ui/views/controls/button/menu_button.h |
| index 91504d2e795d1d109ad177732c63946a32c4ca5b..01bbb132a10285b7f08ba3286afc29fa6ec500e2 100644 |
| --- a/ui/views/controls/button/menu_button.h |
| +++ b/ui/views/controls/button/menu_button.h |
| @@ -32,6 +32,7 @@ class VIEWS_EXPORT MenuButton : public LabelButton { |
| class VIEWS_EXPORT PressedLock { |
| public: |
| explicit PressedLock(MenuButton* menu_button); |
| + PressedLock(MenuButton* menu_button, bool first_menu_show); |
| ~PressedLock(); |
| private: |
| @@ -105,8 +106,10 @@ class VIEWS_EXPORT MenuButton : public LabelButton { |
| friend class PressedLock; |
| // Increment/decrement the number of "pressed" locks this button has, and |
| - // set the state accordingly. |
| - void IncrementPressedLocked(); |
| + // set the state accordingly. The ink drop is animated to the ACTIVATED state |
| + // if |animate_ink_drop| is true and will be snapped to it's final frame if |
| + // false. |
| + void IncrementPressedLocked(bool animate_ink_drop); |
|
varkha
2016/03/11 17:57:17
I think it will be clearer if you reverse the para
bruthig
2016/03/11 21:58:20
Done.
|
| void DecrementPressedLocked(); |
| // Compute the maximum X coordinate for the current screen. MenuButtons |