1 #define TARGET "_blank"
2 #define MIME_TYPES_HANDLED "application/edje:Enlightenment Foundation Libraries (EFL) Edje theme file"
3 #define PLUGIN_NAME "Mozilla Edje Plugin"
4 #define PLUGIN_DESCRIPTION "This Plugin is able to preview Edje files through the evas X11 engines."
12 #include <npruntime.h>
14 #include <X11/Intrinsic.h>
18 #include <Ecore_Config.h>
20 #include <Evas_Engine_Software_X11.h>
21 #include <Evas_Engine_GL_X11.h>
24 typedef struct _PluginInstance
49 XClientMessageEvent msg
;
59 NPObject
*scriptable_object
;
61 NPBool exists
; /* Does the widget already exist? */
62 int action
; /* What action should we take? (GET or REFRESH) */
66 void mep_asynccall (void *userData
);
67 void mep_configure (PluginInstance
*pi
);
68 int mep_animator (void *data
);
69 void *mep_trigger (void *data
);
70 NPObject
*mep_getscriptableobject (PluginInstance
*pi
);
72 void mep_cb_ui_play (void *data
, Evas_Object
*edj
, const char *emission
, const char *source
);
73 void mep_cb_ui_pause (void *data
, Evas_Object
*edj
, const char *emission
, const char *source
);
74 void mep_cb_ui_save (void *data
, Evas_Object
*edj
, const char *emission
, const char *source
);
75 void mep_cb_ui_config (void *data
, Evas_Object
*edj
, const char *emission
, const char *source
);
76 void mep_cb_all (void *data
, Evas_Object
*edj
, const char *emission
, const char *source
);
77 void mep_event_handler (Widget xtwidget
, void *data
, XEvent
*xevent
, Boolean
*b
);
83 typedef struct _mep_edje_NPObject mep_edje_NPObject
;
84 typedef struct _mep_part_NPObject mep_part_NPObject
;
86 struct _mep_edje_NPObject
{
88 uint32_t referenceCount
;
92 struct _mep_part_NPObject
{
94 uint32_t referenceCount
;
99 extern struct NPClass mep_part_class
;
100 extern struct NPClass mep_edje_class
;