OLD | NEW |
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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 // views::MenuButton | 35 // views::MenuButton |
36 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 36 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
37 virtual bool HitTest(const gfx::Point& point) const OVERRIDE; | 37 virtual bool HitTest(const gfx::Point& point) const OVERRIDE; |
38 | 38 |
39 private: | 39 private: |
40 // views::ViewMenuDelegate | 40 // views::ViewMenuDelegate |
41 virtual void RunMenu(views::View* source, const gfx::Point& pt) OVERRIDE; | 41 virtual void RunMenu(views::View* source, const gfx::Point& pt) OVERRIDE; |
42 | 42 |
43 Browser* browser_; | 43 Browser* browser_; |
44 bool has_menu_; | 44 bool has_menu_; |
| 45 bool first_time_; |
45 scoped_ptr<ui::MenuModel> menu_model_; | 46 scoped_ptr<ui::MenuModel> menu_model_; |
46 | 47 |
47 DISALLOW_COPY_AND_ASSIGN(AvatarMenuButton); | 48 DISALLOW_COPY_AND_ASSIGN(AvatarMenuButton); |
48 }; | 49 }; |
49 | 50 |
50 #endif // CHROME_BROWSER_UI_VIEWS_AVATAR_MENU_BUTTON_H_ | 51 #endif // CHROME_BROWSER_UI_VIEWS_AVATAR_MENU_BUTTON_H_ |
OLD | NEW |