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

Side by Side Diff: chrome/browser/ui/toolbar/wrench_menu_model.cc

Issue 8669002: More TOUCH_UI hacks and constant removal. And TODO(saintlou) cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ui/toolbar/wrench_menu_model.h" 5 #include "chrome/browser/ui/toolbar/wrench_menu_model.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 #if !defined(OS_CHROMEOS) 174 #if !defined(OS_CHROMEOS)
175 // Show IDC_FEEDBACK in "Tools" menu for non-ChromeOS platforms. 175 // Show IDC_FEEDBACK in "Tools" menu for non-ChromeOS platforms.
176 AddItemWithStringId(IDC_FEEDBACK, IDS_FEEDBACK); 176 AddItemWithStringId(IDC_FEEDBACK, IDS_FEEDBACK);
177 AddSeparator(); 177 AddSeparator();
178 #endif 178 #endif
179 179
180 encoding_menu_model_.reset(new EncodingMenuModel(browser)); 180 encoding_menu_model_.reset(new EncodingMenuModel(browser));
181 AddSubMenuWithStringId(IDC_ENCODING_MENU, IDS_ENCODING_MENU, 181 AddSubMenuWithStringId(IDC_ENCODING_MENU, IDS_ENCODING_MENU,
182 encoding_menu_model_.get()); 182 encoding_menu_model_.get());
183 AddItemWithStringId(IDC_VIEW_SOURCE, IDS_VIEW_SOURCE); 183 AddItemWithStringId(IDC_VIEW_SOURCE, IDS_VIEW_SOURCE);
184 #if !defined(TOUCH_UI)
185 // Disable dev-tools/console since it isn't touch-friendly yet.
186 AddItemWithStringId(IDC_DEV_TOOLS, IDS_DEV_TOOLS); 184 AddItemWithStringId(IDC_DEV_TOOLS, IDS_DEV_TOOLS);
187 AddItemWithStringId(IDC_DEV_TOOLS_CONSOLE, IDS_DEV_TOOLS_CONSOLE); 185 AddItemWithStringId(IDC_DEV_TOOLS_CONSOLE, IDS_DEV_TOOLS_CONSOLE);
188 #endif
189 186
190 #if defined(ENABLE_PROFILING) && !defined(NO_TCMALLOC) 187 #if defined(ENABLE_PROFILING) && !defined(NO_TCMALLOC)
191 AddSeparator(); 188 AddSeparator();
192 AddCheckItemWithStringId(IDC_PROFILING_ENABLED, IDS_PROFILING_ENABLED); 189 AddCheckItemWithStringId(IDC_PROFILING_ENABLED, IDS_PROFILING_ENABLED);
193 #endif 190 #endif
194 } 191 }
195 192
196 //////////////////////////////////////////////////////////////////////////////// 193 ////////////////////////////////////////////////////////////////////////////////
197 // WrenchMenuModel 194 // WrenchMenuModel
198 195
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 &enable_increment, &enable_decrement); 592 &enable_increment, &enable_decrement);
596 } 593 }
597 zoom_label_ = l10n_util::GetStringFUTF16( 594 zoom_label_ = l10n_util::GetStringFUTF16(
598 IDS_ZOOM_PERCENT, base::IntToString16(zoom_percent)); 595 IDS_ZOOM_PERCENT, base::IntToString16(zoom_percent));
599 } 596 }
600 597
601 string16 WrenchMenuModel::GetSyncMenuLabel() const { 598 string16 WrenchMenuModel::GetSyncMenuLabel() const {
602 return sync_ui_util::GetSyncMenuLabel( 599 return sync_ui_util::GetSyncMenuLabel(
603 browser_->profile()->GetOriginalProfile()->GetProfileSyncService()); 600 browser_->profile()->GetOriginalProfile()->GetProfileSyncService());
604 } 601 }
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_utils_unittest.cc ('k') | chrome/browser/ui/toolbar/wrench_menu_model_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698