OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_THEMED_AVATAR_BUTTON_H_ | |
6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_THEMED_AVATAR_BUTTON_H_ | |
7 | |
8 #include "chrome/browser/ui/views/profiles/avatar_button.h" | |
9 #include "chrome/browser/ui/views/profiles/avatar_button_style.h" | |
10 #include "ui/views/controls/button/menu_button_listener.h" | |
11 | |
12 class ThemedAvatarButton : public AvatarButton { | |
Evan Stade
2017/05/02 15:49:20
so now that these two/three avatar button classes
| |
13 public: | |
14 ThemedAvatarButton(views::MenuButtonListener* listener, | |
15 AvatarButtonStyle button_style, | |
16 Profile* profile); | |
17 ~ThemedAvatarButton() override; | |
18 | |
19 protected: | |
20 gfx::Size GetPreferredSize() const override; | |
21 | |
22 private: | |
23 std::unique_ptr<views::Border> CreateBorder( | |
24 const int normal_image_set[], | |
25 const int hot_image_set[], | |
26 const int pushed_image_set[]) const; | |
27 // Sets generic_avatar_ to the image with the specified IDR. | |
28 void SetButtonAvatar(int avatar_idr); | |
29 | |
30 DISALLOW_COPY_AND_ASSIGN(ThemedAvatarButton); | |
31 }; | |
32 | |
33 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_THEMED_AVATAR_BUTTON_H_ | |
OLD | NEW |