OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/shell/renderer/test_runner/test_runner.h" | 5 #include "content/shell/renderer/test_runner/test_runner.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "content/public/test/layouttest_support.h" | 10 #include "content/public/test/layouttest_support.h" |
(...skipping 1945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1956 } | 1956 } |
1957 | 1957 |
1958 bool TestRunner::midiAccessorResult() { | 1958 bool TestRunner::midiAccessorResult() { |
1959 return midi_accessor_result_; | 1959 return midi_accessor_result_; |
1960 } | 1960 } |
1961 | 1961 |
1962 void TestRunner::ClearDevToolsLocalStorage() { | 1962 void TestRunner::ClearDevToolsLocalStorage() { |
1963 delegate_->ClearDevToolsLocalStorage(); | 1963 delegate_->ClearDevToolsLocalStorage(); |
1964 } | 1964 } |
1965 | 1965 |
1966 void TestRunner::ShowDevTools(const std::string& settings, | 1966 void TestRunner::ShowDevTools(const std::string& test_path, |
1967 const std::string& frontend_url) { | 1967 const std::string& frontend_url) { |
1968 delegate_->ShowDevTools(settings, frontend_url); | 1968 delegate_->ShowDevTools(test_path, frontend_url); |
1969 } | 1969 } |
1970 | 1970 |
1971 class WorkItemBackForward : public TestRunner::WorkItem { | 1971 class WorkItemBackForward : public TestRunner::WorkItem { |
1972 public: | 1972 public: |
1973 WorkItemBackForward(int distance) : distance_(distance) {} | 1973 WorkItemBackForward(int distance) : distance_(distance) {} |
1974 | 1974 |
1975 bool Run(WebTestDelegate* delegate, WebView*) override { | 1975 bool Run(WebTestDelegate* delegate, WebView*) override { |
1976 delegate->GoToOffset(distance_); | 1976 delegate->GoToOffset(distance_); |
1977 return true; // FIXME: Did it really start a navigation? | 1977 return true; // FIXME: Did it really start a navigation? |
1978 } | 1978 } |
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3035 } | 3035 } |
3036 | 3036 |
3037 void TestRunner::DidLosePointerLockInternal() { | 3037 void TestRunner::DidLosePointerLockInternal() { |
3038 bool was_locked = pointer_locked_; | 3038 bool was_locked = pointer_locked_; |
3039 pointer_locked_ = false; | 3039 pointer_locked_ = false; |
3040 if (was_locked) | 3040 if (was_locked) |
3041 web_view_->didLosePointerLock(); | 3041 web_view_->didLosePointerLock(); |
3042 } | 3042 } |
3043 | 3043 |
3044 } // namespace content | 3044 } // namespace content |
OLD | NEW |