зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1584492 [Linux] Add mIsPIPWindow to nsWindow, r=jhorak
Depends on D47409 Differential Revision: https://phabricator.services.mozilla.com/D47410 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
07a564202b
Коммит
47f4838fa0
|
@ -472,6 +472,7 @@ nsWindow::nsWindow() {
|
||||||
mTitlebarBackdropState = false;
|
mTitlebarBackdropState = false;
|
||||||
|
|
||||||
mHasAlphaVisual = false;
|
mHasAlphaVisual = false;
|
||||||
|
mIsPIPWindow = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
nsWindow::~nsWindow() {
|
nsWindow::~nsWindow() {
|
||||||
|
@ -3651,6 +3652,8 @@ nsresult nsWindow::Create(nsIWidget* aParent, nsNativeWidget aNativeParent,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mIsPIPWindow = aInitData && aInitData->mPIPWindow;
|
||||||
|
|
||||||
// ok, create our windows
|
// ok, create our windows
|
||||||
switch (mWindowType) {
|
switch (mWindowType) {
|
||||||
case eWindowType_dialog:
|
case eWindowType_dialog:
|
||||||
|
|
|
@ -276,6 +276,7 @@ class nsWindow final : public nsBaseWidget {
|
||||||
nsIFrame* GetFrame();
|
nsIFrame* GetFrame();
|
||||||
bool IsDestroyed() { return mIsDestroyed; }
|
bool IsDestroyed() { return mIsDestroyed; }
|
||||||
bool IsWaylandPopup();
|
bool IsWaylandPopup();
|
||||||
|
bool IsPIPWindow() { return mIsPIPWindow; };
|
||||||
|
|
||||||
void DispatchDragEvent(mozilla::EventMessage aMsg,
|
void DispatchDragEvent(mozilla::EventMessage aMsg,
|
||||||
const LayoutDeviceIntPoint& aRefPoint, guint aTime);
|
const LayoutDeviceIntPoint& aRefPoint, guint aTime);
|
||||||
|
@ -523,6 +524,8 @@ class nsWindow final : public nsBaseWidget {
|
||||||
bool mTitlebarBackdropState;
|
bool mTitlebarBackdropState;
|
||||||
// Draggable titlebar region maintained by UpdateWindowDraggingRegion
|
// Draggable titlebar region maintained by UpdateWindowDraggingRegion
|
||||||
LayoutDeviceIntRegion mDraggableRegion;
|
LayoutDeviceIntRegion mDraggableRegion;
|
||||||
|
// It's PictureInPicture window.
|
||||||
|
bool mIsPIPWindow;
|
||||||
|
|
||||||
#ifdef ACCESSIBILITY
|
#ifdef ACCESSIBILITY
|
||||||
RefPtr<mozilla::a11y::Accessible> mRootAccessible;
|
RefPtr<mozilla::a11y::Accessible> mRootAccessible;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче