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

Side by Side Diff: chrome/test/chromedriver/chrome/stub_web_view.cc

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 #include "base/files/file_path.h" 5 #include "base/files/file_path.h"
6 #include "base/values.h" 6 #include "base/values.h"
7 #include "chrome/test/chromedriver/chrome/status.h" 7 #include "chrome/test/chromedriver/chrome/status.h"
8 #include "chrome/test/chromedriver/chrome/stub_web_view.h" 8 #include "chrome/test/chromedriver/chrome/stub_web_view.h"
9 #include "chrome/test/chromedriver/chrome/ui_events.h" 9 #include "chrome/test/chromedriver/chrome/ui_events.h"
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 } 110 }
111 111
112 JavaScriptDialogManager* StubWebView::GetJavaScriptDialogManager() { 112 JavaScriptDialogManager* StubWebView::GetJavaScriptDialogManager() {
113 return NULL; 113 return NULL;
114 } 114 }
115 115
116 Status StubWebView::OverrideGeolocation(const Geoposition& geoposition) { 116 Status StubWebView::OverrideGeolocation(const Geoposition& geoposition) {
117 return Status(kOk); 117 return Status(kOk);
118 } 118 }
119 119
120 Status StubWebView::OverrideDeviceMetrics(const DeviceMetrics& device_metrics) {
121 return Status(kOk);
122 }
123
120 Status StubWebView::CaptureScreenshot(std::string* screenshot) { 124 Status StubWebView::CaptureScreenshot(std::string* screenshot) {
121 return Status(kOk); 125 return Status(kOk);
122 } 126 }
123 127
124 Status StubWebView::SetFileInputFiles( 128 Status StubWebView::SetFileInputFiles(
125 const std::string& frame, 129 const std::string& frame,
126 const base::DictionaryValue& element, 130 const base::DictionaryValue& element,
127 const std::vector<base::FilePath>& files) { 131 const std::vector<base::FilePath>& files) {
128 return Status(kOk); 132 return Status(kOk);
129 } 133 }
130 134
131 Status StubWebView::TakeHeapSnapshot(scoped_ptr<base::Value>* snapshot) { 135 Status StubWebView::TakeHeapSnapshot(scoped_ptr<base::Value>* snapshot) {
132 return Status(kOk); 136 return Status(kOk);
133 } 137 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698