chromium/content/test/mock_widget.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/test/mock_widget.h"

namespace content {

MockWidget::MockWidget() = default;

MockWidget::~MockWidget() = default;

mojo::PendingAssociatedRemote<blink::mojom::Widget> MockWidget::GetNewRemote() {}

const std::vector<blink::VisualProperties>&
MockWidget::ReceivedVisualProperties() {}

void MockWidget::ClearVisualProperties() {}

const std::vector<std::pair<gfx::Rect, gfx::Rect>>&
MockWidget::ReceivedScreenRects() {}

void MockWidget::ClearScreenRects() {}

void MockWidget::GetWidgetInputHandler(
    mojo::PendingReceiver<blink::mojom::WidgetInputHandler> request,
    mojo::PendingRemote<blink::mojom::WidgetInputHandlerHost> host) {}

void MockWidget::ForceRedraw(ForceRedrawCallback callback) {}

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

void MockWidget::UpdateVisualProperties(
    const blink::VisualProperties& visual_properties) {}

void MockWidget::UpdateScreenRects(const gfx::Rect& widget_screen_rect,
                                   const gfx::Rect& window_screen_rect,
                                   UpdateScreenRectsCallback callback) {}

void MockWidget::WasHidden() {}

void MockWidget::WasShown(bool was_evicted,
                          blink::mojom::RecordContentToVisibleTimeRequestPtr
                              record_tab_switch_time_request) {}

void MockWidget::RequestSuccessfulPresentationTimeForNextFrame(
    blink::mojom::RecordContentToVisibleTimeRequestPtr visible_time_request) {}

void MockWidget::CancelSuccessfulPresentationTimeRequest() {}

void MockWidget::SetupRenderInputRouterConnections(
    mojo::PendingReceiver<blink::mojom::RenderInputRouterClient>
        browser_request,
    mojo::PendingReceiver<blink::mojom::RenderInputRouterClient> viz_request) {}

}  // namespace content