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

Side by Side Diff: headless/app/headless_shell_switches.cc

Issue 2814043002: [headless] Add command line flag for default background color. (Closed)
Patch Set: Created 3 years, 8 months 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 | « headless/app/headless_shell_switches.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // The background color to be used if the page doesn't specify one. Provided as
11 // RGBA integer value in hex, e.g. 'ff0000ff' for red or '00000000' for
12 // transparent.
13 const char kDefaultBackgroundColor[] = "default-background-color";
14
10 // The directory breakpad should store minidumps in. 15 // The directory breakpad should store minidumps in.
11 const char kCrashDumpsDir[] = "crash-dumps-dir"; 16 const char kCrashDumpsDir[] = "crash-dumps-dir";
12 17
13 // Instructs headless_shell to cause network fetches to complete in order of 18 // Instructs headless_shell to cause network fetches to complete in order of
14 // creation. This removes a significant source of network related 19 // creation. This removes a significant source of network related
15 // non-determinism at the cost of slower page loads. 20 // non-determinism at the cost of slower page loads.
16 const char kDeterministicFetch[] = "deterministic-fetch"; 21 const char kDeterministicFetch[] = "deterministic-fetch";
17 22
18 // Instructs headless_shell to print document.body.innerHTML to stdout. 23 // Instructs headless_shell to print document.body.innerHTML to stdout.
19 const char kDumpDom[] = "dump-dom"; 24 const char kDumpDom[] = "dump-dom";
(...skipping 22 matching lines...) Expand all
42 const char kScreenshot[] = "screenshot"; 47 const char kScreenshot[] = "screenshot";
43 48
44 // Issues a stop after the specified number of milliseconds. This cancels all 49 // Issues a stop after the specified number of milliseconds. This cancels all
45 // navigation and causes the DOMContentLoaded event to fire. 50 // navigation and causes the DOMContentLoaded event to fire.
46 const char kTimeout[] = "timeout"; 51 const char kTimeout[] = "timeout";
47 52
48 // Sets the GL implementation to use. Use a blank string to disable GL 53 // Sets the GL implementation to use. Use a blank string to disable GL
49 // rendering. 54 // rendering.
50 const char kUseGL[] = "use-gl"; 55 const char kUseGL[] = "use-gl";
51 56
57 // A string used to override the default user agent with a custom one.
58 const char kUserAgent[] = "user-agent";
59
52 // Directory where the browser stores the user profile. 60 // Directory where the browser stores the user profile.
53 const char kUserDataDir[] = "user-data-dir"; 61 const char kUserDataDir[] = "user-data-dir";
54 62
55 // If set the system waits the specified number of virtual milliseconds before 63 // If set the system waits the specified number of virtual milliseconds before
56 // deeming the page to be ready. For determinism virtual time does not advance 64 // deeming the page to be ready. For determinism virtual time does not advance
57 // while there are pending network fetches (i.e no timers will fire). Once all 65 // while there are pending network fetches (i.e no timers will fire). Once all
58 // network fetches have completed, timers fire and if the system runs out of 66 // network fetches have completed, timers fire and if the system runs out of
59 // virtual time is fastforwarded so the next timer fires immediatley, until the 67 // virtual time is fastforwarded so the next timer fires immediatley, until the
60 // specified virtual time budget is exhausted. 68 // specified virtual time budget is exhausted.
61 const char kVirtualTimeBudget[] = "virtual-time-budget"; 69 const char kVirtualTimeBudget[] = "virtual-time-budget";
62 70
63 // Sets the initial window size. Provided as string in the format "800,600". 71 // Sets the initial window size. Provided as string in the format "800,600".
64 const char kWindowSize[] = "window-size"; 72 const char kWindowSize[] = "window-size";
65 73
66 // A string used to override the default user agent with a custom one.
67 const char kUserAgent[] = "user-agent";
68
69 } // namespace switches 74 } // namespace switches
70 } // namespace headless 75 } // namespace headless
OLDNEW
« no previous file with comments | « headless/app/headless_shell_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698