blob: a79775feea48bc1a9d3b6ef9457bc2b01029381e [file] [log] [blame]
Avi Drissman4e1b7bc32022-09-15 14:03:501// Copyright 2016 The Chromium Authors
Scott Violetfdda96d2018-07-27 20:17:232// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
danakj89f47082020-09-02 17:53:435#ifndef CONTENT_WEB_TEST_RENDERER_LAYOUT_DUMP_H_
6#define CONTENT_WEB_TEST_RENDERER_LAYOUT_DUMP_H_
Scott Violetfdda96d2018-07-27 20:17:237
8#include <string>
9
Scott Violetfdda96d2018-07-27 20:17:2310namespace blink {
11class WebLocalFrame;
12} // namespace blink
13
danakj741848a2020-04-07 22:48:0614namespace content {
Scott Violetfdda96d2018-07-27 20:17:2315
danakj049cb6a2020-07-11 03:11:3416enum class TextResultType {
17 kEmpty,
18 kText,
19 kMarkup,
20 kLayout,
21 kLayoutAsPrinting,
22};
23
Scott Violetfdda96d2018-07-27 20:17:2324// Dumps textual representation of |frame| contents. Exact dump mode depends
25// on |flags| (i.e. dump_as_text VS dump_as_markup and/or is_printing).
danakj741848a2020-04-07 22:48:0626std::string DumpLayoutAsString(blink::WebLocalFrame* frame,
danakj049cb6a2020-07-11 03:11:3427 TextResultType type);
Scott Violetfdda96d2018-07-27 20:17:2328
danakj741848a2020-04-07 22:48:0629} // namespace content
Scott Violetfdda96d2018-07-27 20:17:2330
danakj89f47082020-09-02 17:53:4331#endif // CONTENT_WEB_TEST_RENDERER_LAYOUT_DUMP_H_