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..982546c91dc1eb5f506f0a1fe45986923b22f917 |
--- /dev/null |
+++ b/chrome/browser/ui/views/profiles/win10_native_avatar_button.h |
@@ -0,0 +1,37 @@ |
+// 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, |
+ BrowserView* browser_view); |
+ ~Win10NativeAvatarButton() override; |
+ |
+ void UpdateButtonHeightForPosition(const int button_x, |
+ int* button_height) const override; |
+ |
+ protected: |
+ gfx::Size GetPreferredSize() const override; |
+ std::unique_ptr<views::InkDrop> CreateInkDrop() override; |
+ std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override; |
+ std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight() |
+ const override; |
+ |
+ private: |
+ std::unique_ptr<views::Border> CreateBorder() const; |
+ |
+ BrowserView* browser_view_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(Win10NativeAvatarButton); |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_VIEWS_PROFILES_WIN10_NATIVE_AVATAR_BUTTON_H_ |