Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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