OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_AVATAR_MENU_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_AVATAR_MENU_BUBBLE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_AVATAR_MENU_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_AVATAR_MENU_BUBBLE_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 43 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
44 | 44 |
45 // views::ButtonListener implementation. | 45 // views::ButtonListener implementation. |
46 virtual void ButtonPressed(views::Button* sender, | 46 virtual void ButtonPressed(views::Button* sender, |
47 const views::Event& event) OVERRIDE; | 47 const views::Event& event) OVERRIDE; |
48 | 48 |
49 // views::LinkListener implementation. | 49 // views::LinkListener implementation. |
50 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 50 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
51 | 51 |
52 // BubbleDelegate implementation. | 52 // BubbleDelegate implementation. |
53 virtual gfx::Point GetAnchorPoint() OVERRIDE; | 53 virtual gfx::Rect GetAnchorRect() OVERRIDE; |
54 virtual void Init() OVERRIDE; | 54 virtual void Init() OVERRIDE; |
55 | 55 |
56 // AvatarMenuModelObserver implementation. | 56 // AvatarMenuModelObserver implementation. |
57 virtual void OnAvatarMenuModelChanged( | 57 virtual void OnAvatarMenuModelChanged( |
58 AvatarMenuModel* avatar_menu_model) OVERRIDE; | 58 AvatarMenuModel* avatar_menu_model) OVERRIDE; |
59 | 59 |
60 private: | 60 private: |
61 views::Link* add_profile_link_; | 61 views::Link* add_profile_link_; |
62 scoped_ptr<AvatarMenuModel> avatar_menu_model_; | 62 scoped_ptr<AvatarMenuModel> avatar_menu_model_; |
63 gfx::Rect anchor_rect_; | 63 gfx::Rect anchor_rect_; |
64 Browser* browser_; | 64 Browser* browser_; |
65 std::vector<views::CustomButton*> item_views_; | 65 std::vector<views::CustomButton*> item_views_; |
66 views::Separator* separator_; | 66 views::Separator* separator_; |
67 | 67 |
68 DISALLOW_COPY_AND_ASSIGN(AvatarMenuBubbleView); | 68 DISALLOW_COPY_AND_ASSIGN(AvatarMenuBubbleView); |
69 }; | 69 }; |
70 | 70 |
71 #endif // CHROME_BROWSER_UI_VIEWS_AVATAR_MENU_BUBBLE_VIEW_H_ | 71 #endif // CHROME_BROWSER_UI_VIEWS_AVATAR_MENU_BUBBLE_VIEW_H_ |
OLD | NEW |