Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
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 nsNSSDialogHelper_h
8 #define nsNSSDialogHelper_h
10 #include "nsIDOMWindow.h"
12 /**
13 * Common class that uses the window watcher service to open a
14 * standard dialog, with or without a parent context. The params
15 * parameter can be an nsISupportsArray so any number of additional
16 * arguments can be used.
17 */
18 class nsNSSDialogHelper
19 {
20 public:
21 //The params is going to be either a nsIPKIParamBlock or
22 //nsIDialogParamBlock
23 static nsresult openDialog(
24 nsIDOMWindow *window,
25 const char *url,
26 nsISupports *params,
27 bool modal = true);
28 };
30 #endif