| 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/shell/common/test_runner/test_preferences.h" | 10 #include "content/shell/common/test_runner/test_preferences.h" |
| (...skipping 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1556 policy_delegate_should_notify_done_ = false; | 1556 policy_delegate_should_notify_done_ = false; |
| 1557 | 1557 |
| 1558 WebSecurityPolicy::resetOriginAccessWhitelists(); | 1558 WebSecurityPolicy::resetOriginAccessWhitelists(); |
| 1559 #if defined(__linux__) || defined(ANDROID) | 1559 #if defined(__linux__) || defined(ANDROID) |
| 1560 WebFontRendering::setSubpixelPositioning(false); | 1560 WebFontRendering::setSubpixelPositioning(false); |
| 1561 #endif | 1561 #endif |
| 1562 | 1562 |
| 1563 if (delegate_) { | 1563 if (delegate_) { |
| 1564 // Reset the default quota for each origin to 5MB | 1564 // Reset the default quota for each origin to 5MB |
| 1565 delegate_->setDatabaseQuota(5 * 1024 * 1024); | 1565 delegate_->setDatabaseQuota(5 * 1024 * 1024); |
| 1566 delegate_->setDeviceColorProfile("sRGB"); | 1566 delegate_->setDeviceColorProfile("reset"); |
| 1567 delegate_->setDeviceScaleFactor(1); | 1567 delegate_->setDeviceScaleFactor(1); |
| 1568 delegate_->setAcceptAllCookies(false); | 1568 delegate_->setAcceptAllCookies(false); |
| 1569 delegate_->setLocale(""); | 1569 delegate_->setLocale(""); |
| 1570 delegate_->useUnfortunateSynchronousResizeMode(false); | 1570 delegate_->useUnfortunateSynchronousResizeMode(false); |
| 1571 delegate_->disableAutoResizeMode(WebSize()); | 1571 delegate_->disableAutoResizeMode(WebSize()); |
| 1572 delegate_->deleteAllCookies(); | 1572 delegate_->deleteAllCookies(); |
| 1573 delegate_->resetScreenOrientation(); | 1573 delegate_->resetScreenOrientation(); |
| 1574 ResetBatteryStatus(); | 1574 ResetBatteryStatus(); |
| 1575 ResetDeviceLight(); | 1575 ResetDeviceLight(); |
| 1576 } | 1576 } |
| (...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2894 } | 2894 } |
| 2895 | 2895 |
| 2896 void TestRunner::DidLosePointerLockInternal() { | 2896 void TestRunner::DidLosePointerLockInternal() { |
| 2897 bool was_locked = pointer_locked_; | 2897 bool was_locked = pointer_locked_; |
| 2898 pointer_locked_ = false; | 2898 pointer_locked_ = false; |
| 2899 if (was_locked) | 2899 if (was_locked) |
| 2900 web_view_->didLosePointerLock(); | 2900 web_view_->didLosePointerLock(); |
| 2901 } | 2901 } |
| 2902 | 2902 |
| 2903 } // namespace content | 2903 } // namespace content |
| OLD | NEW |