Skip to content

Commit 4cca85d

Browse files
committed
Revert "Bug 1882358 Part 3: Remove nsIWidget::IsResizingNativeWidget, which is no longer used. r=nical"
This reverts commit a238e0a.
1 parent 102f999 commit 4cca85d

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

widget/nsIWidget.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,10 @@ class nsIWidget : public nsISupports {
778778
virtual void Resize(double aX, double aY, double aWidth, double aHeight,
779779
bool aRepaint) = 0;
780780

781+
virtual mozilla::Maybe<bool> IsResizingNativeWidget() {
782+
return mozilla::Nothing();
783+
}
784+
781785
/**
782786
* Resize the widget so that the inner client area has the given size.
783787
*

widget/windows/nsWindow.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,6 +2174,13 @@ void nsWindow::Resize(double aX, double aY, double aWidth, double aHeight,
21742174
if (aRepaint) Invalidate();
21752175
}
21762176

2177+
mozilla::Maybe<bool> nsWindow::IsResizingNativeWidget() {
2178+
if (mResizeState == RESIZING) {
2179+
return Some(true);
2180+
}
2181+
return Some(false);
2182+
}
2183+
21772184
/**************************************************************
21782185
*
21792186
* SECTION: Window Z-order and state.

widget/windows/nsWindow.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ class nsWindow final : public nsBaseWidget {
175175
void Resize(double aWidth, double aHeight, bool aRepaint) override;
176176
void Resize(double aX, double aY, double aWidth, double aHeight,
177177
bool aRepaint) override;
178+
mozilla::Maybe<bool> IsResizingNativeWidget() override;
178179
void PlaceBehind(nsTopLevelWidgetZPlacement aPlacement, nsIWidget* aWidget,
179180
bool aActivate) override;
180181
void SetSizeMode(nsSizeMode aMode) override;

0 commit comments

Comments
 (0)