Chromium Code Reviews| Index: chrome/browser/ui/views/profiles/win10_native_avatar_button.h |
| diff --git a/chrome/browser/ui/views/profiles/win10_native_avatar_button.h b/chrome/browser/ui/views/profiles/win10_native_avatar_button.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ef52339a0340246e3f1e3bc5b2673eca754506a9 |
| --- /dev/null |
| +++ b/chrome/browser/ui/views/profiles/win10_native_avatar_button.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_WIN10_NATIVE_AVATAR_BUTTON_H_ |
| +#define CHROME_BROWSER_UI_VIEWS_PROFILES_WIN10_NATIVE_AVATAR_BUTTON_H_ |
| + |
| +#include "chrome/browser/ui/views/profiles/avatar_button.h" |
| +#include "chrome/browser/ui/views/profiles/avatar_button_style.h" |
| +#include "ui/views/controls/button/menu_button_listener.h" |
| + |
| +class Win10NativeAvatarButton : public AvatarButton { |
| + public: |
| + Win10NativeAvatarButton(views::MenuButtonListener* listener, |
| + Profile* profile); |
| + ~Win10NativeAvatarButton() override; |
| + |
| + protected: |
| + gfx::Size GetMinimumSize() const override; |
|
Evan Stade
2017/05/02 15:49:20
nit: these are also overrides and I guess it's bes
emx
2017/05/03 17:10:59
Done.
|
| + gfx::Size GetPreferredSize() const override; |
| + std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight() |
| + const override; |
| + |
| + // LabelButton: |
| + bool UseFloodFillInkDrop() const override; |
| + |
| + private: |
| + std::unique_ptr<views::Border> CreateBorder() const; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(Win10NativeAvatarButton); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_VIEWS_PROFILES_WIN10_NATIVE_AVATAR_BUTTON_H_ |