OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TOOLBAR_WRENCH_MENU_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 169 |
170 // Used for managing the bookmark menu items. | 170 // Used for managing the bookmark menu items. |
171 scoped_ptr<BookmarkMenuDelegate> bookmark_menu_delegate_; | 171 scoped_ptr<BookmarkMenuDelegate> bookmark_menu_delegate_; |
172 | 172 |
173 // Menu corresponding to IDC_BOOKMARKS_MENU. | 173 // Menu corresponding to IDC_BOOKMARKS_MENU. |
174 views::MenuItemView* bookmark_menu_; | 174 views::MenuItemView* bookmark_menu_; |
175 | 175 |
176 // Menu corresponding to IDC_FEEDBACK. | 176 // Menu corresponding to IDC_FEEDBACK. |
177 views::MenuItemView* feedback_menu_item_; | 177 views::MenuItemView* feedback_menu_item_; |
178 | 178 |
| 179 // Menu corresponding to IDC_TAKE_SCREENSHOT. |
| 180 views::MenuItemView* screenshot_menu_item_; |
| 181 |
179 // Used for managing "Recent tabs" menu items. | 182 // Used for managing "Recent tabs" menu items. |
180 scoped_ptr<RecentTabsMenuModelDelegate> recent_tabs_menu_model_delegate_; | 183 scoped_ptr<RecentTabsMenuModelDelegate> recent_tabs_menu_model_delegate_; |
181 | 184 |
182 content::NotificationRegistrar registrar_; | 185 content::NotificationRegistrar registrar_; |
183 | 186 |
184 // The bit mask of RunFlags. | 187 // The bit mask of RunFlags. |
185 const int run_flags_; | 188 const int run_flags_; |
186 | 189 |
187 ObserverList<WrenchMenuObserver> observer_list_; | 190 ObserverList<WrenchMenuObserver> observer_list_; |
188 | 191 |
189 // Records the time from when menu opens to when the user selects a menu item. | 192 // Records the time from when menu opens to when the user selects a menu item. |
190 base::ElapsedTimer menu_opened_timer_; | 193 base::ElapsedTimer menu_opened_timer_; |
191 | 194 |
192 DISALLOW_COPY_AND_ASSIGN(WrenchMenu); | 195 DISALLOW_COPY_AND_ASSIGN(WrenchMenu); |
193 }; | 196 }; |
194 | 197 |
195 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_H_ | 198 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_H_ |
OLD | NEW |