| Index: chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc
|
| diff --git a/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc b/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc
|
| index 87cb0568117114bda4c4c51f8ccd18d7a593e851..3a133d5afe7f7624616c1f89c5acf617c8b10c26 100644
|
| --- a/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc
|
| +++ b/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc
|
| @@ -220,7 +220,7 @@ class ProfileItemView : public views::CustomButton,
|
| AvatarMenuBubbleView* parent,
|
| AvatarMenu* menu);
|
|
|
| - virtual gfx::Size GetPreferredSize() OVERRIDE;
|
| + virtual gfx::Size GetPreferredSize() const OVERRIDE;
|
| virtual void Layout() OVERRIDE;
|
| virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
|
| virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
|
| @@ -297,7 +297,7 @@ ProfileItemView::ProfileItemView(const AvatarMenu::Item& item,
|
| OnHighlightStateChanged();
|
| }
|
|
|
| -gfx::Size ProfileItemView::GetPreferredSize() {
|
| +gfx::Size ProfileItemView::GetPreferredSize() const {
|
| int text_width = std::max(name_label_->GetPreferredSize().width(),
|
| sync_state_label_->GetPreferredSize().width());
|
| text_width = std::max(edit_link_->GetPreferredSize().width(), text_width);
|
| @@ -537,7 +537,7 @@ AvatarMenuBubbleView::AvatarMenuBubbleView(
|
| AvatarMenuBubbleView::~AvatarMenuBubbleView() {
|
| }
|
|
|
| -gfx::Size AvatarMenuBubbleView::GetPreferredSize() {
|
| +gfx::Size AvatarMenuBubbleView::GetPreferredSize() const {
|
| const int kBubbleViewMinWidth = 175;
|
| gfx::Size preferred_size(kBubbleViewMinWidth, 0);
|
| for (size_t i = 0; i < item_views_.size(); ++i) {
|
| @@ -700,7 +700,7 @@ void AvatarMenuBubbleView::LinkClicked(views::Link* source, int event_flags) {
|
| }
|
| }
|
|
|
| -gfx::Rect AvatarMenuBubbleView::GetAnchorRect() {
|
| +gfx::Rect AvatarMenuBubbleView::GetAnchorRect() const {
|
| return anchor_rect_;
|
| }
|
|
|
|
|