Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef COMPONENTS_TEST_RUNNER_LAYOUT_DUMP_FLAGS_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_LAYOUT_DUMP_FLAGS_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_LAYOUT_DUMP_FLAGS_H_ | 6 #define COMPONENTS_TEST_RUNNER_LAYOUT_DUMP_FLAGS_H_ |
| 7 | 7 |
| 8 namespace test_runner { | 8 namespace test_runner { |
| 9 | 9 |
| 10 enum class LayoutDumpMode { | 10 struct LayoutDumpFlags { |
| 11 DUMP_AS_TEXT, | 11 // If true, the test_shell will produce a plain text dump rather than a |
| 12 DUMP_AS_MARKUP, | 12 // text representation of the renderer. |
| 13 DUMP_SCROLL_POSITIONS | 13 bool dump_as_text; |
| 14 }; | |
| 15 | 14 |
| 16 struct LayoutDumpFlags { | 15 // If true and if dump_as_text_ is true, the test_shell will recursively |
| 17 LayoutDumpMode main_dump_mode; | 16 // dump all frames as plain text. |
|
dcheng
2016/02/23 18:26:35
Hmm, so this implies that if I call dumpChildFrame
Łukasz Anforowicz
2016/02/23 18:45:26
Correct :-(.
There are tests that do something li
Łukasz Anforowicz
2016/02/23 18:50:40
Correction - this was supposed to say:
And there
| |
| 17 bool dump_child_frames_as_text; | |
| 18 | 18 |
| 19 bool dump_as_printed; | 19 // If true, the test_shell will produce a dump of the DOM rather than a text |
| 20 bool dump_child_frames; | 20 // representation of the renderer. |
|
dcheng
2016/02/23 18:26:35
s/renderer/layout objects/ might be more accurate
Łukasz Anforowicz
2016/02/23 18:45:26
Done.
| |
| 21 bool dump_as_markup; | |
| 22 | |
| 23 // If true and if dump_as_markup_ is true, the test_shell will recursively | |
| 24 // produce a dump of the DOM rather than a text representation of the | |
| 25 // renderer. | |
| 26 bool dump_child_frames_as_markup; | |
| 27 | |
| 28 // If true, the test_shell will print out the child frame scroll offsets as | |
| 29 // well. | |
| 30 bool dump_child_frame_scroll_positions; | |
| 31 | |
| 32 // Reports whether recursing over child frames is necessary. | |
| 33 bool dump_child_frames() const { | |
| 34 if (dump_as_text) | |
| 35 return dump_child_frames_as_text; | |
| 36 else if (dump_as_markup) | |
| 37 return dump_child_frames_as_markup; | |
| 38 else | |
| 39 return dump_child_frame_scroll_positions; | |
| 40 } | |
| 41 | |
| 42 // If true, layout is to target printed pages. | |
| 43 bool is_printing; | |
| 44 | |
| 45 // Extra flags for debugging layout tests. | |
| 21 bool dump_line_box_trees; | 46 bool dump_line_box_trees; |
| 22 bool debug_render_tree; | 47 bool debug_render_tree; |
| 23 }; | 48 }; |
| 24 | 49 |
| 25 } // namespace test_runner | 50 } // namespace test_runner |
| 26 | 51 |
| 27 #endif // COMPONENTS_TEST_RUNNER_LAYOUT_DUMP_FLAGS_H_ | 52 #endif // COMPONENTS_TEST_RUNNER_LAYOUT_DUMP_FLAGS_H_ |
| OLD | NEW |