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

Side by Side Diff: chrome/browser/cocoa/autoseparating_menu.m

Issue 214011: Remove the theme popup menu and just have a reset button to match the other p... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #import "chrome/browser/cocoa/autoseparating_menu.h"
6
7 @implementation AutoseparatingMenu
8
9 - (NSMenuItem *)insertItemWithTitle:(NSString *)aString
10 action:(SEL)aSelector
11 keyEquivalent:(NSString *)keyEquiv
12 atIndex:(NSInteger)index {
13 if ([aString isEqualToString:@"-"]) {
14 NSMenuItem* separator = [NSMenuItem separatorItem];
15 [self insertItem:separator
16 atIndex:index];
17 return separator;
18 } else {
19 return [super insertItemWithTitle:aString
20 action:aSelector
21 keyEquivalent:keyEquiv
22 atIndex:index];
23 }
24 }
25
26 @end
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/autoseparating_menu.h ('k') | chrome/browser/cocoa/preferences_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698