OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/web_view/test_runner/test_runner_application_delegate.h" | 5 #include "components/web_view/test_runner/test_runner_application_delegate.h" |
6 | 6 |
7 #include <iostream> | 7 #include <iostream> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 void TestRunnerApplicationDelegate::OnConnectionLost( | 109 void TestRunnerApplicationDelegate::OnConnectionLost( |
110 mus::ViewTreeConnection* connection) { | 110 mus::ViewTreeConnection* connection) { |
111 root_ = nullptr; | 111 root_ = nullptr; |
112 app_->Quit(); | 112 app_->Quit(); |
113 } | 113 } |
114 | 114 |
115 //////////////////////////////////////////////////////////////////////////////// | 115 //////////////////////////////////////////////////////////////////////////////// |
116 // mojom::WebViewClient implementation: | 116 // mojom::WebViewClient implementation: |
117 | 117 |
118 void TestRunnerApplicationDelegate::TopLevelNavigate( | 118 void TestRunnerApplicationDelegate::TopLevelNavigateRequest( |
119 mojo::URLRequestPtr request) { | 119 mojo::URLRequestPtr request) { |
120 web_view_->web_view()->LoadRequest(request.Pass()); | 120 web_view_->web_view()->LoadRequest(request.Pass()); |
121 } | 121 } |
122 | 122 |
| 123 void TestRunnerApplicationDelegate::TopLevelNavigationStarted( |
| 124 const mojo::String& url) {} |
123 void TestRunnerApplicationDelegate::LoadingStateChanged(bool is_loading, | 125 void TestRunnerApplicationDelegate::LoadingStateChanged(bool is_loading, |
124 double progress) {} | 126 double progress) {} |
125 void TestRunnerApplicationDelegate::BackForwardChanged( | 127 void TestRunnerApplicationDelegate::BackForwardChanged( |
126 mojom::ButtonState back_button, | 128 mojom::ButtonState back_button, |
127 mojom::ButtonState forward_button) {} | 129 mojom::ButtonState forward_button) {} |
128 void TestRunnerApplicationDelegate::TitleChanged(const mojo::String& title) {} | 130 void TestRunnerApplicationDelegate::TitleChanged(const mojo::String& title) {} |
129 | 131 |
130 //////////////////////////////////////////////////////////////////////////////// | 132 //////////////////////////////////////////////////////////////////////////////// |
131 // LayoutTestRunner implementation: | 133 // LayoutTestRunner implementation: |
132 | 134 |
(...skipping 14 matching lines...) Expand all Loading... |
147 //////////////////////////////////////////////////////////////////////////////// | 149 //////////////////////////////////////////////////////////////////////////////// |
148 // mojo::InterfaceFactory<LayoutTestRunner> implementation: | 150 // mojo::InterfaceFactory<LayoutTestRunner> implementation: |
149 | 151 |
150 void TestRunnerApplicationDelegate::Create( | 152 void TestRunnerApplicationDelegate::Create( |
151 mojo::ApplicationConnection* connection, | 153 mojo::ApplicationConnection* connection, |
152 mojo::InterfaceRequest<web_view::LayoutTestRunner> request) { | 154 mojo::InterfaceRequest<web_view::LayoutTestRunner> request) { |
153 layout_test_runner_.AddBinding(this, request.Pass()); | 155 layout_test_runner_.AddBinding(this, request.Pass()); |
154 } | 156 } |
155 | 157 |
156 } // namespace web_view | 158 } // namespace web_view |
OLD | NEW |