Bug 1888590 - Mark some subtests on trusted-types-event-handlers.html as failing...
[gecko.git] / xpfe / appshell / nsContentTreeOwner.h
bloba2544e0bfb161b5da0e404d09c2c598d561d33f0
1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
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 nsContentTreeOwner_h__
8 #define nsContentTreeOwner_h__
10 // Helper Classes
11 #include "nsCOMPtr.h"
12 #include "nsString.h"
14 // Interfaces Needed
15 #include "nsIBaseWindow.h"
16 #include "nsIDocShellTreeOwner.h"
17 #include "nsIInterfaceRequestor.h"
18 #include "nsIInterfaceRequestorUtils.h"
19 #include "nsIWebBrowserChrome.h"
20 #include "nsIWindowProvider.h"
22 namespace mozilla {
23 class AppWindow;
26 class nsContentTreeOwner final : public nsIDocShellTreeOwner,
27 public nsIBaseWindow,
28 public nsIInterfaceRequestor,
29 public nsIWebBrowserChrome,
30 public nsIWindowProvider {
31 friend class mozilla::AppWindow;
33 public:
34 NS_DECL_ISUPPORTS
36 NS_DECL_NSIBASEWINDOW
37 NS_DECL_NSIDOCSHELLTREEOWNER
38 NS_DECL_NSIINTERFACEREQUESTOR
39 NS_DECL_NSIWINDOWPROVIDER
41 /* nsIWebBrowserChrome (Get/SetDimensions overlap with nsIBaseWindow) */
42 NS_IMETHOD SetLinkStatus(const nsAString& status) override;
43 NS_IMETHOD GetChromeFlags(uint32_t* aChromeFlags) override;
44 NS_IMETHOD SetChromeFlags(uint32_t aChromeFlags) override;
45 NS_IMETHOD ShowAsModal() override;
46 NS_IMETHOD IsWindowModal(bool* _retval) override;
47 NS_IMETHOD Blur() override;
49 protected:
50 explicit nsContentTreeOwner(bool fPrimary);
51 virtual ~nsContentTreeOwner() = default;
53 void AppWindow(mozilla::AppWindow* aAppWindow);
54 mozilla::AppWindow* AppWindow();
56 protected:
57 mozilla::AppWindow* mAppWindow;
58 bool mPrimary;
61 #endif /* nsContentTreeOwner_h__ */