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

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

Issue 11646008: Close avatar bubble when avatar button is clicked a second time (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build Created 7 years, 11 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BUTTON_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AVATAR_MENU_BUTTON_H_
6 #define CHROME_BROWSER_UI_VIEWS_AVATAR_MENU_BUTTON_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AVATAR_MENU_BUTTON_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual void SetAvatarIcon(const gfx::Image& icon, 44 virtual void SetAvatarIcon(const gfx::Image& icon,
45 bool is_gaia_picture); 45 bool is_gaia_picture);
46 46
47 void ShowAvatarBubble(); 47 void ShowAvatarBubble();
48 48
49 private: 49 private:
50 // views::MenuButtonListener: 50 // views::MenuButtonListener:
51 virtual void OnMenuButtonClicked(views::View* source, 51 virtual void OnMenuButtonClicked(views::View* source,
52 const gfx::Point& point) OVERRIDE; 52 const gfx::Point& point) OVERRIDE;
53 53
54 void ButtonClicked();
55
56 Browser* browser_; 54 Browser* browser_;
57 bool incognito_; 55 bool incognito_;
58 scoped_ptr<ui::MenuModel> menu_model_; 56 scoped_ptr<ui::MenuModel> menu_model_;
59 57
60 // Use a scoped ptr because gfx::Image doesn't have a default constructor. 58 // Use a scoped ptr because gfx::Image doesn't have a default constructor.
61 scoped_ptr<gfx::Image> icon_; 59 scoped_ptr<gfx::Image> icon_;
62 gfx::ImageSkia button_icon_; 60 gfx::ImageSkia button_icon_;
63 bool is_gaia_picture_; 61 bool is_gaia_picture_;
64 int old_height_; 62 int old_height_;
65 63
66 DISALLOW_COPY_AND_ASSIGN(AvatarMenuButton); 64 DISALLOW_COPY_AND_ASSIGN(AvatarMenuButton);
67 }; 65 };
68 66
69 #endif // CHROME_BROWSER_UI_VIEWS_AVATAR_MENU_BUTTON_H_ 67 #endif // CHROME_BROWSER_UI_VIEWS_AVATAR_MENU_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/avatar_menu_bubble_view.cc ('k') | chrome/browser/ui/views/avatar_menu_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698