Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / modules / plugin / default / unix / nullplugin.h
blobea0d65a56644ad0ba81cc01f40e881f33a1590d1
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
3 * ***** BEGIN LICENSE BLOCK *****
4 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 1.1 (the "License"); you may not use this file except in compliance with
8 * the License. You may obtain a copy of the License at
9 * http://www.mozilla.org/MPL/
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
16 * The Original Code is mozilla.org code.
18 * The Initial Developer of the Original Code is
19 * Netscape Communications Corporation.
20 * Portions created by the Initial Developer are Copyright (C) 1998
21 * the Initial Developer. All Rights Reserved.
23 * Contributor(s):
24 * Stephen Mak <smak@sun.com>
26 * Alternatively, the contents of this file may be used under the terms of
27 * either of the GNU General Public License Version 2 or later (the "GPL"),
28 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29 * in which case the provisions of the GPL or the LGPL are applicable instead
30 * of those above. If you wish to allow use of your version of this file only
31 * under the terms of either the GPL or the LGPL, and not to allow others to
32 * use your version of this file under the terms of the MPL, indicate your
33 * decision by deleting the provisions above and replace them with the notice
34 * and other provisions required by the GPL or the LGPL. If you do not delete
35 * the provisions above, a recipient may use your version of this file under
36 * the terms of any one of the MPL, the GPL or the LGPL.
38 * ***** END LICENSE BLOCK ***** */
41 * nullplugin.h
43 * Implementation of the null plugins for Unix.
45 * dp <dp@netscape.com>
46 * updated 5/1998 <pollmann@netscape.com>
47 * updated 9/2000 <smak@sun.com>
51 #define TARGET "_blank"
52 #define MIME_TYPES_HANDLED "*:.*:All types"
53 #define PLUGIN_NAME "Default Plugin"
54 #define PLUGIN_DESCRIPTION "The default plugin handles plugin data for mimetypes and extensions that are not specified and facilitates downloading of new plugins."
55 #define CLICK_TO_GET "Click here to get the plugin"
56 #define CLICK_WHEN_DONE "Click here after installing the plugin"
58 #define REFRESH_PLUGIN_LIST "javascript:navigator.plugins.refresh(true)"
59 #define PLUGINSPAGE_URL "http://plugindoc.mozdev.org/winmime.html" /* XXX Branding: make configurable via .properties or prefs */
60 #define OK_BUTTON "OK"
61 #define CANCEL_BUTTON "CANCEL"
62 #if defined(HPUX)
63 #define JVM_SMARTUPDATE_URL "http://www.hp.com/go/java"
64 #elif defined(VMS)
65 #define JVM_SMARTUPDATE_URL "http://www.openvms.compaq.com/openvms/products/ips/mozilla_relnotes.html#java"
66 #else
67 #define JVM_SMARTUPDATE_URL "http://java.com/download" /* XXX Branding: see above */
68 #endif /* HPUX */
69 #define JVM_MINETYPE "application/x-java-vm"
70 #define MESSAGE "\
71 This page contains information of a type (%s) that can\n\
72 only be viewed with the appropriate Plug-in.\n\
73 \n\
74 Click OK to download Plugin."
76 #define GET 1
77 #define REFRESH 2
78 #include <gtk/gtk.h>
80 typedef struct _PluginInstance
82 uint16_t mode;
83 #ifdef MOZ_X11
84 Window window;
85 Display *display;
86 #endif
87 uint32_t x, y;
88 uint32_t width, height;
89 NPMIMEType type;
90 char *message;
92 NPP instance;
93 char *pluginsPageUrl;
94 char *pluginsFileUrl;
95 NPBool pluginsHidden;
96 #ifdef MOZ_X11
97 Visual* visual;
98 Colormap colormap;
99 #endif
100 unsigned int depth;
101 GtkWidget* dialogBox;
103 NPBool exists; /* Does the widget already exist? */
104 int action; /* What action should we take? (GET or REFRESH) */
106 } PluginInstance;
109 typedef struct _MimeTypeElement
111 PluginInstance *pinst;
112 struct _MimeTypeElement *next;
113 } MimeTypeElement;
115 /* Extern functions */
116 extern void makeWidget(PluginInstance *This);
117 extern NPMIMEType dupMimeType(NPMIMEType type);
118 extern void destroyWidget(PluginInstance *This);
119 extern void makePixmap(PluginInstance *This);
120 extern void destroyPixmap();