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 // Request the render trees of pages to be dumped as text once they have | 31 // When run-layout-test is enabled, this causes the line box tree for |
32 // finished loading. Note that this switch has been deprecated, and the | |
33 // identically functioning |kRunLayoutTest| switch should be used instead. | |
34 const char kDumpRenderTree[] = "dump-render-tree"; | |
35 | |
36 // When dump-render-tree is enabled, this causes the line box tree for | |
37 // each LayoutBlockFlow to be dumped as well. | 32 // each LayoutBlockFlow to be dumped as well. |
38 const char kDumpLineBoxTrees[] = "dump-line-box-trees"; | 33 const char kDumpLineBoxTrees[] = "dump-line-box-trees"; |
39 | 34 |
40 // Expose window.ipcTester object for testing | 35 // Expose window.ipcTester object for testing |
41 const char kExposeIpcEcho[] = "expose-ipc-echo"; | 36 const char kExposeIpcEcho[] = "expose-ipc-echo"; |
42 | 37 |
43 // Enable accelerated 2D canvas. | 38 // Enable accelerated 2D canvas. |
44 const char kEnableAccelerated2DCanvas[] = "enable-accelerated-2d-canvas"; | 39 const char kEnableAccelerated2DCanvas[] = "enable-accelerated-2d-canvas"; |
45 | 40 |
46 // Enable font antialiasing for pixel tests. | 41 // Enable font antialiasing for pixel tests. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 *base::CommandLine::ForCurrentProcess(); | 76 *base::CommandLine::ForCurrentProcess(); |
82 if (command_line.HasSwitch(switches::kRegisterFontFiles)) { | 77 if (command_line.HasSwitch(switches::kRegisterFontFiles)) { |
83 files = base::SplitString( | 78 files = base::SplitString( |
84 command_line.GetSwitchValueASCII(switches::kRegisterFontFiles), | 79 command_line.GetSwitchValueASCII(switches::kRegisterFontFiles), |
85 ";", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); | 80 ";", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
86 } | 81 } |
87 return files; | 82 return files; |
88 } | 83 } |
89 | 84 |
90 } // namespace switches | 85 } // namespace switches |
OLD | NEW |