Unverified Commit 3c34ff7f authored by Dan Field's avatar Dan Field Committed by GitHub

Prep for engine roll (#33662)

* Prep for engine roll
parent c289c998
......@@ -95,6 +95,23 @@ class TestWindow implements Window {
onMetricsChanged();
}
// TODO(dnfield): Remove this ignore once custom embedders have had time to catch up
// And make this property actually wrap _window.viewPadding.
// @override
// ignore: annotate_overrides, public_member_api_docs
WindowPadding get viewPadding => _viewPaddingTestValue ?? _window.padding;
WindowPadding _viewPaddingTestValue;
/// Hides the real padding and reports the given [paddingTestValue] instead.
set viewPaddingTestValue(WindowPadding viewPaddingTestValue) {
_viewPaddingTestValue = viewPaddingTestValue;
onMetricsChanged();
}
/// Deletes any existing test padding and returns to using the real padding.
void clearViewPaddingTestValue() {
_viewPaddingTestValue = null;
onMetricsChanged();
}
@override
WindowPadding get padding => _paddingTestValue ?? _window.padding;
WindowPadding _paddingTestValue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment