| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |