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

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

Issue 8863009: Fix alignment of avatar bubbles in the NTP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years 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 #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
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_
OLDNEW
« no previous file with comments | « chrome/browser/speech/speech_input_bubble_views.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