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

Side by Side Diff: chrome/browser/views/toolbar_view.h

Issue 122027: Remove the Menu object, converting all the remaining callers to use Menu2. I'... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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
« no previous file with comments | « chrome/browser/views/tabs/tab_strip.h ('k') | chrome/browser/views/toolbar_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_VIEWS_TOOLBAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 views::MenuButton* page_menu_; 220 views::MenuButton* page_menu_;
221 views::MenuButton* app_menu_; 221 views::MenuButton* app_menu_;
222 // The bookmark menu button. This may be null. 222 // The bookmark menu button. This may be null.
223 views::MenuButton* bookmark_menu_; 223 views::MenuButton* bookmark_menu_;
224 Profile* profile_; 224 Profile* profile_;
225 Browser* browser_; 225 Browser* browser_;
226 226
227 // Current tab we're showing state for. 227 // Current tab we're showing state for.
228 TabContents* tab_; 228 TabContents* tab_;
229 229
230 // Profiles menu to populate with profile names. 230 // Contents of the profiles menu to populate with profile names.
231 views::Menu* profiles_menu_; 231 scoped_ptr<views::SimpleMenuModel> profiles_menu_contents_;
232 232
233 // Helper class to enumerate profiles information on the file thread. 233 // Helper class to enumerate profiles information on the file thread.
234 scoped_refptr<GetProfilesHelper> profiles_helper_; 234 scoped_refptr<GetProfilesHelper> profiles_helper_;
235 235
236 // Controls whether or not a home button should be shown on the toolbar. 236 // Controls whether or not a home button should be shown on the toolbar.
237 BooleanPrefMember show_home_button_; 237 BooleanPrefMember show_home_button_;
238 238
239 // The display mode used when laying out the toolbar. 239 // The display mode used when laying out the toolbar.
240 DisplayMode display_mode_; 240 DisplayMode display_mode_;
241 241
242 // The contents of the various menus. 242 // The contents of the various menus.
243 scoped_ptr<views::SimpleMenuModel> page_menu_contents_; 243 scoped_ptr<views::SimpleMenuModel> page_menu_contents_;
244 scoped_ptr<ZoomMenuModel> zoom_menu_contents_; 244 scoped_ptr<ZoomMenuModel> zoom_menu_contents_;
245 scoped_ptr<EncodingMenuModel> encoding_menu_contents_; 245 scoped_ptr<EncodingMenuModel> encoding_menu_contents_;
246 scoped_ptr<views::SimpleMenuModel> devtools_menu_contents_; 246 scoped_ptr<views::SimpleMenuModel> devtools_menu_contents_;
247 scoped_ptr<views::SimpleMenuModel> app_menu_contents_; 247 scoped_ptr<views::SimpleMenuModel> app_menu_contents_;
248 248
249 // TODO(beng): build these into MenuButton. 249 // TODO(beng): build these into MenuButton.
250 scoped_ptr<views::Menu2> page_menu_menu_; 250 scoped_ptr<views::Menu2> page_menu_menu_;
251 scoped_ptr<views::Menu2> app_menu_menu_; 251 scoped_ptr<views::Menu2> app_menu_menu_;
252 }; 252 };
253 253
254 #endif // CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H_ 254 #endif // CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/tabs/tab_strip.h ('k') | chrome/browser/views/toolbar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698