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_WIN10_NATIVE_AVATAR_BUTTON_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_WIN10_NATIVE_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 Win10NativeAvatarButton : public AvatarButton { |
| 13 public: |
| 14 Win10NativeAvatarButton(views::MenuButtonListener* listener, |
| 15 Profile* profile, |
| 16 BrowserView* browser_view); |
| 17 ~Win10NativeAvatarButton() override; |
| 18 |
| 19 void UpdateButtonHeightForPosition(const int button_x, |
| 20 int* button_height) const override; |
| 21 |
| 22 protected: |
| 23 gfx::Size GetPreferredSize() const override; |
| 24 std::unique_ptr<views::InkDrop> CreateInkDrop() override; |
| 25 std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override; |
| 26 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight() |
| 27 const override; |
| 28 |
| 29 private: |
| 30 std::unique_ptr<views::Border> CreateBorder() const; |
| 31 |
| 32 BrowserView* browser_view_; |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(Win10NativeAvatarButton); |
| 35 }; |
| 36 |
| 37 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_WIN10_NATIVE_AVATAR_BUTTON_H_ |
OLD | NEW |