OLD | NEW |
---|---|
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 "content/shell/common/shell_switches.h" | 5 #include "content/shell/common/shell_switches.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/strings/string_split.h" | 8 #include "base/strings/string_split.h" |
9 | 9 |
10 namespace switches { | 10 namespace switches { |
(...skipping 10 matching lines...) Expand all Loading... | |
21 // Makes Content Shell use the given path for its data directory. | 21 // Makes Content Shell use the given path for its data directory. |
22 const char kContentShellDataPath[] = "data-path"; | 22 const char kContentShellDataPath[] = "data-path"; |
23 | 23 |
24 // The directory breakpad should store minidumps in. | 24 // The directory breakpad should store minidumps in. |
25 const char kCrashDumpsDir[] = "crash-dumps-dir"; | 25 const char kCrashDumpsDir[] = "crash-dumps-dir"; |
26 | 26 |
27 // When specified to "enable-leak-detection" command-line option, | 27 // When specified to "enable-leak-detection" command-line option, |
28 // causes the leak detector to cause immediate crash when found leak. | 28 // causes the leak detector to cause immediate crash when found leak. |
29 const char kCrashOnFailure[] = "crash-on-failure"; | 29 const char kCrashOnFailure[] = "crash-on-failure"; |
30 | 30 |
31 // When run-layout-test is enabled, this causes the line box tree for | |
32 // each LayoutBlockFlow to be dumped as well. | |
33 const char kDumpLineBoxTrees[] = "dump-line-box-trees"; | |
jochen (gone - plz use gerrit)
2016/03/04 12:34:14
maybe we should factor out layout_test switches in
| |
34 | |
35 // Enable accelerated 2D canvas. | 31 // Enable accelerated 2D canvas. |
36 const char kEnableAccelerated2DCanvas[] = "enable-accelerated-2d-canvas"; | 32 const char kEnableAccelerated2DCanvas[] = "enable-accelerated-2d-canvas"; |
37 | 33 |
38 // Enable font antialiasing for pixel tests. | 34 // Enable font antialiasing for pixel tests. |
39 const char kEnableFontAntialiasing[] = "enable-font-antialiasing"; | 35 const char kEnableFontAntialiasing[] = "enable-font-antialiasing"; |
40 | 36 |
41 // Always use the complex text path for layout tests. | 37 // Always use the complex text path for layout tests. |
42 const char kAlwaysUseComplexText[] = "always-use-complex-text"; | 38 const char kAlwaysUseComplexText[] = "always-use-complex-text"; |
43 | 39 |
44 // Enables the leak detection of loading webpages. This allows us to check | 40 // Enables the leak detection of loading webpages. This allows us to check |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
84 *base::CommandLine::ForCurrentProcess(); | 80 *base::CommandLine::ForCurrentProcess(); |
85 if (command_line.HasSwitch(switches::kRegisterFontFiles)) { | 81 if (command_line.HasSwitch(switches::kRegisterFontFiles)) { |
86 files = base::SplitString( | 82 files = base::SplitString( |
87 command_line.GetSwitchValueASCII(switches::kRegisterFontFiles), | 83 command_line.GetSwitchValueASCII(switches::kRegisterFontFiles), |
88 ";", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); | 84 ";", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
89 } | 85 } |
90 return files; | 86 return files; |
91 } | 87 } |
92 | 88 |
93 } // namespace switches | 89 } // namespace switches |
OLD | NEW |