#include "content/public/test/fake_frame_widget.h"
#include "build/build_config.h"
namespace content {
FakeFrameWidget::FakeFrameWidget(
mojo::PendingAssociatedReceiver<blink::mojom::FrameWidget> frame_widget)
: … { … }
FakeFrameWidget::~FakeFrameWidget() = default;
base::i18n::TextDirection FakeFrameWidget::GetTextDirection() const { … }
void FakeFrameWidget::SetTextDirection(base::i18n::TextDirection direction) { … }
#if BUILDFLAG(IS_MAC)
void FakeFrameWidget::GetStringAtPoint(const gfx::Point& point_in_local_root,
GetStringAtPointCallback callback) {
std::move(callback).Run(nullptr, gfx::Point());
}
#endif
std::optional<bool> FakeFrameWidget::GetActive() const { … }
void FakeFrameWidget::SetActive(bool active) { … }
const blink::mojom::ViewportIntersectionStatePtr&
FakeFrameWidget::GetIntersectionState() const { … }
void FakeFrameWidget::SetViewportIntersection(
blink::mojom::ViewportIntersectionStatePtr intersection_state,
const std::optional<blink::VisualProperties>& visual_properties) { … }
}