Bug 1704628 Part 5: Avoid use of ESC to close context menu in browser_toolbox_textbox...
[gecko.git] / layout / build / nsLayoutModule.h
blob5de530c6e743eb196db002f518b774201d705854
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 nsLayoutModule_h
8 #define nsLayoutModule_h
10 #include "nscore.h"
11 #include "nsID.h"
12 #include "mozilla/AlreadyAddRefed.h"
14 class nsIPresentationService;
15 class nsISupports;
17 // This function initializes various layout statics, as well as XPConnect.
18 // It should be called only once, and before the first time any XPCOM module in
19 // nsLayoutModule is used.
20 void nsLayoutModuleInitialize();
22 void nsLayoutModuleDtor();
24 nsresult CreateXMLContentSerializer(nsISupports* aOuter, const nsID& aIID,
25 void** aResult);
26 nsresult CreateHTMLContentSerializer(nsISupports* aOuter, const nsID& aIID,
27 void** aResult);
28 nsresult CreateXHTMLContentSerializer(nsISupports* aOuter, const nsID& aIID,
29 void** aResult);
30 nsresult CreatePlainTextSerializer(nsISupports* aOuter, const nsID& aIID,
31 void** aResult);
32 nsresult CreateContentPolicy(nsISupports* aOuter, const nsID& aIID,
33 void** aResult);
34 nsresult CreateGlobalMessageManager(nsISupports* aOuter, const nsID& aIID,
35 void** aResult);
36 nsresult CreateParentMessageManager(nsISupports* aOuter, const nsID& aIID,
37 void** aResult);
38 nsresult CreateChildMessageManager(nsISupports* aOuter, const nsID& aIID,
39 void** aResult);
41 nsresult Construct_nsIScriptSecurityManager(nsISupports* aOuter,
42 const nsIID& aIID, void** aResult);
43 nsresult LocalStorageManagerConstructor(nsISupports* aOuter, const nsIID& aIID,
44 void** aResult);
45 nsresult SessionStorageManagerConstructor(nsISupports* aOuter,
46 const nsIID& aIID, void** aResult);
48 already_AddRefed<nsIPresentationService> NS_CreatePresentationService();
50 #endif // nsLayoutModule_h