|
1 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
4 |
|
5 #ifndef CRASHREPORTER_GTK_COMMON_H__ |
|
6 #define CRASHREPORTER_GTK_COMMON_H__ |
|
7 |
|
8 #include <glib.h> |
|
9 #include <gtk/gtk.h> |
|
10 |
|
11 #include <string> |
|
12 #include <vector> |
|
13 |
|
14 const char kIniFile[] = "crashreporter.ini"; |
|
15 |
|
16 extern GtkWidget* gWindow; |
|
17 extern GtkWidget* gSubmitReportCheck; |
|
18 extern GtkWidget* gIncludeURLCheck; |
|
19 extern GtkWidget* gThrobber; |
|
20 extern GtkWidget* gProgressLabel; |
|
21 extern GtkWidget* gCloseButton; |
|
22 extern GtkWidget* gRestartButton; |
|
23 |
|
24 extern std::vector<std::string> gRestartArgs; |
|
25 extern GThread* gSendThreadID; |
|
26 |
|
27 extern bool gInitialized; |
|
28 extern bool gDidTrySend; |
|
29 extern std::string gDumpFile; |
|
30 extern StringTable gQueryParameters; |
|
31 extern std::string gHttpProxy; |
|
32 extern std::string gAuth; |
|
33 extern std::string gCACertificateFile; |
|
34 extern std::string gSendURL; |
|
35 extern std::string gURLParameter; |
|
36 |
|
37 void LoadProxyinfo(); |
|
38 gpointer SendThread(gpointer args); |
|
39 gboolean WindowDeleted(GtkWidget* window, |
|
40 GdkEvent* event, |
|
41 gpointer userData); |
|
42 gboolean check_escape(GtkWidget* window, GdkEventKey* event, gpointer data); |
|
43 void SubmitReportChecked(GtkButton* sender, gpointer userData); |
|
44 void IncludeURLClicked(GtkButton* sender, gpointer userData); |
|
45 void CloseClicked(GtkButton* button, |
|
46 gpointer userData); |
|
47 void RestartClicked(GtkButton* button, |
|
48 gpointer userData); |
|
49 |
|
50 #endif // CRASHREPORTER_GTK_COMMON_H__ |