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

Side by Side Diff: chrome/test/chromedriver/chrome/chrome_impl.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_CHROME_CHROME_IMPL_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_IMPL_H_
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_IMPL_H_ 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 19 matching lines...) Expand all
30 30
31 // Overridden from Chrome: 31 // Overridden from Chrome:
32 virtual ChromeDesktopImpl* GetAsDesktop() OVERRIDE; 32 virtual ChromeDesktopImpl* GetAsDesktop() OVERRIDE;
33 virtual const BrowserInfo* GetBrowserInfo() OVERRIDE; 33 virtual const BrowserInfo* GetBrowserInfo() OVERRIDE;
34 virtual bool HasCrashedWebView() OVERRIDE; 34 virtual bool HasCrashedWebView() OVERRIDE;
35 virtual Status GetWebViewIds(std::list<std::string>* web_view_ids) OVERRIDE; 35 virtual Status GetWebViewIds(std::list<std::string>* web_view_ids) OVERRIDE;
36 virtual Status GetWebViewById(const std::string& id, 36 virtual Status GetWebViewById(const std::string& id,
37 WebView** web_view) OVERRIDE; 37 WebView** web_view) OVERRIDE;
38 virtual Status CloseWebView(const std::string& id) OVERRIDE; 38 virtual Status CloseWebView(const std::string& id) OVERRIDE;
39 virtual Status ActivateWebView(const std::string& id) OVERRIDE; 39 virtual Status ActivateWebView(const std::string& id) OVERRIDE;
40 virtual bool IsMobileEmulationEnabled() const OVERRIDE;
40 virtual Status Quit() OVERRIDE; 41 virtual Status Quit() OVERRIDE;
41 42
42 protected: 43 protected:
43 ChromeImpl( 44 ChromeImpl(
44 scoped_ptr<DevToolsHttpClient> client, 45 scoped_ptr<DevToolsHttpClient> client,
45 ScopedVector<DevToolsEventListener>& devtools_event_listeners, 46 ScopedVector<DevToolsEventListener>& devtools_event_listeners,
46 scoped_ptr<PortReservation> port_reservation); 47 scoped_ptr<PortReservation> port_reservation);
47 48
48 virtual Status QuitImpl() = 0; 49 virtual Status QuitImpl() = 0;
49 50
50 bool quit_; 51 bool quit_;
51 scoped_ptr<DevToolsHttpClient> devtools_http_client_; 52 scoped_ptr<DevToolsHttpClient> devtools_http_client_;
52 53
53 private: 54 private:
54 typedef std::list<linked_ptr<WebViewImpl> > WebViewList; 55 typedef std::list<linked_ptr<WebViewImpl> > WebViewList;
55 56
56 // Web views in this list are in the same order as they are opened. 57 // Web views in this list are in the same order as they are opened.
57 WebViewList web_views_; 58 WebViewList web_views_;
58 ScopedVector<DevToolsEventListener> devtools_event_listeners_; 59 ScopedVector<DevToolsEventListener> devtools_event_listeners_;
59 scoped_ptr<PortReservation> port_reservation_; 60 scoped_ptr<PortReservation> port_reservation_;
60 }; 61 };
61 62
62 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_IMPL_H_ 63 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698