svn path=/trunk/gtkmozembed-sharp/; revision=13066
This commit is contained in:
Mark Crichton 2003-04-03 18:37:12 +00:00
Коммит 4b6079281b
23 изменённых файлов: 1070 добавлений и 0 удалений

1
.cvs_version Normal file
Просмотреть файл

@ -0,0 +1 @@
If you see this in a tarball, something broke.

10
.cvsignore Normal file
Просмотреть файл

@ -0,0 +1,10 @@
Makefile.in
Makefile
aclocal.m4
config.cache
config.guess
config.h.in
config.sub
configure
stamp*

0
AUTHORS Normal file
Просмотреть файл

0
ChangeLog Normal file
Просмотреть файл

1
Makefile.am Normal file
Просмотреть файл

@ -0,0 +1 @@
SUBDIRS = sources api gtkmozembed sample

0
NEWS Normal file
Просмотреть файл

0
README Normal file
Просмотреть файл

3
api/.cvsignore Normal file
Просмотреть файл

@ -0,0 +1,3 @@
Makefile.in
Makefile
generated-stamp

23
api/Makefile.am Normal file
Просмотреть файл

@ -0,0 +1,23 @@
APIS = \
$(srcdir)/gtkmozembed-api.xml
API_INCLUDES = \
$(GTKSHARP_PREFIX)/share/gapi/gdk-api.xml \
$(GTKSHARP_PREFIX)/share/gapi/gtk-api.xml \
$(GTKSHARP_PREFIX)/share/gapi/atk-api.xml
RUNTIME=mono
if USE_GAPI_CODEGEN
all: generated-stamp
generated-stamp: $(APIS)
$(RUNTIME) @GTKSHARP_PREFIX@/bin/gapi_codegen.exe --generate $(APIS) --include $(API_INCLUDES) && touch generated-stamp
clean:
rm -f generated-stamp
endif
EXTRA_DIST = $(APIS)

373
api/gtkmozembed-api.xml Normal file
Просмотреть файл

@ -0,0 +1,373 @@
<?xml version="1.0"?>
<api>
<namespace name="GtkMozEmbed" library="gtkembedmoz">
<enum name="ChromeFlags" cname="GtkMozEmbedChromeFlags" type="enum">
<member cname="GTK_MOZ_EMBED_FLAG_DEFAULTCHROME" name="Defaultchrome" value="1U"/>
<member cname="GTK_MOZ_EMBED_FLAG_WINDOWBORDERSON" name="Windowborderson" value="2U"/>
<member cname="GTK_MOZ_EMBED_FLAG_WINDOWCLOSEON" name="Windowcloseon" value="4U"/>
<member cname="GTK_MOZ_EMBED_FLAG_WINDOWRESIZEON" name="Windowresizeon" value="8U"/>
<member cname="GTK_MOZ_EMBED_FLAG_MENUBARON" name="Menubaron" value="16U"/>
<member cname="GTK_MOZ_EMBED_FLAG_TOOLBARON" name="Toolbaron" value="32U"/>
<member cname="GTK_MOZ_EMBED_FLAG_LOCATIONBARON" name="Locationbaron" value="64U"/>
<member cname="GTK_MOZ_EMBED_FLAG_STATUSBARON" name="Statusbaron" value="128U"/>
<member cname="GTK_MOZ_EMBED_FLAG_PERSONALTOOLBARON" name="Personaltoolbaron" value="256U"/>
<member cname="GTK_MOZ_EMBED_FLAG_SCROLLBARSON" name="Scrollbarson" value="512U"/>
<member cname="GTK_MOZ_EMBED_FLAG_TITLEBARON" name="Titlebaron" value="1024U"/>
<member cname="GTK_MOZ_EMBED_FLAG_EXTRACHROMEON" name="Extrachromeon" value="2048U"/>
<member cname="GTK_MOZ_EMBED_FLAG_ALLCHROME" name="Allchrome" value="4094U"/>
<member cname="GTK_MOZ_EMBED_FLAG_WINDOWRAISED" name="Windowraised" value="33554432U"/>
<member cname="GTK_MOZ_EMBED_FLAG_WINDOWLOWERED" name="Windowlowered" value="67108864U"/>
<member cname="GTK_MOZ_EMBED_FLAG_CENTERSCREEN" name="Centerscreen" value="134217728U"/>
<member cname="GTK_MOZ_EMBED_FLAG_DEPENDENT" name="Dependent" value="268435456U"/>
<member cname="GTK_MOZ_EMBED_FLAG_MODAL" name="Modal" value="536870912U"/>
<member cname="GTK_MOZ_EMBED_FLAG_OPENASDIALOG" name="Openasdialog" value="1073741824U"/>
<member cname="GTK_MOZ_EMBED_FLAG_OPENASCHROME" name="Openaschrome" value="2147483648U"/>
</enum>
<enum name="ProgressFlags" cname="GtkMozEmbedProgressFlags" type="enum">
<member cname="GTK_MOZ_EMBED_FLAG_START" name="Start" value="1"/>
<member cname="GTK_MOZ_EMBED_FLAG_REDIRECTING" name="Redirecting" value="2"/>
<member cname="GTK_MOZ_EMBED_FLAG_TRANSFERRING" name="Transferring" value="4"/>
<member cname="GTK_MOZ_EMBED_FLAG_NEGOTIATING" name="Negotiating" value="8"/>
<member cname="GTK_MOZ_EMBED_FLAG_STOP" name="Stop" value="16"/>
<member cname="GTK_MOZ_EMBED_FLAG_IS_REQUEST" name="IsRequest" value="65536"/>
<member cname="GTK_MOZ_EMBED_FLAG_IS_DOCUMENT" name="IsDocument" value="131072"/>
<member cname="GTK_MOZ_EMBED_FLAG_IS_NETWORK" name="IsNetwork" value="262144"/>
<member cname="GTK_MOZ_EMBED_FLAG_IS_WINDOW" name="IsWindow" value="524288 "/>
</enum>
<enum name="ReloadFlags" cname="GtkMozEmbedReloadFlags" type="enum">
<member cname="GTK_MOZ_EMBED_FLAG_RELOADNORMAL" name="Reloadnormal"/>
<member cname="GTK_MOZ_EMBED_FLAG_RELOADBYPASSCACHE" name="Reloadbypasscache" value="1"/>
<member cname="GTK_MOZ_EMBED_FLAG_RELOADBYPASSPROXY" name="Reloadbypassproxy" value="2"/>
<member cname="GTK_MOZ_EMBED_FLAG_RELOADBYPASSPROXYANDCACHE" name="Reloadbypassproxyandcache" value="3"/>
<member cname="GTK_MOZ_EMBED_FLAG_RELOADCHARSETCHANGE" name="Reloadcharsetchange" value="4"/>
</enum>
<enum name="StatusFlags" cname="GtkMozEmbedStatusFlags" type="enum">
<member cname="GTK_MOZ_EMBED_STATUS_FAILED_DNS" name="Dns" value="2152398878U"/>
<member cname="GTK_MOZ_EMBED_STATUS_FAILED_CONNECT" name="Connect" value="2152398861U"/>
<member cname="GTK_MOZ_EMBED_STATUS_FAILED_TIMEOUT" name="Timeout" value="2152398862U"/>
<member cname="GTK_MOZ_EMBED_STATUS_FAILED_USERCANCELED" name="Usercanceled" value="2152398850U"/>
</enum>
<object name="EmbedWidget" cname="GtkMozEmbed" parent="GtkBin">
<field cname="data" type="void*"/>
<signal name="LinkMessage" cname="link_message" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
</parameters>
</signal>
<signal name="JsStatus" cname="js_status" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
</parameters>
</signal>
<signal name="Location" cname="location" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
</parameters>
</signal>
<signal name="Title" cname="title" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
</parameters>
</signal>
<signal name="Progress" cname="progress" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="gint" name="curprogress"/>
<parameter type="gint" name="maxprogress"/>
</parameters>
</signal>
<signal name="ProgressAll" cname="progress_all" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="const-char*" name="aURI"/>
<parameter type="gint" name="curprogress"/>
<parameter type="gint" name="maxprogress"/>
</parameters>
</signal>
<signal name="NetState" cname="net_state" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="gint" name="state"/>
<parameter type="guint" name="status"/>
</parameters>
</signal>
<signal name="NetStateAll" cname="net_state_all" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="const-char*" name="aURI"/>
<parameter type="gint" name="state"/>
<parameter type="guint" name="status"/>
</parameters>
</signal>
<signal name="NetStart" cname="net_start" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
</parameters>
</signal>
<signal name="NetStop" cname="net_stop" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
</parameters>
</signal>
<signal name="NewWindow" cname="new_window" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="GtkMozEmbed**" name="newEmbed"/>
<parameter type="guint" name="chromemask"/>
</parameters>
</signal>
<signal name="NewWindow2" cname="new_window2" when="LAST">
<return-type type="GtkMozEmbed*"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="guint" name="chromemask"/>
</parameters>
</signal>
<signal name="Visibility" cname="visibility" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="gboolean" name="visibility"/>
</parameters>
</signal>
<signal name="DestroyBrowser" cname="destroy_browser" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
</parameters>
</signal>
<signal name="OpenUri" cname="open_uri" when="LAST">
<return-type type="gint"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="const-char*" name="aURI"/>
</parameters>
</signal>
<signal name="SizeTo" cname="size_to" when="LAST">
<return-type type="void"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="gint" name="width"/>
<parameter type="gint" name="height"/>
</parameters>
</signal>
<signal name="DomKeyDown" cname="dom_key_down" when="LAST">
<return-type type="gint"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="gpointer" name="dom_event"/>
</parameters>
</signal>
<signal name="DomKeyPress" cname="dom_key_press" when="LAST">
<return-type type="gint"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="gpointer" name="dom_event"/>
</parameters>
</signal>
<signal name="DomKeyUp" cname="dom_key_up" when="LAST">
<return-type type="gint"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="gpointer" name="dom_event"/>
</parameters>
</signal>
<signal name="DomMouseDown" cname="dom_mouse_down" when="LAST">
<return-type type="gint"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="gpointer" name="dom_event"/>
</parameters>
</signal>
<signal name="DomMouseUp" cname="dom_mouse_up" when="LAST">
<return-type type="gint"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="gpointer" name="dom_event"/>
</parameters>
</signal>
<signal name="DomMouseClick" cname="dom_mouse_click" when="LAST">
<return-type type="gint"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="gpointer" name="dom_event"/>
</parameters>
</signal>
<signal name="DomMouseDblClick" cname="dom_mouse_dbl_click" when="LAST">
<return-type type="gint"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="gpointer" name="dom_event"/>
</parameters>
</signal>
<signal name="DomMouseOver" cname="dom_mouse_over" when="LAST">
<return-type type="gint"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="gpointer" name="dom_event"/>
</parameters>
</signal>
<signal name="DomMouseOut" cname="dom_mouse_out" when="LAST">
<return-type type="gint"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="gpointer" name="dom_event"/>
</parameters>
</signal>
<signal name="SecurityChange" cname="security_change" when="LAST">
<return-type type="void"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="gpointer" name="request"/>
<parameter type="guint" name="state"/>
</parameters>
</signal>
<signal name="StatusChange" cname="status_change" when="LAST">
<return-type type="void"/>
<parameters>
<parameter type="GtkMozEmbed*" name="embed"/>
<parameter type="gpointer" name="request"/>
<parameter type="gint" name="status"/>
<parameter type="gpointer" name="message"/>
</parameters>
</signal>
<method name="AppendData" cname="gtk_moz_embed_append_data">
<return-type type="void"/>
<parameters>
<parameter type="const-char*" name="data"/>
<parameter type="guint32" name="len"/>
</parameters>
</method>
<method name="CanGoBack" cname="gtk_moz_embed_can_go_back">
<return-type type="gboolean"/>
</method>
<method name="CanGoForward" cname="gtk_moz_embed_can_go_forward">
<return-type type="gboolean"/>
</method>
<method name="ChromeFlagsGetType" cname="gtk_moz_embed_chrome_flags_get_type" shared="true" hidden="1">
<return-type type="GtkType"/>
</method>
<method name="CloseStream" cname="gtk_moz_embed_close_stream">
<return-type type="void"/>
</method>
<method name="GetChromeMask" cname="gtk_moz_embed_get_chrome_mask">
<return-type type="guint32"/>
</method>
<method name="GetGeckoJsStatus" cname="gtk_moz_embed_get_js_status">
<return-type type="char*"/>
</method>
<method name="GetGeckoLinkMessage" cname="gtk_moz_embed_get_link_message">
<return-type type="char*"/>
</method>
<method name="GetGeckoLocation" cname="gtk_moz_embed_get_location">
<return-type type="char*"/>
</method>
<method name="GetGeckoTitle" cname="gtk_moz_embed_get_title">
<return-type type="char*"/>
</method>
<method name="GetType" cname="gtk_moz_embed_get_type" shared="true">
<return-type type="GtkType"/>
</method>
<method name="GoBack" cname="gtk_moz_embed_go_back">
<return-type type="void"/>
</method>
<method name="GoForward" cname="gtk_moz_embed_go_forward">
<return-type type="void"/>
</method>
<method name="LoadUrl" cname="gtk_moz_embed_load_url">
<return-type type="void"/>
<parameters>
<parameter type="const-char*" name="url"/>
</parameters>
</method>
<constructor cname="gtk_moz_embed_new" hidden="1"/>
<method name="OpenStream" cname="gtk_moz_embed_open_stream">
<return-type type="void"/>
<parameters>
<parameter type="const-char*" name="base_uri"/>
<parameter type="const-char*" name="mime_type"/>
</parameters>
</method>
<method name="PopStartup" cname="gtk_moz_embed_pop_startup" shared="true">
<return-type type="void"/>
</method>
<method name="ProgressFlagsGetType" cname="gtk_moz_embed_progress_flags_get_type" shared="true" hidden="1">
<return-type type="GtkType"/>
</method>
<method name="PushStartup" cname="gtk_moz_embed_push_startup" shared="true">
<return-type type="void"/>
</method>
<method name="Reload" cname="gtk_moz_embed_reload">
<return-type type="void"/>
<parameters>
<parameter type="gint32" name="flags"/>
</parameters>
</method>
<method name="ReloadFlagsGetType" cname="gtk_moz_embed_reload_flags_get_type" shared="true" hidden="1">
<return-type type="GtkType"/>
</method>
<method name="RenderData" cname="gtk_moz_embed_render_data">
<return-type type="void"/>
<parameters>
<parameter type="const-char*" name="data"/>
<parameter type="guint32" name="len"/>
<parameter type="const-char*" name="base_uri"/>
<parameter type="const-char*" name="mime_type"/>
</parameters>
</method>
<method name="SetChromeMask" cname="gtk_moz_embed_set_chrome_mask">
<return-type type="void"/>
<parameters>
<parameter type="guint32" name="flags"/>
</parameters>
</method>
<method name="SetCompPath" cname="gtk_moz_embed_set_comp_path" shared="true">
<return-type type="void"/>
<parameters>
<parameter type="char*" name="aPath"/>
</parameters>
</method>
<method name="SetProfilePath" cname="gtk_moz_embed_set_profile_path" shared="true">
<return-type type="void"/>
<parameters>
<parameter type="char*" name="aDir"/>
<parameter type="char*" name="aName"/>
</parameters>
</method>
<method name="StatusEnumsGetType" cname="gtk_moz_embed_status_enums_get_type" shared="true" hidden="1">
<return-type type="GtkType"/>
</method>
<method name="StopLoad" cname="gtk_moz_embed_stop_load">
<return-type type="void"/>
</method>
</object>
<object name="Single" cname="GtkMozEmbedSingle" parent="GtkObject">
<field cname="data" type="void*"/>
<signal name="NewWindowOrphan" cname="new_window_orphan" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkMozEmbedSingle*" name="embed"/>
<parameter type="GtkMozEmbed**" name="newEmbed"/>
<parameter type="guint" name="chromemask"/>
</parameters>
</signal>
<method name="Get" cname="gtk_moz_embed_single_get" shared="true">
<return-type type="GtkMozEmbedSingle*"/>
</method>
<method name="GetType" cname="gtk_moz_embed_single_get_type" shared="true">
<return-type type="GtkType"/>
</method>
</object>
</namespace>
</api>

8
autogen.sh Executable file
Просмотреть файл

@ -0,0 +1,8 @@
#! /bin/sh
# Ok, simple script to do this.
aclocal
automake --add-missing --gnu
autoconf

19
config.log Normal file
Просмотреть файл

@ -0,0 +1,19 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:575: checking host system type
configure:596: checking target system type
configure:614: checking build system type
configure:649: checking for a BSD compatible install
configure:702: checking whether build environment is sane
configure:759: checking whether make sets ${MAKE}
configure:805: checking for working aclocal-1.4
configure:818: checking for working autoconf
configure:831: checking for working automake-1.4
configure:844: checking for working autoheader
configure:857: checking for working makeinfo
configure:871: checking whether to enable maintainer-specific portions of Makefiles
configure:895: checking whether we're compiling from CVS
configure:907: checking for gapi_codegen.exe
configure:966: checking for mono
configure:1001: checking for mcs

202
config.status Executable file
Просмотреть файл

@ -0,0 +1,202 @@
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host antilles.ecs.umass.edu:
#
# ./configure
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
ac_cs_usage="Usage: ./config.status [--recheck] [--version] [--help]"
for ac_option
do
case "$ac_option" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo "running ${CONFIG_SHELL-/bin/sh} ./configure --no-create --no-recursion"
exec ${CONFIG_SHELL-/bin/sh} ./configure --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "./config.status generated by autoconf version 2.13"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "$ac_cs_usage"; exit 0 ;;
*) echo "$ac_cs_usage"; exit 1 ;;
esac
done
ac_given_srcdir=.
ac_given_INSTALL="/usr/bin/install -c"
trap 'rm -fr
Makefile
api/Makefile
gtkmozembed/Makefile
sample/Makefile
sources/Makefile conftest*; exit 1' 1 2 15
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g;
s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
/^[ ]*VPATH[ ]*=[^:]*$/d
s%@SHELL@%/bin/sh%g
s%@CFLAGS@%%g
s%@CPPFLAGS@%%g
s%@CXXFLAGS@%%g
s%@FFLAGS@%%g
s%@DEFS@% -DPACKAGE=\"gtkmozemebd\" -DVERSION=\"0.1\" %g
s%@LDFLAGS@%%g
s%@LIBS@%%g
s%@exec_prefix@%${prefix}%g
s%@prefix@%/usr/local%g
s%@program_transform_name@%s,x,x,%g
s%@bindir@%${exec_prefix}/bin%g
s%@sbindir@%${exec_prefix}/sbin%g
s%@libexecdir@%${exec_prefix}/libexec%g
s%@datadir@%${prefix}/share%g
s%@sysconfdir@%${prefix}/etc%g
s%@sharedstatedir@%${prefix}/com%g
s%@localstatedir@%${prefix}/var%g
s%@libdir@%${exec_prefix}/lib%g
s%@includedir@%${prefix}/include%g
s%@oldincludedir@%/usr/include%g
s%@infodir@%${prefix}/info%g
s%@mandir@%${prefix}/man%g
s%@host@%i686-pc-linux-gnu%g
s%@host_alias@%i686-pc-linux-gnu%g
s%@host_cpu@%i686%g
s%@host_vendor@%pc%g
s%@host_os@%linux-gnu%g
s%@target@%i686-pc-linux-gnu%g
s%@target_alias@%i686-pc-linux-gnu%g
s%@target_cpu@%i686%g
s%@target_vendor@%pc%g
s%@target_os@%linux-gnu%g
s%@build@%i686-pc-linux-gnu%g
s%@build_alias@%i686-pc-linux-gnu%g
s%@build_cpu@%i686%g
s%@build_vendor@%pc%g
s%@build_os@%linux-gnu%g
s%@INSTALL_PROGRAM@%${INSTALL}%g
s%@INSTALL_SCRIPT@%${INSTALL_PROGRAM}%g
s%@INSTALL_DATA@%${INSTALL} -m 644%g
s%@PACKAGE@%gtkmozemebd%g
s%@VERSION@%0.1%g
s%@ACLOCAL@%aclocal-1.4%g
s%@AUTOCONF@%autoconf%g
s%@AUTOMAKE@%automake-1.4%g
s%@AUTOHEADER@%autoheader%g
s%@MAKEINFO@%makeinfo%g
s%@SET_MAKE@%%g
s%@MAINTAINER_MODE_TRUE@%#%g
s%@MAINTAINER_MODE_FALSE@%%g
s%@MAINT@%#%g
s%@GAPI_CODEGEN@%/opt/stuff/bin/gapi_codegen.exe%g
s%@GTKSHARP_PREFIX@%/opt/stuff%g
s%@USE_GAPI_CODEGEN_TRUE@%%g
s%@USE_GAPI_CODEGEN_FALSE@%#%g
s%@MONO@%/opt/stuff/bin/mono%g
s%@MCS@%/opt/stuff/bin/mcs%g
s%@PATH@%/opt/intel/compiler50/ia32/bin:/usr/java/j2sdk/bin:/opt/qt/bin:/home/crichton/cvs/mozilla/dist/bin:/opt/kde/bin:/opt/gnome2/bin:/home/crichton/bin:/opt/stuff/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games%g
s%@LD_LIBRARY_PATH@%/opt/intel/compiler50/ia32/lib:/opt/qt/lib:/opt/kde/lib:/home/crichton/cvs/mozilla/dist/bin::/opt/stuff/lib%g
CEOF
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
if test $ac_beg -gt 1; then
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
else
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
fi
if test ! -s conftest.s$ac_file; then
ac_more_lines=false
rm -f conftest.s$ac_file
else
if test -z "$ac_sed_cmds"; then
ac_sed_cmds="sed -f conftest.s$ac_file"
else
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
fi
ac_file=`expr $ac_file + 1`
ac_beg=$ac_end
ac_end=`expr $ac_end + $ac_max_sed_cmds`
fi
done
if test -z "$ac_sed_cmds"; then
ac_sed_cmds=cat
fi
CONFIG_FILES=${CONFIG_FILES-"Makefile
api/Makefile
gtkmozembed/Makefile
sample/Makefile
sources/Makefile
"}
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
# A "../" for each directory in $ac_dir_suffix.
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
else
ac_dir_suffix= ac_dots=
fi
case "$ac_given_srcdir" in
.) srcdir=.
if test -z "$ac_dots"; then top_srcdir=.
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
*) # Relative path.
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
top_srcdir="$ac_dots$ac_given_srcdir" ;;
esac
case "$ac_given_INSTALL" in
[/$]*) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
echo creating "$ac_file"
rm -f "$ac_file"
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
case "$ac_file" in
*Makefile*) ac_comsub="1i\\
# $configure_input" ;;
*) ac_comsub= ;;
esac
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*
exit 0

48
configure.in Normal file
Просмотреть файл

@ -0,0 +1,48 @@
AC_INIT(README)
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE(gtkmozemebd, 0.1)
AM_MAINTAINER_MODE
AC_MSG_CHECKING([whether we're compiling from CVS])
if test -f "$srcdir/.cvs_version" ; then
from_cvs=yes
else
from_cvs=no
fi
AC_MSG_RESULT($from_cvs)
if test "x$from_cvs" = "xyes" ; then
AC_PATH_PROG(GAPI_CODEGEN, gapi_codegen.exe, no)
if test "x$GAPI_CODEGEN" != "xno"; then
gtksharp_path=`dirname $GAPI_CODEGEN`
GTKSHARP_PREFIX=`dirname $gtksharp_path`
have_gtk=yes
else
AC_MSG_WARN([Cannot find gtk-sharp, the GUI won't be build])
have_gtk=no
fi
else
have_gtk=yes
fi
AC_SUBST(GTKSHARP_PREFIX)
AM_CONDITIONAL(USE_GAPI_CODEGEN, test x$from_cvs = xyes)
AC_PATH_PROG(MONO, mono)
AC_PATH_PROG(MCS, mcs)
if test "x$MONO" = "x" ; then
AC_MSG_ERROR([Can't find "mono" in your PATH])
fi
if test "x$MCS" = "x" ; then
AC_MSG_ERROR([Can't find "mcs" in your PATH])
fi
AC_SUBST(PATH)
AC_SUBST(LD_LIBRARY_PATH)
AC_OUTPUT([
Makefile
api/Makefile
gtkmozembed/Makefile
sample/Makefile
sources/Makefile
])

4
gtkmozembed/.cvsignore Normal file
Просмотреть файл

@ -0,0 +1,4 @@
Makefile.in
Makefile
gtkmozembed-sharp.dll
generated

Просмотреть файл

@ -0,0 +1,13 @@
[DllImport("gtkembedmoz")]
static extern IntPtr gtk_moz_embed_new();
public EmbedWidget(string aPath, string aDir)
{
gtk_moz_embed_set_profile_path(aPath, aDir);
Raw = gtk_moz_embed_new ();
}
public EmbedWidget()
{
Raw = gtk_moz_embed_new();
}

17
gtkmozembed/Makefile.am Normal file
Просмотреть файл

@ -0,0 +1,17 @@
all: gtkmozembed-sharp.dll
gtkmozembed-sharp.dll: @srcdir@/generated/*.cs
$(MCS) --unsafe --target library -L $(GTKSHARP_PREFIX)/lib \
-r glib-sharp.dll -r gtk-sharp.dll -r gdk-sharp.dll \
--recurse '@srcdir@/*.cs' -o gtkmozembed-sharp.dll
clean:
rm -f *.dll
maintainerclean:
rm -rf generated
install: all
cp gtkmozembed-sharp.dll $(DESTDIR)@prefix@/lib
EXTRA_DIST = @srcdir@/generated/*.cs

4
sample/.cvsignore Normal file
Просмотреть файл

@ -0,0 +1,4 @@
Makefile.in
Makefile
*.dll
*.exe

185
sample/GtkMozApp.cs Normal file
Просмотреть файл

@ -0,0 +1,185 @@
// ButtonApp.cs - Gtk.Button class Test implementation
//
// Author: Mike Kestner <mkestner@speakeasy.net>
//
// (c) 2001-2002 Mike Kestner
namespace GtkSamples {
using Gtk;
using GtkSharp;
using GtkMozEmbed;
using GtkMozEmbedSharp;
using System;
using System.Drawing;
public class MozApp {
private static EmbedWidget moz;
private static Entry editbox;
private static ProgressBar pbar;
private static Statusbar sbar;
private static Window win;
private static string tempMessage;
private static int loadPercent;
public static int Main (string[] args)
{
Application.Init ();
win = new Window ("Gecko Tester");
win.DefaultSize = new Size (800, 600);
win.DeleteEvent += new DeleteEventHandler (Window_Delete);
VBox vbox = new VBox (false, 0);
win.Add (vbox);
HBox hbox = new HBox (false, 0);
vbox.PackStart (hbox, false, false, 0);
Toolbar toolbar = new Toolbar();
toolbar.ToolbarStyle = ToolbarStyle.Both;
toolbar.Orientation = Orientation.Horizontal;
hbox.PackStart(toolbar, false, false, 0);
toolbar.AppendItem("Go Back", "Go Back",
"Go Back", new SignalFunc (back_clicked_cb));
toolbar.AppendItem("Stop", "Stop",
"Stop", new SignalFunc (stop_clicked_cb));
toolbar.AppendItem("Forward", "Go Forward",
"Go Forward", new SignalFunc (forward_clicked_cb));
toolbar.AppendItem("Reload", "Reload",
"Reload", new SignalFunc (reload_clicked_cb));
editbox = new Entry();
editbox.Activated += new EventHandler(entry_act);
hbox.PackStart (editbox, true, true, 0);
moz = new EmbedWidget ("/tmp/csharp", "MonoTest");
vbox.PackStart (moz, true, true, 0);
// Ok, we have a LOT of GtkMozEmbed signals...
moz.Location += new EventHandler(moz_location_cb);
moz.Title += new EventHandler(moz_title_cb);
moz.NetStart += new EventHandler(moz_netstart_cb);
moz.NetStop += new EventHandler(moz_netstop_cb);
moz.DestroyBrowser += new EventHandler(moz_destroybrsr_cb);
//moz.LinkMessage += new EventHandler(moz_linkmessage_cb);
//moz.JsStatus += new EventHandler(moz_jsstatus_cb);
// Now the ones with args!
//moz.NewWindow2 += new NewWindow2Handler(moz_new_win_cb);
//moz.Progress += new ProgressHandler(moz_progress_cb);
//moz.ProgressAll += new ProgressAllHandler(moz_progressall_cb);
//moz.NetState += new NetStateHandler(moz_netstate_cb);
//moz.NetStateAll += new NetStateAllHandler(moz_netstateall_cb);
//moz.Visibility += new VisibilityHandler(moz_visibility_cb);
//moz.OpenUri += new OpenUriHandler(moz_openuri_cb);
//moz.SizeTo += new SizeToHandler(moz_sizeto_cb);
HBox hbox2 = new HBox (false, 0);
vbox.PackStart (hbox2, false, false, 0);
pbar = new ProgressBar();
hbox2.PackStart (pbar, false, false, 0);
Alignment salign = new Alignment (0, 0, 1, 1);
// usize here
sbar = new Statusbar();
salign.Add (sbar);
hbox2.PackStart(salign, true, true, 0);
win.ShowAll ();
moz.LoadUrl("http://www.go-mono.com");
Application.Run ();
return 0;
}
static void update_status_bar_text()
{
sbar.Pop(1);
if (tempMessage != null) {
sbar.Push(1, tempMessage);
} else {
if (loadPercent != 0) {}
}
}
static void moz_location_cb (object obj, EventArgs args)
{
string newLocation = null;
int newPosition = 0;
newLocation = moz.GeckoLocation;
if (newLocation != null) {
editbox.DeleteText(0, -1);
editbox.Text = newLocation;
}
}
static void moz_title_cb (object obj, EventArgs args)
{
string newTitle = moz.GeckoTitle;
win.Title = newTitle;
}
static void moz_netstart_cb (object obj, EventArgs args)
{
update_status_bar_text();
Console.Error.WriteLine("Starting to load...");
}
static void moz_netstop_cb (object obj, EventArgs args)
{
Console.Error.WriteLine("Done");
}
static void moz_destroybrsr_cb (object obj, EventArgs args)
{
win.Destroy();
}
static void moz_new_win_cb (object obj, NewWindow2Args args)
{
Console.Error.WriteLine("Mozilla threw a newwin.");
args.RetVal = new EmbedWidget();
}
static void entry_act (object obj, EventArgs args)
{
moz.LoadUrl(editbox.Text);
}
static void back_clicked_cb ()
{
moz.GoBack();
}
static void stop_clicked_cb ()
{
moz.StopLoad();
}
static void forward_clicked_cb ()
{
moz.GoForward();
}
static void reload_clicked_cb ()
{
moz.Reload(0);
}
static void Window_Delete (object obj, DeleteEventArgs args)
{
Application.Quit ();
args.RetVal = true;
}
}
}

17
sample/Makefile.am Normal file
Просмотреть файл

@ -0,0 +1,17 @@
all: GtkMozApp.exe
GtkMozApp.exe: GtkMozApp.cs
$(MCS) --unsafe -L $(GTKSHARP_PREFIX)/lib \
-L @top_srcdir@/gtkmozembed \
-r gtkmozembed-sharp.dll \
-r glib-sharp.dll -r gtk-sharp.dll -r gdk-sharp.dll \
-r System.Drawing \
-o GtkMozApp.exe GtkMozApp.cs
test: GtkMozApp.exe
cp @top_srcdir@/gtkmozembed/gtkmozembed-sharp.dll .
$(MONO) GtkMozApp.exe
clean:
rm -f GtkMozApp.exe
rm -f *.dll

3
sources/.cvsignore Normal file
Просмотреть файл

@ -0,0 +1,3 @@
Makefile.in
Makefile
gtkmozembed

Просмотреть файл

@ -0,0 +1,124 @@
<?xml version="1.0"?>
<metadata>
<rule>
<class name="GtkMozEmbed" />
<data>
<attribute target="class">
<name>name</name>
<value>EmbedWidget</value>
</attribute>
</data>
</rule>
<rule>
<class name="GtkMozEmbed">
<constructor>gtk_moz_embed_new</constructor>
</class>
<data>
<attribute target="method">
<name>hidden</name>
<value>1</value>
</attribute>
</data>
</rule>
<rule>
<class name="GtkMozEmbed">
<method>ReloadFlagsGetType</method>
</class>
<data>
<attribute target="method">
<name>hidden</name>
<value>1</value>
</attribute>
</data>
</rule>
<rule>
<class name="GtkMozEmbed">
<method>ProgressFlagsGetType</method>
</class>
<data>
<attribute target="method">
<name>hidden</name>
<value>1</value>
</attribute>
</data>
</rule>
<rule>
<class name="GtkMozEmbed">
<method>StatusEnumsGetType</method>
</class>
<data>
<attribute target="method">
<name>hidden</name>
<value>1</value>
</attribute>
</data>
</rule>
<rule>
<class name="GtkMozEmbed">
<method>ChromeFlagsGetType</method>
</class>
<data>
<attribute target="method">
<name>hidden</name>
<value>1</value>
</attribute>
</data>
</rule>
<rule>
<class name="GtkMozEmbed">
<method>GetTitle</method>
</class>
<data>
<attribute target="method">
<name>name</name>
<value>GetGeckoTitle</value>
</attribute>
</data>
</rule>
<rule>
<class name="GtkMozEmbed">
<method>GetLocation</method>
</class>
<data>
<attribute target="method">
<name>name</name>
<value>GetGeckoLocation</value>
</attribute>
</data>
</rule>
<rule>
<class name="GtkMozEmbed">
<method>GetJsStatus</method>
</class>
<data>
<attribute target="method">
<name>name</name>
<value>GetGeckoJsStatus</value>
</attribute>
</data>
</rule>
<rule>
<class name="GtkMozEmbed">
<method>GetLinkMessage</method>
</class>
<data>
<attribute target="method">
<name>name</name>
<value>GetGeckoLinkMessage</value>
</attribute>
</data>
</rule>
</metadata>

15
sources/Makefile.am Normal file
Просмотреть файл

@ -0,0 +1,15 @@
if MAINTAINER_MODE
api:
PERLLIB=$(GTKSHARP_PREFIX)/share/perl5 \
PATH=$(GTKSHARP_PREFIX)/bin:$$PATH \
gapi.pl gtkmozembed.sources @top_srcdir@/api
else
api:
endif
all: api