Bug 1449132 [wpt PR 10194] - [css-grid] Fix resolution of percentage paddings and...
[gecko.git] / widget / gtk / nsApplicationChooser.h
blobda16dac717c81eb84dbf8e01cf6a5f6d56f197c2
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
18 public:
19 nsApplicationChooser();
20 NS_DECL_ISUPPORTS
21 NS_DECL_NSIAPPLICATIONCHOOSER
22 void Done(GtkWidget* chooser, gint response);
24 private:
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);
32 #endif