| 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 14 matching lines...) Expand all Loading... |
| 25 } | 25 } |
| 26 | 26 |
| 27 Status StubWebView::HandleReceivedEvents() { | 27 Status StubWebView::HandleReceivedEvents() { |
| 28 return Status(kOk); | 28 return Status(kOk); |
| 29 } | 29 } |
| 30 | 30 |
| 31 Status StubWebView::GetUrl(std::string* url) { | 31 Status StubWebView::GetUrl(std::string* url) { |
| 32 return Status(kOk); | 32 return Status(kOk); |
| 33 } | 33 } |
| 34 | 34 |
| 35 Status StubWebView::Load(const std::string& url) { | 35 Status StubWebView::Load(const std::string& url, const Timeout* timeout) { |
| 36 return Status(kOk); | 36 return Status(kOk); |
| 37 } | 37 } |
| 38 | 38 |
| 39 Status StubWebView::Reload() { | 39 Status StubWebView::Reload() { |
| 40 return Status(kOk); | 40 return Status(kOk); |
| 41 } | 41 } |
| 42 | 42 |
| 43 Status StubWebView::TraverseHistory(int delta) { | 43 Status StubWebView::TraverseHistory(int delta) { |
| 44 return Status(kOk); | 44 return Status(kOk); |
| 45 } | 45 } |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 Status StubWebView::GetCookies(scoped_ptr<base::ListValue>* cookies) { | 100 Status StubWebView::GetCookies(scoped_ptr<base::ListValue>* cookies) { |
| 101 return Status(kOk); | 101 return Status(kOk); |
| 102 } | 102 } |
| 103 | 103 |
| 104 Status StubWebView::DeleteCookie(const std::string& name, | 104 Status StubWebView::DeleteCookie(const std::string& name, |
| 105 const std::string& url) { | 105 const std::string& url) { |
| 106 return Status(kOk); | 106 return Status(kOk); |
| 107 } | 107 } |
| 108 | 108 |
| 109 Status StubWebView::WaitForPendingNavigations(const std::string& frame_id, | 109 Status StubWebView::WaitForPendingNavigations(const std::string& frame_id, |
| 110 const base::TimeDelta& timeout, | 110 const Timeout& timeout, |
| 111 bool stop_load_on_timeout) { | 111 bool stop_load_on_timeout) { |
| 112 return Status(kOk); | 112 return Status(kOk); |
| 113 } | 113 } |
| 114 | 114 |
| 115 Status StubWebView::IsPendingNavigation(const std::string& frame_id, | 115 Status StubWebView::IsPendingNavigation(const std::string& frame_id, |
| 116 const Timeout* timeout, |
| 116 bool* is_pending) { | 117 bool* is_pending) { |
| 117 return Status(kOk); | 118 return Status(kOk); |
| 118 } | 119 } |
| 119 | 120 |
| 120 JavaScriptDialogManager* StubWebView::GetJavaScriptDialogManager() { | 121 JavaScriptDialogManager* StubWebView::GetJavaScriptDialogManager() { |
| 121 return NULL; | 122 return NULL; |
| 122 } | 123 } |
| 123 | 124 |
| 124 Status StubWebView::OverrideGeolocation(const Geoposition& geoposition) { | 125 Status StubWebView::OverrideGeolocation(const Geoposition& geoposition) { |
| 125 return Status(kOk); | 126 return Status(kOk); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 Status StubWebView::SynthesizeScrollGesture(int x, | 164 Status StubWebView::SynthesizeScrollGesture(int x, |
| 164 int y, | 165 int y, |
| 165 int xoffset, | 166 int xoffset, |
| 166 int yoffset) { | 167 int yoffset) { |
| 167 return Status(kOk); | 168 return Status(kOk); |
| 168 } | 169 } |
| 169 | 170 |
| 170 Status StubWebView::SynthesizePinchGesture(int x, int y, double scale_factor) { | 171 Status StubWebView::SynthesizePinchGesture(int x, int y, double scale_factor) { |
| 171 return Status(kOk); | 172 return Status(kOk); |
| 172 } | 173 } |
| OLD | NEW |