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 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_BUTTON_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_BUTTON_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_BUTTON_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_BUTTON_DELEGATE_H_ |
7 | 7 |
8 #include "ui/views/controls/button/button.h" | 8 #include "ui/views/controls/button/menu_button_listener.h" |
9 | 9 |
10 // Delegate allowing NewAvatarButton to communicate back to its manager. | 10 // Delegate allowing NewAvatarButton to communicate back to its manager. |
11 class AvatarButtonDelegate : public views::ButtonListener { | 11 class AvatarButtonDelegate : public views::MenuButtonListener { |
12 public: | 12 public: |
13 // Called when the preferred size changed, e.g., due to a profile name change. | 13 // Called when the preferred size changed, e.g., due to a profile name change. |
14 virtual void ButtonPreferredSizeChanged() = 0; | 14 virtual void ButtonPreferredSizeChanged() = 0; |
Evan Stade
2017/04/27 17:15:02
this is not your doing, but it seems like we shoul
emx
2017/04/28 12:39:40
Thanks, this simplifies things quite a bit!
| |
15 }; | 15 }; |
16 | 16 |
17 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_BUTTON_DELEGATE_H_ | 17 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_BUTTON_DELEGATE_H_ |
OLD | NEW |