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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.h

Issue 249813002: [Win] Redesign the avatar bubble UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/profiles/profile_chooser_view.h
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.h b/chrome/browser/ui/views/profiles/profile_chooser_view.h
index 1fc03593bf9c2080f903761eeb667bdcc33d2c1a..a0ffcc55fb6a34598c9ad0b7223c8e6793428343 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.h
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.h
@@ -14,7 +14,6 @@
#include "google_apis/gaia/oauth2_token_service.h"
#include "ui/views/bubble/bubble_delegate.h"
#include "ui/views/controls/button/button.h"
-#include "ui/views/controls/button/menu_button_listener.h"
#include "ui/views/controls/link_listener.h"
#include "ui/views/controls/styled_label_listener.h"
#include "ui/views/controls/textfield/textfield_controller.h"
@@ -40,7 +39,6 @@ class Browser;
class ProfileChooserView : public views::BubbleDelegateView,
public views::ButtonListener,
public views::LinkListener,
- public views::MenuButtonListener,
public views::StyledLabelListener,
public views::TextfieldController,
public AvatarMenuObserver,
@@ -87,7 +85,7 @@ class ProfileChooserView : public views::BubbleDelegateView,
typedef std::vector<size_t> Indexes;
typedef std::map<views::Button*, int> ButtonIndexes;
- typedef std::map<views::View*, std::string> AccountButtonIndexes;
+ typedef std::map<views::Button*, std::string> AccountButtonIndexes;
ProfileChooserView(views::View* anchor_view,
views::BubbleBorder::Arrow arrow,
@@ -107,10 +105,6 @@ class ProfileChooserView : public views::BubbleDelegateView,
// views::LinkListener:
virtual void LinkClicked(views::Link* sender, int event_flags) OVERRIDE;
- // views::MenuButtonListener:
- virtual void OnMenuButtonClicked(views::View* source,
- const gfx::Point& point) OVERRIDE;
-
// views::StyledLabelListener implementation.
virtual void StyledLabelLinkClicked(
const gfx::Range& range, int event_flags) OVERRIDE;
@@ -151,8 +145,6 @@ class ProfileChooserView : public views::BubbleDelegateView,
views::View* CreateOptionsView(bool enable_lock);
// Account Management view for the profile |avatar_item|.
- views::View* CreateCurrentProfileEditableView(
- const AvatarMenu::Item& avatar_item);
views::View* CreateCurrentProfileAccountsView(
const AvatarMenu::Item& avatar_item);
void CreateAccountButton(views::GridLayout* layout,
@@ -209,7 +201,7 @@ class ProfileChooserView : public views::BubbleDelegateView,
// Links displayed in the active profile card.
views::Link* manage_accounts_link_;
- views::Link* signin_current_profile_link_;
+ views::LabelButton* signin_current_profile_link_;
// The profile name and photo in the active profile card. Owned by the
// views hierarchy.
@@ -219,7 +211,7 @@ class ProfileChooserView : public views::BubbleDelegateView,
// Action buttons.
views::LabelButton* users_button_;
views::LabelButton* lock_button_;
- views::LabelButton* add_account_button_;
+ views::Link* add_account_link_;
// Buttons displayed in the gaia signin view.
views::ImageButton* gaia_signin_cancel_button_;

Powered by Google App Engine
This is Rietveld 408576698