| 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 "components/test_runner/web_test_proxy.h" | 5 #include "components/test_runner/web_test_proxy.h" |
| 6 | 6 |
| 7 #include <cctype> | 7 #include <cctype> |
| 8 | 8 |
| 9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 test_interfaces_(NULL), | 386 test_interfaces_(NULL), |
| 387 delegate_(NULL), | 387 delegate_(NULL), |
| 388 web_widget_(NULL), | 388 web_widget_(NULL), |
| 389 spellcheck_(new SpellCheckClient(this)), | 389 spellcheck_(new SpellCheckClient(this)), |
| 390 chooser_count_(0) { | 390 chooser_count_(0) { |
| 391 Reset(); | 391 Reset(); |
| 392 } | 392 } |
| 393 | 393 |
| 394 WebTestProxyBase::~WebTestProxyBase() { | 394 WebTestProxyBase::~WebTestProxyBase() { |
| 395 test_interfaces_->WindowClosed(this); | 395 test_interfaces_->WindowClosed(this); |
| 396 delegate_->OnWebTestProxyBaseDestroy(this); |
| 396 } | 397 } |
| 397 | 398 |
| 398 void WebTestProxyBase::SetInterfaces(WebTestInterfaces* interfaces) { | 399 void WebTestProxyBase::SetInterfaces(WebTestInterfaces* interfaces) { |
| 399 web_test_interfaces_ = interfaces; | 400 web_test_interfaces_ = interfaces; |
| 400 test_interfaces_ = interfaces->GetTestInterfaces(); | 401 test_interfaces_ = interfaces->GetTestInterfaces(); |
| 401 test_interfaces_->WindowOpened(this); | 402 test_interfaces_->WindowOpened(this); |
| 402 } | 403 } |
| 403 | 404 |
| 404 WebTestInterfaces* WebTestProxyBase::GetInterfaces() { | 405 WebTestInterfaces* WebTestProxyBase::GetInterfaces() { |
| 405 return web_test_interfaces_; | 406 return web_test_interfaces_; |
| (...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1429 // to cancel the input method's ongoing composition session. | 1430 // to cancel the input method's ongoing composition session. |
| 1430 if (web_widget_) | 1431 if (web_widget_) |
| 1431 web_widget_->confirmComposition(); | 1432 web_widget_->confirmComposition(); |
| 1432 } | 1433 } |
| 1433 | 1434 |
| 1434 blink::WebString WebTestProxyBase::acceptLanguages() { | 1435 blink::WebString WebTestProxyBase::acceptLanguages() { |
| 1435 return blink::WebString::fromUTF8(accept_languages_); | 1436 return blink::WebString::fromUTF8(accept_languages_); |
| 1436 } | 1437 } |
| 1437 | 1438 |
| 1438 } // namespace test_runner | 1439 } // namespace test_runner |
| OLD | NEW |