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

Side by Side Diff: chrome/browser/page_menu_model.cc

Issue 2099007: GTK: Add "Show as Tab" to popup windows. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 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
« no previous file with comments | « no previous file | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/page_menu_model.h" 5 #include "chrome/browser/page_menu_model.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/app/chrome_dll_resource.h" 9 #include "chrome/app/chrome_dll_resource.h"
10 #include "chrome/browser/browser.h" 10 #include "chrome/browser/browser.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 Browser* browser) 151 Browser* browser)
152 : menus::SimpleMenuModel(delegate), browser_(browser) { 152 : menus::SimpleMenuModel(delegate), browser_(browser) {
153 Build(); 153 Build();
154 } 154 }
155 155
156 void PopupPageMenuModel::Build() { 156 void PopupPageMenuModel::Build() {
157 AddItemWithStringId(IDC_BACK, IDS_CONTENT_CONTEXT_BACK); 157 AddItemWithStringId(IDC_BACK, IDS_CONTENT_CONTEXT_BACK);
158 AddItemWithStringId(IDC_FORWARD, IDS_CONTENT_CONTEXT_FORWARD); 158 AddItemWithStringId(IDC_FORWARD, IDS_CONTENT_CONTEXT_FORWARD);
159 AddItemWithStringId(IDC_RELOAD, IDS_APP_MENU_RELOAD); 159 AddItemWithStringId(IDC_RELOAD, IDS_APP_MENU_RELOAD);
160 AddSeparator(); 160 AddSeparator();
161 AddItemWithStringId(IDC_SHOW_AS_TAB, IDS_SHOW_AS_TAB);
162 AddSeparator();
161 AddItemWithStringId(IDC_CUT, IDS_CUT); 163 AddItemWithStringId(IDC_CUT, IDS_CUT);
162 AddItemWithStringId(IDC_COPY, IDS_COPY); 164 AddItemWithStringId(IDC_COPY, IDS_COPY);
163 AddItemWithStringId(IDC_PASTE, IDS_PASTE); 165 AddItemWithStringId(IDC_PASTE, IDS_PASTE);
164 AddSeparator(); 166 AddSeparator();
165 AddItemWithStringId(IDC_FIND, IDS_FIND); 167 AddItemWithStringId(IDC_FIND, IDS_FIND);
166 AddItemWithStringId(IDC_PRINT, IDS_PRINT); 168 AddItemWithStringId(IDC_PRINT, IDS_PRINT);
167 zoom_menu_model_.reset(new ZoomMenuModel(delegate())); 169 zoom_menu_model_.reset(new ZoomMenuModel(delegate()));
168 AddSubMenuWithStringId(IDC_ZOOM_MENU, IDS_ZOOM_MENU, zoom_menu_model_.get()); 170 AddSubMenuWithStringId(IDC_ZOOM_MENU, IDS_ZOOM_MENU, zoom_menu_model_.get());
169 171
170 encoding_menu_model_.reset(new EncodingMenuModel(browser_)); 172 encoding_menu_model_.reset(new EncodingMenuModel(browser_));
171 AddSubMenuWithStringId(IDC_ENCODING_MENU, IDS_ENCODING_MENU, 173 AddSubMenuWithStringId(IDC_ENCODING_MENU, IDS_ENCODING_MENU,
172 encoding_menu_model_.get()); 174 encoding_menu_model_.get());
173 } 175 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698