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

Side by Side Diff: chrome/browser/tab_contents/render_view_context_menu_mac.mm

Issue 109043: Move l10n_util to app/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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) 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/tab_contents/render_view_context_menu_mac.h" 5 #include "chrome/browser/tab_contents/render_view_context_menu_mac.h"
6 6
7 #include "app/l10n_util.h"
7 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
8 #include "base/sys_string_conversions.h" 9 #include "base/sys_string_conversions.h"
9 #include "chrome/browser/profile.h" 10 #include "chrome/browser/profile.h"
10 #include "chrome/common/l10n_util.h"
11 #include "grit/generated_resources.h" 11 #include "grit/generated_resources.h"
12 12
13 // Obj-C bridge class that is the target of all items in the context menu. 13 // Obj-C bridge class that is the target of all items in the context menu.
14 // Relies on the tag being set to the command id. Uses |context_| to 14 // Relies on the tag being set to the command id. Uses |context_| to
15 // execute the command once it is selected and determine if commands should 15 // execute the command once it is selected and determine if commands should
16 // be enabled or disabled. 16 // be enabled or disabled.
17 17
18 @interface ContextMenuTarget : NSObject { 18 @interface ContextMenuTarget : NSObject {
19 @private 19 @private
20 RenderViewContextMenuMac* context_; // weak, owns us. 20 RenderViewContextMenuMac* context_; // weak, owns us.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 [submenu_item setSubmenu:insert_menu_]; 130 [submenu_item setSubmenu:insert_menu_];
131 [menu_ addItem:submenu_item]; 131 [menu_ addItem:submenu_item];
132 } 132 }
133 133
134 void RenderViewContextMenuMac::FinishSubMenu() { 134 void RenderViewContextMenuMac::FinishSubMenu() {
135 // Set the "insert menu" back to the main menu so that subsequently added 135 // Set the "insert menu" back to the main menu so that subsequently added
136 // items get added to the main context menu. 136 // items get added to the main context menu.
137 DCHECK(insert_menu_ != menu_); 137 DCHECK(insert_menu_ != menu_);
138 insert_menu_ = menu_; 138 insert_menu_ = menu_;
139 } 139 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/browser/tab_contents/render_view_context_menu_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698