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_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 // Parent of menus. | 177 // Parent of menus. |
178 views::Widget* parent_; | 178 views::Widget* parent_; |
179 | 179 |
180 // Maps from menu id to BookmarkNode. | 180 // Maps from menu id to BookmarkNode. |
181 MenuIDToNodeMap menu_id_to_node_map_; | 181 MenuIDToNodeMap menu_id_to_node_map_; |
182 | 182 |
183 // Current menu. | 183 // Current menu. |
184 views::MenuItemView* menu_; | 184 views::MenuItemView* menu_; |
185 | 185 |
186 // Data for the drop. | 186 // Data for the drop. |
187 BookmarkNodeData drop_data_; | 187 bookmarks::BookmarkNodeData drop_data_; |
188 | 188 |
189 // Used when a context menu is shown. | 189 // Used when a context menu is shown. |
190 scoped_ptr<BookmarkContextMenu> context_menu_; | 190 scoped_ptr<BookmarkContextMenu> context_menu_; |
191 | 191 |
192 // If non-NULL this is the |parent| passed to Init and is NOT owned by us. | 192 // If non-NULL this is the |parent| passed to Init and is NOT owned by us. |
193 views::MenuItemView* parent_menu_item_; | 193 views::MenuItemView* parent_menu_item_; |
194 | 194 |
195 // Maps from node to menu. | 195 // Maps from node to menu. |
196 NodeToMenuMap node_to_menu_map_; | 196 NodeToMenuMap node_to_menu_map_; |
197 | 197 |
198 // ID of the next menu item. | 198 // ID of the next menu item. |
199 int next_menu_id_; | 199 int next_menu_id_; |
200 | 200 |
201 // Minimum and maximum ID's to use for menu items. | 201 // Minimum and maximum ID's to use for menu items. |
202 const int min_menu_id_; | 202 const int min_menu_id_; |
203 const int max_menu_id_; | 203 const int max_menu_id_; |
204 | 204 |
205 views::MenuDelegate* real_delegate_; | 205 views::MenuDelegate* real_delegate_; |
206 | 206 |
207 // Is the model being changed? | 207 // Is the model being changed? |
208 bool is_mutating_model_; | 208 bool is_mutating_model_; |
209 | 209 |
210 // The location where this bookmark menu will be displayed (for UMA). | 210 // The location where this bookmark menu will be displayed (for UMA). |
211 BookmarkLaunchLocation location_; | 211 BookmarkLaunchLocation location_; |
212 | 212 |
213 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuDelegate); | 213 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuDelegate); |
214 }; | 214 }; |
215 | 215 |
216 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_ | 216 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_ |
OLD | NEW |