OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |