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

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

Issue 288193004: [Chromedriver] Add Device Metrics override support to ChromeDriver via Capabilities (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) 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 #ifndef CHROME_TEST_CHROMEDRIVER_SESSION_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_SESSION_H_
6 #define CHROME_TEST_CHROMEDRIVER_SESSION_H_ 6 #define CHROME_TEST_CHROMEDRIVER_SESSION_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/files/scoped_temp_dir.h" 12 #include "base/files/scoped_temp_dir.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/scoped_vector.h" 14 #include "base/memory/scoped_vector.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "chrome/test/chromedriver/basic_types.h" 16 #include "chrome/test/chromedriver/basic_types.h"
17 #include "chrome/test/chromedriver/chrome/device_metrics.h"
17 #include "chrome/test/chromedriver/chrome/geoposition.h" 18 #include "chrome/test/chromedriver/chrome/geoposition.h"
18 19
19 namespace base { 20 namespace base {
20 class DictionaryValue; 21 class DictionaryValue;
21 } 22 }
22 23
23 class Chrome; 24 class Chrome;
24 class Status; 25 class Status;
25 class WebDriverLog; 26 class WebDriverLog;
26 class WebView; 27 class WebView;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // List of |FrameInfo|s for each frame to the current target frame from the 63 // List of |FrameInfo|s for each frame to the current target frame from the
63 // first frame element in the root document. If target frame is window.top, 64 // first frame element in the root document. If target frame is window.top,
64 // this list will be empty. 65 // this list will be empty.
65 std::list<FrameInfo> frames; 66 std::list<FrameInfo> frames;
66 WebPoint mouse_position; 67 WebPoint mouse_position;
67 base::TimeDelta implicit_wait; 68 base::TimeDelta implicit_wait;
68 base::TimeDelta page_load_timeout; 69 base::TimeDelta page_load_timeout;
69 base::TimeDelta script_timeout; 70 base::TimeDelta script_timeout;
70 scoped_ptr<std::string> prompt_text; 71 scoped_ptr<std::string> prompt_text;
71 scoped_ptr<Geoposition> overridden_geoposition; 72 scoped_ptr<Geoposition> overridden_geoposition;
73 scoped_ptr<DeviceMetrics> overridden_device_metrics;
72 // Logs that populate from DevTools events. 74 // Logs that populate from DevTools events.
73 ScopedVector<WebDriverLog> devtools_logs; 75 ScopedVector<WebDriverLog> devtools_logs;
74 scoped_ptr<WebDriverLog> driver_log; 76 scoped_ptr<WebDriverLog> driver_log;
75 base::ScopedTempDir temp_dir; 77 base::ScopedTempDir temp_dir;
76 scoped_ptr<base::DictionaryValue> capabilities; 78 scoped_ptr<base::DictionaryValue> capabilities;
77 bool auto_reporting_enabled; 79 bool auto_reporting_enabled;
78 }; 80 };
79 81
80 Session* GetThreadLocalSession(); 82 Session* GetThreadLocalSession();
81 83
82 void SetThreadLocalSession(scoped_ptr<Session> session); 84 void SetThreadLocalSession(scoped_ptr<Session> session);
83 85
84 #endif // CHROME_TEST_CHROMEDRIVER_SESSION_H_ 86 #endif // CHROME_TEST_CHROMEDRIVER_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698