1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef nsOpenWindowInfo_h
8 #define nsOpenWindowInfo_h
10 #include "nsIOpenWindowInfo.h"
11 #include "nsISupportsImpl.h"
12 #include "mozilla/OriginAttributes.h"
13 #include "mozilla/RefPtr.h"
14 #include "mozilla/dom/ClientOpenWindowUtils.h"
16 class nsOpenWindowInfo
: public nsIOpenWindowInfo
{
19 NS_DECL_NSIOPENWINDOWINFO
21 bool mForceNoOpener
= false;
22 bool mIsRemote
= false;
23 bool mIsForPrinting
= false;
24 bool mIsForWindowDotPrint
= false;
25 bool mIsTopLevelCreatedByWebContent
= false;
26 bool mHasValidUserGestureActivation
= false;
27 bool mTextDirectiveUserActivation
= false;
28 RefPtr
<mozilla::dom::BrowserParent
> mNextRemoteBrowser
;
29 mozilla::OriginAttributes mOriginAttributes
;
30 RefPtr
<mozilla::dom::BrowsingContext
> mParent
;
31 RefPtr
<nsIBrowsingContextReadyCallback
> mBrowsingContextReadyCallback
;
34 virtual ~nsOpenWindowInfo() = default;
37 class nsBrowsingContextReadyCallback
: public nsIBrowsingContextReadyCallback
{
40 NS_DECL_NSIBROWSINGCONTEXTREADYCALLBACK
42 explicit nsBrowsingContextReadyCallback(
43 RefPtr
<mozilla::dom::BrowsingContextCallbackReceivedPromise::Private
>
47 virtual ~nsBrowsingContextReadyCallback();
49 RefPtr
<mozilla::dom::BrowsingContextCallbackReceivedPromise::Private
>
53 #endif // nsOpenWindowInfo_h