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

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

Issue 2525903003: Add Page.stopLoading to devtools and --timeout switch to headless_shell (Closed)
Patch Set: FixPage.stopLoading command description. Created 4 years 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
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 // 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
(...skipping 17 matching lines...) Expand all
28 // so exposing it too widely can be a security risk. 28 // so exposing it too widely can be a security risk.
29 const char kRemoteDebuggingAddress[] = "remote-debugging-address"; 29 const char kRemoteDebuggingAddress[] = "remote-debugging-address";
30 30
31 // Runs a read-eval-print loop that allows the user to evaluate Javascript 31 // Runs a read-eval-print loop that allows the user to evaluate Javascript
32 // expressions. 32 // expressions.
33 const char kRepl[] = "repl"; 33 const char kRepl[] = "repl";
34 34
35 // Save a screenshot of the loaded page. 35 // Save a screenshot of the loaded page.
36 const char kScreenshot[] = "screenshot"; 36 const char kScreenshot[] = "screenshot";
37 37
38 // Issues a stop after the specified number of milliseconds. This cancels all
39 // navigation and causes the DOMContentLoaded event to fire.
40 const char kTimeout[] = "timeout";
41
38 // Sets the GL implementation to use. Use a blank string to disable GL 42 // Sets the GL implementation to use. Use a blank string to disable GL
39 // rendering. 43 // rendering.
40 const char kUseGL[] = "use-gl"; 44 const char kUseGL[] = "use-gl";
41 45
42 // Directory where the browser stores the user profile. 46 // Directory where the browser stores the user profile.
43 const char kUserDataDir[] = "user-data-dir"; 47 const char kUserDataDir[] = "user-data-dir";
44 48
45 // If set the system waits the specified number of virtual milliseconds before 49 // If set the system waits the specified number of virtual milliseconds before
46 // deeming the page to be ready. For determinism virtual time does not advance 50 // deeming the page to be ready. For determinism virtual time does not advance
47 // while there are pending network fetches (i.e no timers will fire). Once all 51 // while there are pending network fetches (i.e no timers will fire). Once all
48 // network fetches have completed, timers fire and if the system runs out of 52 // network fetches have completed, timers fire and if the system runs out of
49 // virtual time is fastforwarded so the next timer fires immediatley, until the 53 // virtual time is fastforwarded so the next timer fires immediatley, until the
50 // specified virtual time budget is exhausted. 54 // specified virtual time budget is exhausted.
51 const char kVirtualTimeBudget[] = "virtual-time-budget"; 55 const char kVirtualTimeBudget[] = "virtual-time-budget";
52 56
53 // Sets the initial window size. Provided as string in the format "800x600". 57 // Sets the initial window size. Provided as string in the format "800x600".
54 const char kWindowSize[] = "window-size"; 58 const char kWindowSize[] = "window-size";
55 59
56 } // namespace switches 60 } // namespace switches
57 } // namespace headless 61 } // namespace headless
OLDNEW
« no previous file with comments | « headless/app/headless_shell_switches.h ('k') | third_party/WebKit/Source/core/inspector/InspectorPageAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698