blob: 429a2e036c9d359bd9d8652aa977ca3880007a3b [file] [log] [blame]
// Copyright 2017 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_RENDERER_CORE_FRAME_FRAME_VIEW_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_FRAME_VIEW_H_
#include "third_party/blink/renderer/core/frame/embedded_content_view.h"
namespace blink {
struct IntrinsicSizingInfo;
class CORE_EXPORT FrameView : public EmbeddedContentView {
public:
~FrameView() override = default;
virtual void UpdateViewportIntersectionsForSubtree() = 0;
virtual bool GetIntrinsicSizingInfo(IntrinsicSizingInfo&) const = 0;
virtual bool HasIntrinsicSizingInfo() const = 0;
bool IsFrameView() const override { return true; }
};
DEFINE_TYPE_CASTS(FrameView,
EmbeddedContentView,
embedded_content_view,
embedded_content_view->IsFrameView(),
embedded_content_view.IsFrameView());
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_FRAME_VIEW_H_