Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.h

Issue 7749011: Plumbs through changing navigator to bookmark menus. This is needed in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 int first_menu_id); 51 int first_menu_id);
52 virtual ~BookmarkMenuDelegate(); 52 virtual ~BookmarkMenuDelegate();
53 53
54 // Creates the menus from the model. 54 // Creates the menus from the model.
55 void Init(views::MenuDelegate* real_delegate, 55 void Init(views::MenuDelegate* real_delegate,
56 views::MenuItemView* parent, 56 views::MenuItemView* parent,
57 const BookmarkNode* node, 57 const BookmarkNode* node,
58 int start_child_index, 58 int start_child_index,
59 ShowOptions show_options); 59 ShowOptions show_options);
60 60
61 // Sets the PageNavigator.
62 void SetPageNavigator(PageNavigator* navigator);
63
61 // Returns the id given to the next menu. 64 // Returns the id given to the next menu.
62 int next_menu_id() const { return next_menu_id_; } 65 int next_menu_id() const { return next_menu_id_; }
63 66
64 // Makes the menu for |node| the active menu. |start_index| is the index of 67 // Makes the menu for |node| the active menu. |start_index| is the index of
65 // the first child of |node| to show in the menu. 68 // the first child of |node| to show in the menu.
66 void SetActiveMenu(const BookmarkNode* node, int start_index); 69 void SetActiveMenu(const BookmarkNode* node, int start_index);
67 70
68 // Returns the menu. 71 // Returns the menu.
69 views::MenuItemView* menu() const { return menu_; } 72 views::MenuItemView* menu() const { return menu_; }
70 73
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 181
179 views::MenuDelegate* real_delegate_; 182 views::MenuDelegate* real_delegate_;
180 183
181 // Is the model being changed? 184 // Is the model being changed?
182 bool is_mutating_model_; 185 bool is_mutating_model_;
183 186
184 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuDelegate); 187 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuDelegate);
185 }; 188 };
186 189
187 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_ 190 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698