#include "third_party/blink/renderer/core/web_test/web_test_web_frame_widget_impl.h"
#include "base/task/single_thread_task_runner.h"
#include "content/web_test/renderer/event_sender.h"
#include "content/web_test/renderer/test_runner.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/web/web_frame_widget.h"
#include "third_party/blink/public/web/web_local_frame.h"
#include "third_party/blink/public/web/web_page_popup.h"
#include "third_party/blink/public/web/web_view.h"
#include "third_party/blink/public/web/web_widget.h"
#include "third_party/blink/renderer/core/exported/web_view_impl.h"
#include "third_party/blink/renderer/core/frame/web_local_frame_impl.h"
#include "third_party/blink/renderer/core/input/event_handler.h"
#include "third_party/blink/renderer/core/view_transition/view_transition_supplement.h"
#include "third_party/blink/renderer/platform/scheduler/public/thread.h"
namespace blink {
WebFrameWidget* FrameWidgetTestHelper::CreateTestWebFrameWidget(
base::PassKey<WebLocalFrame> pass_key,
CrossVariantMojoAssociatedRemote<mojom::blink::FrameWidgetHostInterfaceBase>
frame_widget_host,
CrossVariantMojoAssociatedReceiver<mojom::blink::FrameWidgetInterfaceBase>
frame_widget,
CrossVariantMojoAssociatedRemote<mojom::blink::WidgetHostInterfaceBase>
widget_host,
CrossVariantMojoAssociatedReceiver<mojom::blink::WidgetInterfaceBase>
widget,
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
const viz::FrameSinkId& frame_sink_id,
bool hidden,
bool never_composited,
bool is_for_child_local_root,
bool is_for_nested_main_frame,
bool is_for_scalable_page,
content::TestRunner* test_runner) { … }
WebTestWebFrameWidgetImpl::WebTestWebFrameWidgetImpl(
base::PassKey<WebLocalFrame> pass_key,
CrossVariantMojoAssociatedRemote<mojom::blink::FrameWidgetHostInterfaceBase>
frame_widget_host,
CrossVariantMojoAssociatedReceiver<mojom::blink::FrameWidgetInterfaceBase>
frame_widget,
CrossVariantMojoAssociatedRemote<mojom::blink::WidgetHostInterfaceBase>
widget_host,
CrossVariantMojoAssociatedReceiver<mojom::blink::WidgetInterfaceBase>
widget,
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
const viz::FrameSinkId& frame_sink_id,
bool hidden,
bool never_composited,
bool is_for_child_local_root,
bool is_for_nested_main_frame,
bool is_for_scalable_page,
content::TestRunner* test_runner)
: … { … }
WebTestWebFrameWidgetImpl::~WebTestWebFrameWidgetImpl() = default;
void WebTestWebFrameWidgetImpl::BindLocalRoot(WebLocalFrame& local_root) { … }
void WebTestWebFrameWidgetImpl::WillBeginMainFrame() { … }
void WebTestWebFrameWidgetImpl::ScheduleAnimation() { … }
void WebTestWebFrameWidgetImpl::ScheduleAnimationForWebTests() { … }
void WebTestWebFrameWidgetImpl::WasShown(bool was_evicted) { … }
void WebTestWebFrameWidgetImpl::UpdateAllLifecyclePhasesAndComposite(
base::OnceClosure callback) { … }
void WebTestWebFrameWidgetImpl::ScheduleAnimationInternal(bool do_raster) { … }
bool WebTestWebFrameWidgetImpl::RequestedMainFramePending() { … }
void WebTestWebFrameWidgetImpl::StartDragging(
LocalFrame* source_frame,
const WebDragData& data,
DragOperationsMask mask,
const SkBitmap& drag_image,
const gfx::Vector2d& cursor_offset,
const gfx::Rect& drag_obj_rect) { … }
FrameWidgetTestHelper*
WebTestWebFrameWidgetImpl::GetFrameWidgetTestHelperForTesting() { … }
void WebTestWebFrameWidgetImpl::Reset() { … }
content::EventSender* WebTestWebFrameWidgetImpl::GetEventSender() { … }
void WebTestWebFrameWidgetImpl::SynchronouslyCompositeAfterTest(
base::OnceClosure callback) { … }
content::TestRunner* WebTestWebFrameWidgetImpl::GetTestRunner() { … }
void WebTestWebFrameWidgetImpl::DoComposite(cc::LayerTreeHost* layer_tree_host,
bool do_raster,
base::OnceClosure callback) { … }
void WebTestWebFrameWidgetImpl::SynchronouslyComposite(
base::OnceClosure callback,
bool do_raster) { … }
void WebTestWebFrameWidgetImpl::AnimateNow() { … }
void WebTestWebFrameWidgetImpl::RequestDecode(
const PaintImage& image,
base::OnceCallback<void(bool)> callback) { … }
void WebTestWebFrameWidgetImpl::DidAutoResize(const gfx::Size& size) { … }
}