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 1645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1656 work_queue_(this), | 1656 work_queue_(this), |
1657 disable_notify_done_(false), | 1657 disable_notify_done_(false), |
1658 web_history_item_count_(0), | 1658 web_history_item_count_(0), |
1659 intercept_post_message_(false), | 1659 intercept_post_message_(false), |
1660 layout_dump_flags_( | 1660 layout_dump_flags_( |
1661 false, // dump_as_text | 1661 false, // dump_as_text |
1662 false, // dump_child_frames_as_text | 1662 false, // dump_child_frames_as_text |
1663 false, // dump_as_markup | 1663 false, // dump_as_markup |
1664 false, // dump_child_frames_as_markup | 1664 false, // dump_child_frames_as_markup |
1665 false, // dump_child_frame_scroll_positions | 1665 false, // dump_child_frame_scroll_positions |
1666 false, // is_printing | 1666 false), // is_printing |
1667 false, // dump_line_box_trees | |
1668 false), // debug_render_tree | |
1669 test_interfaces_(interfaces), | 1667 test_interfaces_(interfaces), |
1670 delegate_(nullptr), | 1668 delegate_(nullptr), |
1671 web_view_(nullptr), | 1669 web_view_(nullptr), |
1672 web_content_settings_(new WebContentSettings()), | 1670 web_content_settings_(new WebContentSettings()), |
1673 weak_factory_(this) {} | 1671 weak_factory_(this) {} |
1674 | 1672 |
1675 TestRunner::~TestRunner() {} | 1673 TestRunner::~TestRunner() {} |
1676 | 1674 |
1677 void TestRunner::Install(WebFrame* frame) { | 1675 void TestRunner::Install(WebFrame* frame) { |
1678 TestRunnerBindings::Install(weak_factory_.GetWeakPtr(), frame); | 1676 TestRunnerBindings::Install(weak_factory_.GetWeakPtr(), frame); |
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3180 } | 3178 } |
3181 | 3179 |
3182 void TestRunner::DidLosePointerLockInternal() { | 3180 void TestRunner::DidLosePointerLockInternal() { |
3183 bool was_locked = pointer_locked_; | 3181 bool was_locked = pointer_locked_; |
3184 pointer_locked_ = false; | 3182 pointer_locked_ = false; |
3185 if (was_locked) | 3183 if (was_locked) |
3186 web_view_->didLosePointerLock(); | 3184 web_view_->didLosePointerLock(); |
3187 } | 3185 } |
3188 | 3186 |
3189 } // namespace test_runner | 3187 } // namespace test_runner |
OLD | NEW |