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
19 nsApplicationChooser();
21 NS_DECL_NSIAPPLICATIONCHOOSER
22 void Done(GtkWidget
* chooser
, gint response
);
25 ~nsApplicationChooser();
26 nsCOMPtr
<nsIWidget
> mParentWidget
;
27 nsCString mWindowTitle
;
28 nsCOMPtr
<nsIApplicationChooserFinishedCallback
> mCallback
;
29 static void OnResponse(GtkWidget
* chooser
, gint response_id
, gpointer user_data
);
30 static void OnDestroy(GtkWidget
* chooser
, gpointer user_data
);