Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: chrome/browser/ui/views/profiles/avatar_button_delegate.h

Issue 2851543002: Update avatar button to MD (part 1) (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698