chromium/components/content_capture/common/content_capture_data.h

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_CONTENT_CAPTURE_COMMON_CONTENT_CAPTURE_DATA_H_
#define COMPONENTS_CONTENT_CAPTURE_COMMON_CONTENT_CAPTURE_DATA_H_

#include <string>
#include <vector>

#include "ui/gfx/geometry/rect_f.h"

namespace content_capture {

// This struct defines the on-screen text content and its bounds in a frame,
// the text is captured in renderer and sent to browser; the root of
// this tree is frame, the child could be the scrollable area or the text
// content, scrollable area can have scrollable area or text as child. Text
// cannot have any child.
//
// ContentCapture render side only uses ContentCaptureData tree, after it is
// sent to browser side, it is converted to ContentCaptureFrame.
//
// There is no ContentCaptureDataBase.java peer in c++ because
// ContentCaptureData is used in mojom, otherwise, the ContentCaptureDataBase
// must be part of mojom interface.
struct ContentCaptureData {};

}  // namespace content_capture

#endif  // COMPONENTS_CONTENT_CAPTURE_COMMON_CONTENT_CAPTURE_DATA_H_