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

Side by Side Diff: chrome/test/chromedriver/capabilities.h

Issue 251933005: [ChromeDriver] Support mobile emulation on desktop Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef CHROME_TEST_CHROMEDRIVER_CAPABILITIES_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_CAPABILITIES_H_
6 #define CHROME_TEST_CHROMEDRIVER_CAPABILITIES_H_ 6 #define CHROME_TEST_CHROMEDRIVER_CAPABILITIES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/strings/string16.h" 16 #include "base/strings/string16.h"
17 #include "chrome/test/chromedriver/chrome/device_metrics.h"
17 #include "chrome/test/chromedriver/chrome/log.h" 18 #include "chrome/test/chromedriver/chrome/log.h"
18 #include "chrome/test/chromedriver/net/net_util.h" 19 #include "chrome/test/chromedriver/net/net_util.h"
19 20
20 namespace base { 21 namespace base {
21 class CommandLine; 22 class CommandLine;
22 class DictionaryValue; 23 class DictionaryValue;
23 } 24 }
24 25
25 class Status; 26 class Status;
26 27
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 base::FilePath binary; 85 base::FilePath binary;
85 86
86 // If provided, the remote debugging address to connect to. 87 // If provided, the remote debugging address to connect to.
87 NetAddress debugger_address; 88 NetAddress debugger_address;
88 89
89 // Whether the lifetime of the started Chrome browser process should be 90 // Whether the lifetime of the started Chrome browser process should be
90 // bound to ChromeDriver's process. If true, Chrome will not quit if 91 // bound to ChromeDriver's process. If true, Chrome will not quit if
91 // ChromeDriver dies. 92 // ChromeDriver dies.
92 bool detach; 93 bool detach;
93 94
95 // Device metrics for use in Device Emulation
stgao 2014/04/30 03:32:55 style nit: A comment ends with a dot.
sam.rawlins 2014/05/06 23:51:46 Done.
96 DeviceMetrics device_metrics;
stgao 2014/05/03 00:15:20 I made a comment about this in the design doc. Ple
97
94 // Set of switches which should be removed from default list when launching 98 // Set of switches which should be removed from default list when launching
95 // Chrome. 99 // Chrome.
96 std::set<std::string> exclude_switches; 100 std::set<std::string> exclude_switches;
97 101
98 std::vector<std::string> extensions; 102 std::vector<std::string> extensions;
99 103
100 // True if should always use DevTools for taking screenshots. 104 // True if should always use DevTools for taking screenshots.
101 // This is experimental and may be removed at a later point. 105 // This is experimental and may be removed at a later point.
102 bool force_devtools_screenshot; 106 bool force_devtools_screenshot;
103 107
104 scoped_ptr<base::DictionaryValue> local_state; 108 scoped_ptr<base::DictionaryValue> local_state;
105 109
106 std::string log_path; 110 std::string log_path;
107 111
108 LoggingPrefs logging_prefs; 112 LoggingPrefs logging_prefs;
109 113
110 // If set, enable minidump for chrome crashes and save to this directory. 114 // If set, enable minidump for chrome crashes and save to this directory.
111 std::string minidump_path; 115 std::string minidump_path;
112 116
113 scoped_ptr<base::DictionaryValue> prefs; 117 scoped_ptr<base::DictionaryValue> prefs;
114 118
115 Switches switches; 119 Switches switches;
116 }; 120 };
117 121
118 #endif // CHROME_TEST_CHROMEDRIVER_CAPABILITIES_H_ 122 #endif // CHROME_TEST_CHROMEDRIVER_CAPABILITIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698