| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_MENU_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_MENU_BUBBLE_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_MENU_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_MENU_BUBBLE_VIEW_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 views::BubbleBorder::Arrow arrow, | 52 views::BubbleBorder::Arrow arrow, |
| 53 views::BubbleBorder::BubbleAlignment border_alignment, | 53 views::BubbleBorder::BubbleAlignment border_alignment, |
| 54 const gfx::Rect& anchor_rect, | 54 const gfx::Rect& anchor_rect, |
| 55 Browser* browser); | 55 Browser* browser); |
| 56 static bool IsShowing(); | 56 static bool IsShowing(); |
| 57 static void Hide(); | 57 static void Hide(); |
| 58 | 58 |
| 59 virtual ~AvatarMenuBubbleView(); | 59 virtual ~AvatarMenuBubbleView(); |
| 60 | 60 |
| 61 // views::View implementation. | 61 // views::View implementation. |
| 62 virtual gfx::Size GetPreferredSize() OVERRIDE; | 62 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
| 63 virtual void Layout() OVERRIDE; | 63 virtual void Layout() OVERRIDE; |
| 64 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 64 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
| 65 | 65 |
| 66 // views::ButtonListener implementation. | 66 // views::ButtonListener implementation. |
| 67 virtual void ButtonPressed(views::Button* sender, | 67 virtual void ButtonPressed(views::Button* sender, |
| 68 const ui::Event& event) OVERRIDE; | 68 const ui::Event& event) OVERRIDE; |
| 69 | 69 |
| 70 // views::LinkListener implementation. | 70 // views::LinkListener implementation. |
| 71 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 71 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
| 72 | 72 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 static AvatarMenuBubbleView* avatar_bubble_; | 127 static AvatarMenuBubbleView* avatar_bubble_; |
| 128 static bool close_on_deactivate_for_testing_; | 128 static bool close_on_deactivate_for_testing_; |
| 129 | 129 |
| 130 // Is set to true if the managed user has clicked on Switch Users. | 130 // Is set to true if the managed user has clicked on Switch Users. |
| 131 bool expanded_; | 131 bool expanded_; |
| 132 | 132 |
| 133 DISALLOW_COPY_AND_ASSIGN(AvatarMenuBubbleView); | 133 DISALLOW_COPY_AND_ASSIGN(AvatarMenuBubbleView); |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_MENU_BUBBLE_VIEW_H_ | 136 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_MENU_BUBBLE_VIEW_H_ |
| OLD | NEW |