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

Side by Side Diff: chrome/browser/ui/views/avatar_menu_bubble_view.h

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 25 matching lines...) Expand all
36 Browser* browser); 36 Browser* browser);
37 virtual ~AvatarMenuBubbleView(); 37 virtual ~AvatarMenuBubbleView();
38 38
39 // views::View implementation. 39 // views::View implementation.
40 virtual gfx::Size GetPreferredSize() OVERRIDE; 40 virtual gfx::Size GetPreferredSize() OVERRIDE;
41 virtual void Layout() OVERRIDE; 41 virtual void Layout() OVERRIDE;
42 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; 42 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE;
43 43
44 // views::ButtonListener implementation. 44 // views::ButtonListener implementation.
45 virtual void ButtonPressed(views::Button* sender, 45 virtual void ButtonPressed(views::Button* sender,
46 const views::Event& event) OVERRIDE; 46 const ui::Event& event) OVERRIDE;
47 47
48 // views::LinkListener implementation. 48 // views::LinkListener implementation.
49 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; 49 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
50 50
51 // BubbleDelegate implementation. 51 // BubbleDelegate implementation.
52 virtual gfx::Rect GetAnchorRect() OVERRIDE; 52 virtual gfx::Rect GetAnchorRect() OVERRIDE;
53 virtual void Init() OVERRIDE; 53 virtual void Init() OVERRIDE;
54 54
55 // AvatarMenuModelObserver implementation. 55 // AvatarMenuModelObserver implementation.
56 virtual void OnAvatarMenuModelChanged( 56 virtual void OnAvatarMenuModelChanged(
57 AvatarMenuModel* avatar_menu_model) OVERRIDE; 57 AvatarMenuModel* avatar_menu_model) OVERRIDE;
58 58
59 private: 59 private:
60 views::Link* add_profile_link_; 60 views::Link* add_profile_link_;
61 scoped_ptr<AvatarMenuModel> avatar_menu_model_; 61 scoped_ptr<AvatarMenuModel> avatar_menu_model_;
62 gfx::Rect anchor_rect_; 62 gfx::Rect anchor_rect_;
63 Browser* browser_; 63 Browser* browser_;
64 std::vector<views::CustomButton*> item_views_; 64 std::vector<views::CustomButton*> item_views_;
65 views::Separator* separator_; 65 views::Separator* separator_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(AvatarMenuBubbleView); 67 DISALLOW_COPY_AND_ASSIGN(AvatarMenuBubbleView);
68 }; 68 };
69 69
70 #endif // CHROME_BROWSER_UI_VIEWS_AVATAR_MENU_BUBBLE_VIEW_H_ 70 #endif // CHROME_BROWSER_UI_VIEWS_AVATAR_MENU_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.cc ('k') | chrome/browser/ui/views/avatar_menu_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698