| 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/test_runner.h" | 5 #include "components/test_runner/test_runner.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 1797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1808 void TestRunner::setCustomTextOutput(const std::string& text) { | 1808 void TestRunner::setCustomTextOutput(const std::string& text) { |
| 1809 custom_text_output_ = text; | 1809 custom_text_output_ = text; |
| 1810 has_custom_text_output_ = true; | 1810 has_custom_text_output_ = true; |
| 1811 } | 1811 } |
| 1812 | 1812 |
| 1813 bool TestRunner::ShouldGeneratePixelResults() { | 1813 bool TestRunner::ShouldGeneratePixelResults() { |
| 1814 CheckResponseMimeType(); | 1814 CheckResponseMimeType(); |
| 1815 return layout_dump_flags_.generate_pixel_results(); | 1815 return layout_dump_flags_.generate_pixel_results(); |
| 1816 } | 1816 } |
| 1817 | 1817 |
| 1818 bool TestRunner::ShouldStayOnPageAfterHandlingBeforeUnload() const { | 1818 bool TestRunner::shouldStayOnPageAfterHandlingBeforeUnload() const { |
| 1819 return should_stay_on_page_after_handling_before_unload_; | 1819 return should_stay_on_page_after_handling_before_unload_; |
| 1820 } | 1820 } |
| 1821 | 1821 |
| 1822 | 1822 |
| 1823 void TestRunner::setShouldGeneratePixelResults(bool value) { | 1823 void TestRunner::setShouldGeneratePixelResults(bool value) { |
| 1824 layout_dump_flags_.set_generate_pixel_results(value); | 1824 layout_dump_flags_.set_generate_pixel_results(value); |
| 1825 OnLayoutDumpFlagsChanged(); | 1825 OnLayoutDumpFlagsChanged(); |
| 1826 } | 1826 } |
| 1827 | 1827 |
| 1828 bool TestRunner::ShouldDumpAsAudio() const { | 1828 bool TestRunner::ShouldDumpAsAudio() const { |
| (...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3202 } | 3202 } |
| 3203 | 3203 |
| 3204 void TestRunner::DidLosePointerLockInternal() { | 3204 void TestRunner::DidLosePointerLockInternal() { |
| 3205 bool was_locked = pointer_locked_; | 3205 bool was_locked = pointer_locked_; |
| 3206 pointer_locked_ = false; | 3206 pointer_locked_ = false; |
| 3207 if (was_locked) | 3207 if (was_locked) |
| 3208 web_view_->didLosePointerLock(); | 3208 web_view_->didLosePointerLock(); |
| 3209 } | 3209 } |
| 3210 | 3210 |
| 3211 } // namespace test_runner | 3211 } // namespace test_runner |
| OLD | NEW |