| 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/values.h" | 5 #include "base/values.h" |
| 6 #include "chrome/test/chromedriver/status.h" | 6 #include "chrome/test/chromedriver/status.h" |
| 7 #include "chrome/test/chromedriver/stub_web_view.h" | 7 #include "chrome/test/chromedriver/stub_web_view.h" |
| 8 #include "chrome/test/chromedriver/ui_events.h" | 8 #include "chrome/test/chromedriver/ui_events.h" |
| 9 | 9 |
| 10 StubWebView::StubWebView(const std::string& id) : id_(id) {} | 10 StubWebView::StubWebView(const std::string& id) : id_(id) {} |
| 11 | 11 |
| 12 StubWebView::~StubWebView() {} | 12 StubWebView::~StubWebView() {} |
| 13 | 13 |
| 14 std::string StubWebView::GetId() { | 14 std::string StubWebView::GetId() { |
| 15 return id_; | 15 return id_; |
| 16 } | 16 } |
| 17 | 17 |
| 18 Status StubWebView::ConnectIfNecessary() { |
| 19 return Status(kOk); |
| 20 } |
| 21 |
| 18 Status StubWebView::Close() { | 22 Status StubWebView::Close() { |
| 19 return Status(kOk); | 23 return Status(kOk); |
| 20 } | 24 } |
| 21 | 25 |
| 22 Status StubWebView::Load(const std::string& url) { | 26 Status StubWebView::Load(const std::string& url) { |
| 23 return Status(kOk); | 27 return Status(kOk); |
| 24 } | 28 } |
| 25 | 29 |
| 26 Status StubWebView::Reload() { | 30 Status StubWebView::Reload() { |
| 27 return Status(kOk); | 31 return Status(kOk); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 return Status(kOk); | 67 return Status(kOk); |
| 64 } | 68 } |
| 65 | 69 |
| 66 JavaScriptDialogManager* StubWebView::GetJavaScriptDialogManager() { | 70 JavaScriptDialogManager* StubWebView::GetJavaScriptDialogManager() { |
| 67 return NULL; | 71 return NULL; |
| 68 } | 72 } |
| 69 | 73 |
| 70 Status StubWebView::CaptureScreenshot(std::string* screenshot) { | 74 Status StubWebView::CaptureScreenshot(std::string* screenshot) { |
| 71 return Status(kOk); | 75 return Status(kOk); |
| 72 } | 76 } |
| OLD | NEW |