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

Side by Side Diff: content/shell/common/shell_switches.cc

Issue 2431753002: Mus experiment in content shell on Android.
Patch Set: Fix mac bot Created 4 years, 1 month 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 | « content/shell/common/shell_switches.h ('k') | services/ui/public/cpp/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "content/shell/common/layout_test/layout_test_switches.h" 9 #include "content/shell/common/layout_test/layout_test_switches.h"
10 10
11 namespace switches { 11 namespace switches {
12 12
13 // Tells Content Shell that it's running as a content_browsertest. 13 // Tells Content Shell that it's running as a content_browsertest.
14 const char kContentBrowserTest[] = "browser-test"; 14 const char kContentBrowserTest[] = "browser-test";
15 15
16 // Makes Content Shell use the given path for its data directory. 16 // Makes Content Shell use the given path for its data directory.
17 const char kContentShellDataPath[] = "data-path"; 17 const char kContentShellDataPath[] = "data-path";
18 18
19 // Size for the content_shell's host window (i.e. "800x600").
20 const char kContentShellHostWindowSize[] = "content-shell-host-window-size";
21
19 // The directory breakpad should store minidumps in. 22 // The directory breakpad should store minidumps in.
20 const char kCrashDumpsDir[] = "crash-dumps-dir"; 23 const char kCrashDumpsDir[] = "crash-dumps-dir";
21 24
22 // Exposes the window.internals object to JavaScript for interactive development 25 // Exposes the window.internals object to JavaScript for interactive development
23 // and debugging of layout tests that rely on it. 26 // and debugging of layout tests that rely on it.
24 const char kExposeInternalsForTesting[] = "expose-internals-for-testing"; 27 const char kExposeInternalsForTesting[] = "expose-internals-for-testing";
25 28
26 // Enable site isolation (--site-per-process style isolation) for a subset of 29 // Enable site isolation (--site-per-process style isolation) for a subset of
27 // sites. The argument is a wildcard pattern which will be matched against the 30 // sites. The argument is a wildcard pattern which will be matched against the
28 // site URL to determine which sites to isolate. This can be used to isolate 31 // site URL to determine which sites to isolate. This can be used to isolate
29 // just one top-level domain, or just one scheme. Example usages: 32 // just one top-level domain, or just one scheme. Example usages:
30 // --isolate-sites-for-testing=*.com 33 // --isolate-sites-for-testing=*.com
31 // --isolate-sites-for-testing=https://* 34 // --isolate-sites-for-testing=https://*
32 const char kIsolateSitesForTesting[] = "isolate-sites-for-testing"; 35 const char kIsolateSitesForTesting[] = "isolate-sites-for-testing";
33 36
34 // Registers additional font files on Windows (for fonts outside the usual 37 // Registers additional font files on Windows (for fonts outside the usual
35 // %WINDIR%\Fonts location). Multiple files can be used by separating them 38 // %WINDIR%\Fonts location). Multiple files can be used by separating them
36 // with a semicolon (;). 39 // with a semicolon (;).
37 const char kRegisterFontFiles[] = "register-font-files"; 40 const char kRegisterFontFiles[] = "register-font-files";
38 41
39 // Size for the content_shell's host window (i.e. "800x600"). 42 // Shows a button on the location bar that starts the Mus demo.
40 const char kContentShellHostWindowSize[] = "content-shell-host-window-size"; 43 const char kShowMusDemoButton[] = "show-mus-demo-button";
41 44
42 std::vector<std::string> GetSideloadFontFiles() { 45 std::vector<std::string> GetSideloadFontFiles() {
43 std::vector<std::string> files; 46 std::vector<std::string> files;
44 const base::CommandLine& command_line = 47 const base::CommandLine& command_line =
45 *base::CommandLine::ForCurrentProcess(); 48 *base::CommandLine::ForCurrentProcess();
46 if (command_line.HasSwitch(switches::kRegisterFontFiles)) { 49 if (command_line.HasSwitch(switches::kRegisterFontFiles)) {
47 files = base::SplitString( 50 files = base::SplitString(
48 command_line.GetSwitchValueASCII(switches::kRegisterFontFiles), 51 command_line.GetSwitchValueASCII(switches::kRegisterFontFiles),
49 ";", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 52 ";", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
50 } 53 }
51 return files; 54 return files;
52 } 55 }
53 56
54 bool IsRunLayoutTestSwitchPresent() { 57 bool IsRunLayoutTestSwitchPresent() {
55 return base::CommandLine::ForCurrentProcess()->HasSwitch( 58 return base::CommandLine::ForCurrentProcess()->HasSwitch(
56 switches::kRunLayoutTest); 59 switches::kRunLayoutTest);
57 } 60 }
58 61
59 } // namespace switches 62 } // namespace switches
OLDNEW
« no previous file with comments | « content/shell/common/shell_switches.h ('k') | services/ui/public/cpp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698