Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 94b20fb

Browse files
committed
Fix test on Windows
1 parent 87999b3 commit 94b20fb

File tree

6 files changed

+2
-7
lines changed

6 files changed

+2
-7
lines changed

lib/web_ui/lib/src/engine/html/path.dart

Whitespace-only changes.

lib/web_ui/test/canvaskit/util_test.dart

Whitespace-only changes.

shell/common/shell_test.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ void ShellTest::VSyncFlush(Shell* shell, bool& will_draw_new_frame) {
109109
void ShellTest::SetViewportMetrics(Shell* shell, double width, double height) {
110110
flutter::ViewportMetrics viewport_metrics = {
111111
1, // device pixel ratio
112+
0, // physical left
113+
0, // physical top
112114
width, // physical width
113115
height, // physical height
114116
0, // padding top

shell/platform/darwin/ios/framework/Source/accessibility_bridge_test.mm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ void OnPlatformViewCreated(std::unique_ptr<Surface> surface) override {}
7575
void OnPlatformViewDestroyed() override {}
7676
void OnPlatformViewSetNextFrameCallback(const fml::closure& closure) override {}
7777
void OnPlatformViewSetViewportMetrics(const ViewportMetrics& metrics) override {}
78-
void OnPlatformViewSetScreenMetrics(const ScreenMetrics& metrics) override {}
7978
void OnPlatformViewDispatchPlatformMessage(fml::RefPtr<PlatformMessage> message) override {}
8079
void OnPlatformViewDispatchPointerDataPacket(std::unique_ptr<PointerDataPacket> packet) override {
8180
}

shell/platform/fuchsia/flutter/platform_view_unittest.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ class MockPlatformViewDelegate : public flutter::PlatformView::Delegate {
8282
void OnPlatformViewSetViewportMetrics(
8383
const flutter::ViewportMetrics& metrics) {}
8484
// |flutter::PlatformView::Delegate|
85-
void OnPlatformViewSetScreenMetrics(const flutter::ScreenMetrics& metrics) {}
86-
// |flutter::PlatformView::Delegate|
8785
void OnPlatformViewDispatchPlatformMessage(
8886
fml::RefPtr<flutter::PlatformMessage> message) {}
8987
// |flutter::PlatformView::Delegate|

shell/platform/windows/win32_flutter_window.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ class Win32FlutterWindow : public Win32Window, public WindowBindingHandler {
7777
// |FlutterWindowBindingHandler|
7878
void UpdateFlutterCursor(const std::string& cursor_name) override;
7979

80-
// Sends a screen metrics update to the Flutter engine using current screen
81-
// dimensions in physical pixels.
82-
void SendScreenMetrics();
83-
8480
private:
8581
// A pointer to a FlutterWindowsView that can be used to update engine
8682
// windowing and input state.

0 commit comments

Comments
 (0)