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

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 2458833005: Move printing defines to buildflag system. (Closed)
Patch Set: Merge Created 4 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
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/common/chrome_utility_printing_messages.h » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/common/chrome_switches.h" 5 #include "chrome/common/chrome_switches.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "printing/features/features.h"
10 11
11 namespace switches { 12 namespace switches {
12 13
13 // ----------------------------------------------------------------------------- 14 // -----------------------------------------------------------------------------
14 // Can't find the switch you are looking for? Try looking in: 15 // Can't find the switch you are looking for? Try looking in:
15 // ash/common/ash_switches.cc 16 // ash/common/ash_switches.cc
16 // base/base_switches.cc 17 // base/base_switches.cc
17 // chromeos/chromeos_switches.cc 18 // chromeos/chromeos_switches.cc
18 // etc. 19 // etc.
19 // 20 //
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 const char kWatcherProcess[] = "watcher"; 1252 const char kWatcherProcess[] = "watcher";
1252 1253
1253 // Enables custom-drawing the titlebar and tabstrip background so that it's not 1254 // Enables custom-drawing the titlebar and tabstrip background so that it's not
1254 // a garish #FFFFFF like it is by default on Windows 10. 1255 // a garish #FFFFFF like it is by default on Windows 10.
1255 const char kWindows10CustomTitlebar[] = "windows10-custom-titlebar"; 1256 const char kWindows10CustomTitlebar[] = "windows10-custom-titlebar";
1256 1257
1257 // Indicates that chrome was launched to service a search request in Windows 8. 1258 // Indicates that chrome was launched to service a search request in Windows 8.
1258 const char kWindows8Search[] = "windows8-search"; 1259 const char kWindows8Search[] = "windows8-search";
1259 #endif // defined(OS_WIN) 1260 #endif // defined(OS_WIN)
1260 1261
1261 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD) 1262 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD)
1262 // Enables support to debug printing subsystem. 1263 // Enables support to debug printing subsystem.
1263 const char kDebugPrint[] = "debug-print"; 1264 const char kDebugPrint[] = "debug-print";
1264 #endif 1265 #endif
1265 1266
1266 #if defined(ENABLE_PLUGINS) 1267 #if defined(ENABLE_PLUGINS)
1267 // Specifies comma-separated list of extension ids or hosts to grant 1268 // Specifies comma-separated list of extension ids or hosts to grant
1268 // access to CRX file system APIs. 1269 // access to CRX file system APIs.
1269 const char kAllowNaClCrxFsAPI[] = "allow-nacl-crxfs-api"; 1270 const char kAllowNaClCrxFsAPI[] = "allow-nacl-crxfs-api";
1270 1271
1271 // Specifies comma-separated list of extension ids or hosts to grant 1272 // Specifies comma-separated list of extension ids or hosts to grant
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1327 1328
1328 // ----------------------------------------------------------------------------- 1329 // -----------------------------------------------------------------------------
1329 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. 1330 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE.
1330 // 1331 //
1331 // You were going to just dump your switches here, weren't you? Instead, please 1332 // You were going to just dump your switches here, weren't you? Instead, please
1332 // put them in alphabetical order above, or in order inside the appropriate 1333 // put them in alphabetical order above, or in order inside the appropriate
1333 // ifdef at the bottom. The order should match the header. 1334 // ifdef at the bottom. The order should match the header.
1334 // ----------------------------------------------------------------------------- 1335 // -----------------------------------------------------------------------------
1335 1336
1336 } // namespace switches 1337 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/common/chrome_utility_printing_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698