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

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

Issue 7520037: [cros] Network dropdown button in WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move handle click 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 ShowOptions show_options); 128 ShowOptions show_options);
129 129
130 // Builds the menu for the other bookmarks folder. This is added as the last 130 // Builds the menu for the other bookmarks folder. This is added as the last
131 // item to menu_. 131 // item to menu_.
132 void BuildOtherFolderMenu(views::MenuItemView* menu, int* next_menu_id); 132 void BuildOtherFolderMenu(views::MenuItemView* menu, int* next_menu_id);
133 133
134 // Creates an entry in menu for each child node of |parent| starting at 134 // Creates an entry in menu for each child node of |parent| starting at
135 // |start_child_index|. 135 // |start_child_index|.
136 void BuildMenu(const BookmarkNode* parent, 136 void BuildMenu(const BookmarkNode* parent,
137 int start_child_index, 137 int start_child_index,
138 views::MenuItemView* menu, 138 views::MenuItemInterface* menu,
139 int* next_menu_id); 139 int* next_menu_id);
140 140
141 // Returns the menu whose id is |id|. 141 // Returns the menu whose id is |id|.
142 views::MenuItemView* GetMenuByID(int id); 142 views::MenuItemView* GetMenuByID(int id);
143 143
144 // Does the work of processing WillRemoveBookmarks. On exit the set of removed 144 // Does the work of processing WillRemoveBookmarks. On exit the set of removed
145 // menus is added to |removed_menus|. It's up to the caller to delete the 145 // menus is added to |removed_menus|. It's up to the caller to delete the
146 // the menus added to |removed_menus|. 146 // the menus added to |removed_menus|.
147 void WillRemoveBookmarksImpl( 147 void WillRemoveBookmarksImpl(
148 const std::vector<const BookmarkNode*>& bookmarks, 148 const std::vector<const BookmarkNode*>& bookmarks,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 views::MenuDelegate* real_delegate_; 186 views::MenuDelegate* real_delegate_;
187 187
188 // Is the model being changed? 188 // Is the model being changed?
189 bool is_mutating_model_; 189 bool is_mutating_model_;
190 190
191 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuDelegate); 191 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuDelegate);
192 }; 192 };
193 193
194 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_ 194 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698