OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PROFILES_AVATAR_MENU_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_MENU_BUTTON_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_MENU_BUTTON_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_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" |
| 11 #include "base/macros.h" |
11 #include "ui/base/models/simple_menu_model.h" | 12 #include "ui/base/models/simple_menu_model.h" |
12 #include "ui/views/controls/button/menu_button.h" | 13 #include "ui/views/controls/button/menu_button.h" |
13 #include "ui/views/controls/button/menu_button_listener.h" | 14 #include "ui/views/controls/button/menu_button_listener.h" |
14 #include "ui/views/view_targeter_delegate.h" | 15 #include "ui/views/view_targeter_delegate.h" |
15 | 16 |
16 namespace gfx { | 17 namespace gfx { |
17 class Canvas; | 18 class Canvas; |
18 class Image; | 19 class Image; |
19 } | 20 } |
20 class BrowserView; | 21 class BrowserView; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 gfx::ImageSkia button_icon_; | 80 gfx::ImageSkia button_icon_; |
80 bool is_rectangle_; | 81 bool is_rectangle_; |
81 int old_height_; | 82 int old_height_; |
82 // True if the avatar button is on the right side of the browser window. | 83 // True if the avatar button is on the right side of the browser window. |
83 bool button_on_right_; | 84 bool button_on_right_; |
84 | 85 |
85 DISALLOW_COPY_AND_ASSIGN(AvatarMenuButton); | 86 DISALLOW_COPY_AND_ASSIGN(AvatarMenuButton); |
86 }; | 87 }; |
87 | 88 |
88 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_MENU_BUTTON_H_ | 89 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_AVATAR_MENU_BUTTON_H_ |
OLD | NEW |