OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "headless/app/headless_shell_switches.h" | 5 #include "headless/app/headless_shell_switches.h" |
6 | 6 |
7 namespace headless { | 7 namespace headless { |
8 namespace switches { | 8 namespace switches { |
9 | 9 |
10 // Instructs headless_shell to cause network fetches to complete in order of | 10 // Instructs headless_shell to cause network fetches to complete in order of |
11 // creation. This removes a significant source of network related | 11 // creation. This removes a significant source of network related |
12 // non-determinism at the cost of slower page loads. | 12 // non-determinism at the cost of slower page loads. |
13 const char kDeterministicFetch[] = "deterministic-fetch"; | 13 const char kDeterministicFetch[] = "deterministic-fetch"; |
14 | 14 |
15 // Instructs headless_shell to print document.body.innerHTML to stdout. | 15 // Instructs headless_shell to print document.body.innerHTML to stdout. |
16 const char kDumpDom[] = "dump-dom"; | 16 const char kDumpDom[] = "dump-dom"; |
17 | 17 |
| 18 // Hide scrollbars from screenshots. |
| 19 const char kHideScrollbars[] = "hide-scrollbars"; |
| 20 |
18 // Uses a specified proxy server, overrides system settings. This switch only | 21 // Uses a specified proxy server, overrides system settings. This switch only |
19 // affects HTTP and HTTPS requests. | 22 // affects HTTP and HTTPS requests. |
20 const char kProxyServer[] = "proxy-server"; | 23 const char kProxyServer[] = "proxy-server"; |
21 | 24 |
22 // Use the given address instead of the default loopback for accepting remote | 25 // Use the given address instead of the default loopback for accepting remote |
23 // debugging connections. Should be used together with --remote-debugging-port. | 26 // debugging connections. Should be used together with --remote-debugging-port. |
24 // Note that the remote debugging protocol does not perform any authentication, | 27 // Note that the remote debugging protocol does not perform any authentication, |
25 // so exposing it too widely can be a security risk. | 28 // so exposing it too widely can be a security risk. |
26 const char kRemoteDebuggingAddress[] = "remote-debugging-address"; | 29 const char kRemoteDebuggingAddress[] = "remote-debugging-address"; |
27 | 30 |
(...skipping 17 matching lines...) Expand all Loading... |
45 // network fetches have completed, timers fire and if the system runs out of | 48 // network fetches have completed, timers fire and if the system runs out of |
46 // virtual time is fastforwarded so the next timer fires immediatley, until the | 49 // virtual time is fastforwarded so the next timer fires immediatley, until the |
47 // specified virtual time budget is exhausted. | 50 // specified virtual time budget is exhausted. |
48 const char kVirtualTimeBudget[] = "virtual-time-budget"; | 51 const char kVirtualTimeBudget[] = "virtual-time-budget"; |
49 | 52 |
50 // Sets the initial window size. Provided as string in the format "800x600". | 53 // Sets the initial window size. Provided as string in the format "800x600". |
51 const char kWindowSize[] = "window-size"; | 54 const char kWindowSize[] = "window-size"; |
52 | 55 |
53 } // namespace switches | 56 } // namespace switches |
54 } // namespace headless | 57 } // namespace headless |
OLD | NEW |