Backed out 3 changesets (bug 1870106, bug 1845276) for causing doc generate failures...
[gecko.git] / widget / gtk / nsApplicationChooser.h
blob22f9a808c0be1da1eaa85c0d99bfd97070e6c4d5
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__
9 #include <gtk/gtk.h>
10 #include "nsCOMPtr.h"
11 #include "nsIApplicationChooser.h"
12 #include "nsString.h"
14 class nsIWidget;
16 class nsApplicationChooser final : public nsIApplicationChooser {
17 public:
18 nsApplicationChooser();
19 NS_DECL_ISUPPORTS
20 NS_DECL_NSIAPPLICATIONCHOOSER
21 void Done(GtkWidget* chooser, gint response);
23 private:
24 ~nsApplicationChooser();
25 nsCOMPtr<nsIWidget> mParentWidget;
26 nsCString mWindowTitle;
27 nsCOMPtr<nsIApplicationChooserFinishedCallback> mCallback;
28 static void OnResponse(GtkWidget* chooser, gint response_id,
29 gpointer user_data);
30 static void OnDestroy(GtkWidget* chooser, gpointer user_data);
32 #endif