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 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1423 if (delegate_) { | 1423 if (delegate_) { |
1424 // Reset the default quota for each origin to 5MB | 1424 // Reset the default quota for each origin to 5MB |
1425 delegate_->setDatabaseQuota(5 * 1024 * 1024); | 1425 delegate_->setDatabaseQuota(5 * 1024 * 1024); |
1426 delegate_->setDeviceColorProfile("sRGB"); | 1426 delegate_->setDeviceColorProfile("sRGB"); |
1427 delegate_->setDeviceScaleFactor(1); | 1427 delegate_->setDeviceScaleFactor(1); |
1428 delegate_->setAcceptAllCookies(false); | 1428 delegate_->setAcceptAllCookies(false); |
1429 delegate_->setLocale(""); | 1429 delegate_->setLocale(""); |
1430 delegate_->useUnfortunateSynchronousResizeMode(false); | 1430 delegate_->useUnfortunateSynchronousResizeMode(false); |
1431 delegate_->disableAutoResizeMode(WebSize()); | 1431 delegate_->disableAutoResizeMode(WebSize()); |
1432 delegate_->deleteAllCookies(); | 1432 delegate_->deleteAllCookies(); |
| 1433 delegate_->resetScreenOrientation(); |
1433 } | 1434 } |
1434 | 1435 |
1435 dump_editting_callbacks_ = false; | 1436 dump_editting_callbacks_ = false; |
1436 dump_as_text_ = false; | 1437 dump_as_text_ = false; |
1437 dump_as_markup_ = false; | 1438 dump_as_markup_ = false; |
1438 generate_pixel_results_ = true; | 1439 generate_pixel_results_ = true; |
1439 dump_child_frame_scroll_positions_ = false; | 1440 dump_child_frame_scroll_positions_ = false; |
1440 dump_child_frames_as_text_ = false; | 1441 dump_child_frames_as_text_ = false; |
1441 dump_icon_changes_ = false; | 1442 dump_icon_changes_ = false; |
1442 dump_as_audio_ = false; | 1443 dump_as_audio_ = false; |
(...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2627 } | 2628 } |
2628 | 2629 |
2629 void TestRunner::DidLosePointerLockInternal() { | 2630 void TestRunner::DidLosePointerLockInternal() { |
2630 bool was_locked = pointer_locked_; | 2631 bool was_locked = pointer_locked_; |
2631 pointer_locked_ = false; | 2632 pointer_locked_ = false; |
2632 if (was_locked) | 2633 if (was_locked) |
2633 web_view_->didLosePointerLock(); | 2634 web_view_->didLosePointerLock(); |
2634 } | 2635 } |
2635 | 2636 |
2636 } // namespace content | 2637 } // namespace content |
OLD | NEW |