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

Side by Side Diff: chrome/browser/cocoa/encoding_menu_controller_delegate_mac.mm

Issue 4710001: Split out command IDs from chrome_dll_resource.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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) 2009 The Chromium Authors. All rights reserved. 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 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 #include "chrome/browser/cocoa/encoding_menu_controller_delegate_mac.h" 5 #include "chrome/browser/cocoa/encoding_menu_controller_delegate_mac.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "base/sys_string_conversions.h" 10 #include "base/sys_string_conversions.h"
11 #include "chrome/app/chrome_dll_resource.h" 11 #include "chrome/app/chrome_command_ids.h"
12 #include "chrome/browser/browser.h" 12 #include "chrome/browser/browser.h"
13 #include "chrome/browser/encoding_menu_controller.h" 13 #include "chrome/browser/encoding_menu_controller.h"
14 #include "chrome/browser/profile.h" 14 #include "chrome/browser/profile.h"
15 15
16 namespace { 16 namespace {
17 17
18 void AddSeparatorToMenu(NSMenu *parent_menu) { 18 void AddSeparatorToMenu(NSMenu *parent_menu) {
19 NSMenuItem* separator = [NSMenuItem separatorItem]; 19 NSMenuItem* separator = [NSMenuItem separatorItem];
20 [parent_menu addItem:separator]; 20 [parent_menu addItem:separator];
21 } 21 }
(...skipping 29 matching lines...) Expand all
51 if (item_id == 0) { 51 if (item_id == 0) {
52 AddSeparatorToMenu(encoding_menu); 52 AddSeparatorToMenu(encoding_menu);
53 } else { 53 } else {
54 NSString *localized_title = 54 NSString *localized_title =
55 base::SysUTF16ToNSString(localized_title_string16); 55 base::SysUTF16ToNSString(localized_title_string16);
56 AppendMenuItem(encoding_menu, item_id, localized_title); 56 AppendMenuItem(encoding_menu, item_id, localized_title);
57 } 57 }
58 } 58 }
59 59
60 } 60 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698