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 3 // found in the LICENSE file. 4 5 #include "content/shell/common/shell_switches.h" 6 7 #include "base/command_line.h" 8 9 namespace switches { 10 11 // Makes Content Shell use the given path for its data directory. 12 const char kContentShellDataPath[] = "data-path"; 13 14 // The directory breakpad should store minidumps in. 15 const char kCrashDumpsDir[] = "crash-dumps-dir"; 16 17 // Exposes the window.internals object to JavaScript for interactive development 18 // and debugging of web tests that rely on it. 19 const char kExposeInternalsForTesting[] = "expose-internals-for-testing"; 20 21 // Size for the content_shell's host window (i.e. "800x600"). 22 const char kContentShellHostWindowSize[] = "content-shell-host-window-size"; 23 24 // Hides toolbar from content_shell's host window. 25 const char kContentShellHideToolbar[] = "content-shell-hide-toolbar"; 26 27 // Runs Content Shell in web test mode, injecting test-only behaviour for 28 // blink web tests. 29 const char kRunWebTests[] = "run-web-tests"; 30 IsRunWebTestsSwitchPresent()31bool IsRunWebTestsSwitchPresent() { 32 return base::CommandLine::ForCurrentProcess()->HasSwitch( 33 switches::kRunWebTests); 34 } 35 36 } // namespace switches 37