blob: 2156f26500792157919830810452086c6fe58e84 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_PUBLIC_WEB_WEB_CONTENT_HOLDER_H_
#define THIRD_PARTY_BLINK_PUBLIC_WEB_WEB_CONTENT_HOLDER_H_
#include "third_party/blink/public/platform/web_common.h"
#include "third_party/blink/public/platform/web_private_ptr.h"
#include "third_party/blink/public/platform/web_rect.h"
#include "third_party/blink/public/platform/web_string.h"
#include "third_party/blink/public/platform/web_vector.h"
namespace blink {
class Node;
// The class to represent the captured content.
class BLINK_EXPORT WebContentHolder {
public:
WebContentHolder(const WebContentHolder&);
WebContentHolder& operator=(const WebContentHolder&);
virtual ~WebContentHolder();
WebString GetValue() const;
WebRect GetBoundingBox() const;
uint64_t GetId() const;
#if INSIDE_BLINK
WebContentHolder(Node& node);
#endif
private:
WebPrivatePtr<Node> private_;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_PUBLIC_WEB_WEB_CONTENT_HOLDER_H_