1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsApplicationChooser_h__
7 #define nsApplicationChooser_h__
11 #include "nsIApplicationChooser.h"
16 class nsApplicationChooser final
: public nsIApplicationChooser
{
18 nsApplicationChooser();
20 NS_DECL_NSIAPPLICATIONCHOOSER
21 void Done(GtkWidget
* chooser
, gint response
);
24 ~nsApplicationChooser();
25 nsCOMPtr
<nsIWidget
> mParentWidget
;
26 nsCString mWindowTitle
;
27 nsCOMPtr
<nsIApplicationChooserFinishedCallback
> mCallback
;
28 static void OnResponse(GtkWidget
* chooser
, gint response_id
,
30 static void OnDestroy(GtkWidget
* chooser
, gpointer user_data
);