chromium/content/public/test/fake_render_widget_host.cc

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

#include "content/public/test/fake_render_widget_host.h"

#include "third_party/blink/public/mojom/drag/drag.mojom.h"
#include "third_party/blink/public/mojom/frame/intrinsic_sizing_info.mojom.h"
#include "third_party/blink/public/mojom/input/touch_event.mojom.h"

namespace content {

FakeRenderWidgetHost::FakeRenderWidgetHost() = default;
FakeRenderWidgetHost::~FakeRenderWidgetHost() = default;

std::pair<mojo::PendingAssociatedRemote<blink::mojom::FrameWidgetHost>,
          mojo::PendingAssociatedReceiver<blink::mojom::FrameWidget>>
FakeRenderWidgetHost::BindNewFrameWidgetInterfaces() {}

std::pair<mojo::PendingAssociatedRemote<blink::mojom::WidgetHost>,
          mojo::PendingAssociatedReceiver<blink::mojom::Widget>>
FakeRenderWidgetHost::BindNewWidgetInterfaces() {}

void FakeRenderWidgetHost::AnimateDoubleTapZoomInMainFrame(
    const gfx::Point& tap_point,
    const gfx::Rect& rect_to_zoom) {}

void FakeRenderWidgetHost::ZoomToFindInPageRectInMainFrame(
    const gfx::Rect& rect_to_zoom) {}

void FakeRenderWidgetHost::SetHasTouchEventConsumers(
    blink::mojom::TouchEventConsumersPtr consumers) {}

void FakeRenderWidgetHost::IntrinsicSizingInfoChanged(
    blink::mojom::IntrinsicSizingInfoPtr sizing_info) {}

void FakeRenderWidgetHost::SetCursor(const ui::Cursor& cursor) {}

void FakeRenderWidgetHost::UpdateTooltipUnderCursor(
    const std::u16string& tooltip_text,
    base::i18n::TextDirection text_direction_hint) {}

void FakeRenderWidgetHost::UpdateTooltipFromKeyboard(
    const std::u16string& tooltip_text,
    base::i18n::TextDirection text_direction_hint,
    const gfx::Rect& bounds) {}

void FakeRenderWidgetHost::ClearKeyboardTriggeredTooltip() {}

void FakeRenderWidgetHost::TextInputStateChanged(
    ui::mojom::TextInputStatePtr state) {}

void FakeRenderWidgetHost::SelectionBoundsChanged(
    const gfx::Rect& anchor_rect,
    base::i18n::TextDirection anchor_dir,
    const gfx::Rect& focus_rect,
    base::i18n::TextDirection focus_dir,
    const gfx::Rect& bounding_box,
    bool is_anchor_first) {}

void FakeRenderWidgetHost::CreateFrameSink(
    mojo::PendingReceiver<viz::mojom::CompositorFrameSink>
        compositor_frame_sink_receiver,
    mojo::PendingRemote<viz::mojom::CompositorFrameSinkClient>
        compositor_frame_sink_client) {}

void FakeRenderWidgetHost::RegisterRenderFrameMetadataObserver(
    mojo::PendingReceiver<cc::mojom::RenderFrameMetadataObserverClient>
        render_frame_metadata_observer_client_receiver,
    mojo::PendingRemote<cc::mojom::RenderFrameMetadataObserver>
        render_frame_metadata_observer) {}

void FakeRenderWidgetHost::RequestClosePopup() {}

void FakeRenderWidgetHost::SetPopupBounds(const gfx::Rect& bounds,
                                          SetPopupBoundsCallback callback) {}

void FakeRenderWidgetHost::ShowPopup(const gfx::Rect& initial_rect,
                                     const gfx::Rect& initial_anchor_rect,
                                     ShowPopupCallback callback) {}

void FakeRenderWidgetHost::SetTouchActionFromMain(
    cc::TouchAction touch_action) {}

void FakeRenderWidgetHost::SetPanAction(blink::mojom::PanAction pan_action) {}

void FakeRenderWidgetHost::DidOverscroll(
    blink::mojom::DidOverscrollParamsPtr params) {}

void FakeRenderWidgetHost::DidStartScrollingViewport() {}

void FakeRenderWidgetHost::ImeCancelComposition() {}

void FakeRenderWidgetHost::ImeCompositionRangeChanged(
    const gfx::Range& range,
    const std::optional<std::vector<gfx::Rect>>& character_bounds,
    const std::optional<std::vector<gfx::Rect>>& line_bounds) {}

void FakeRenderWidgetHost::SetMouseCapture(bool capture) {}

void FakeRenderWidgetHost::SetAutoscrollSelectionActiveInMainFrame(
    bool autoscroll_selection) {}

void FakeRenderWidgetHost::RequestMouseLock(bool from_user_gesture,
                                            bool unadjusted_movement,
                                            RequestMouseLockCallback callback) {}

void FakeRenderWidgetHost::AutoscrollStart(const gfx::PointF& position) {}

void FakeRenderWidgetHost::AutoscrollFling(const gfx::Vector2dF& position) {}

void FakeRenderWidgetHost::AutoscrollEnd() {}

blink::mojom::WidgetInputHandler*
FakeRenderWidgetHost::GetWidgetInputHandler() {}

blink::mojom::FrameWidgetInputHandler*
FakeRenderWidgetHost::GetFrameWidgetInputHandler() {}

}  // namespace content