Instantly share code, notes, and snippets.

Embed
What would you like to do?
Using Webkit from GTK+/Vala
webkit-example
#!/bin/bash
gcc_dir=$(gcc -print-search-dirs | head -1 | cut -d ' ' -f 2)
if test "$1" = "-E"
then
ifile=""
for arg in "$@"
do
if [[ "$arg" = *.i ]]
then
ifile="$arg"
fi
done
"$gcc_dir/cc1" "$@"
r=$?
if test $r -eq 0 -a -n "$ifile"
then
sed -e 's/ConstOpaqueJSValue\*\*/const struct OpaqueJSValue\* const\*/g' -e 's/ConstOpaqueJSValue\*/const struct OpaqueJSValue\*/g' "$ifile" | sponge "$ifile"
fi
exit $?
else
exec "$gcc_dir/cc1" "$@"
fi
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
/* javascriptcore.vapi
*
* Copyright (C) 2010 Sam Thursfield <ssssam@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/* NOTE: this binding is quite inaccurate and you will have to a bunch of fixing for some functions.
*
* This is a basic interface to JSCore, a more friendly binding is Seed. See
* http://live.gnome.org/Seed for more information.
*/
// Retrieved from: http://gitorious.org/seed-vapi/seed-vapi/blobs/master/javascriptcore.vapi
[CCode (lower_case_cprefix = "js_", cheader_filename = "JavaScriptCore/JavaScript.h")]
namespace JSCore {
[Compact]
[CCode (cname = "void", free_function = "JSContextGroupRelease")]
public class ContextGroup {
[CCode (cname = "JSContextGroupCreate")]
public ContextGroup();
[CCode (cname = "JSContextCreateInGroup")]
public ContextGroup Retain ();
}
[Compact]
[CCode (cname = "const struct OpaqueJSContext")]
public class Context {
/* Script Evaluation */
[CCode (cname = "JSEvaluateScript")]
public unowned Value evaluate_script (String script,
Object? thisObject,
String? sourceURL,
int startingLineNumber,
out Value exception);
[CCode (cname = "JSCheckScriptSyntax")]
public bool check_script_syntax (JSCore.String script,
JSCore.String? sourceURL, int startingLineNumber,
out JSCore.Value exception);
[CCode (cname = "JSGarbageCollect")]
public void garbage_collect ();
[CCode (cname = "JSContextGetGlobalObject")]
public JSCore.Object get_global_object ();
[CCode (cname = "JSContextGetGroup")]
public ContextGroup get_group ();
}
/* Same as Context */
[Compact]
[CCode (cname = "void", free_function = "JSGlobalContextRelease")]
public class GlobalContext: Context {
[CCode (cname = "JSGlobalContextCreate")]
public GlobalContext (Class globalObjectClass);
[CCode (cname = "JSGlobalContextCreateInGroup")]
public GlobalContext.in_group (ContextGroup group, Class globalObjectClass);
[CCode (cname = "JSGlobalContextRetain")]
public GlobalContext retain ();
}
/* FIXME: not sure the significance of this. Vala strings are UTF-8 while it seems
* JSCore uses UCS-2 or UTF-16 ...
#if !defined(WIN32) && !defined(_WIN32) && !defined(__WINSCW__) \
&& !(defined(__CC_ARM) || defined(__ARMCC__))
typedef unsigned short JSChar;
#else
typedef wchar_t JSChar;
#endif
*/
[Compact]
[CCode (cname = "void", free_function = "JSStringRelease")]
public class String {
[CCode (cname = "JSStringCreateWithCharacters")]
public String.with_characters (ushort *chars, size_t num_chars);
[CCode (cname = "JSStringCreateWithUTF8CString")]
public String.with_utf8_c_string (string _string);
[CCode (cname = "JSStringRetain")]
public String retain ();
[CCode (cname = "JSStringGetLength")]
public size_t get_length ();
[CCode (cname = "JSStringGetCharactersPtr")]
public ushort *get_characters_ptr ();
[CCode (cname = "JSStringGetMaximumUTF8CStringSize")]
public size_t get_maximum_utf8_c_string_size ();
[CCode (cname = "JSStringGetUTF8CString")]
public size_t get_utf8_c_string (char *buffer, size_t buffer_size);
[CCode (cname = "JSStringIsEqual")]
public bool is_equal (String b);
[CCode (cname = "JSStringIsEqualToUTF8CString")]
public bool is_equal_to_utf8_c_string (string b);
}
[CCode (has_target = false)]
public delegate void ObjectInitializeCallback (Context ctx,
JSCore.Object object);
[CCode (has_target = false)]
public delegate void ObjectFinalizeCallback (JSCore.Object object);
[CCode (has_target = false)]
public delegate bool ObjectHasPropertyCallback (Context ctx,
JSCore.Object object,
JSCore.String propertyName);
[CCode (has_target = false)]
public delegate JSCore.Value ObjectGetPropertyCallback (Context ctx,
JSCore.Object object,
JSCore.String propertyName,
out JSCore.Value exception);
[CCode (has_target = false)]
public delegate bool ObjectSetPropertyCallback (Context ctx,
JSCore.Object object,
JSCore.String propertyName,
JSCore.Value _value,
out JSCore.Value exception);
[CCode (has_target = false)]
public delegate bool ObjectDeletePropertyCallback (Context ctx,
JSCore.Object object,
JSCore.String propertyName,
out JSCore.Value exception);
[CCode (has_target = false)]
public delegate void ObjectGetPropertyNamesCallback (Context ctx,
JSCore.Object object,
PropertyNameAccumulator propertyNames);
[CCode (has_target = false)]
public delegate JSCore.Value ObjectCallAsFunctionCallback (Context ctx,
JSCore.Object function,
JSCore.Object thisObject,
[CCode (array_length_pos=3.9, array_length_type="size_t")]
JSCore.ConstValue[] arguments,
out JSCore.Value exception);
[CCode (has_target = false)]
public delegate JSCore.Object ObjectCallAsConstructorCallback (Context ctx,
JSCore.Object constructor,
[CCode (array_length_pos=3.9, array_length_type="size_t")]
JSCore.Value[] arguments,
out JSCore.Value exception);
[CCode (has_target = false)]
public delegate bool ObjectHasInstanceCallback (Context ctx,
JSCore.Object constructor,
JSCore.Value possibleInstance,
out JSCore.Value exception);
[CCode (has_target = false)]
public delegate JSCore.Value ObjectConvertToTypeCallback (Context ctx,
JSCore.Object object,
JSCore.Type type,
out JSCore.Value exception);
public struct StaticValue {
public string name;
public ObjectGetPropertyCallback getProperty;
public ObjectSetPropertyCallback setProperty;
public PropertyAttribute attributes;
}
public struct StaticFunction {
public string name;
public ObjectCallAsFunctionCallback callAsFunction;
public PropertyAttribute attributes;
}
public struct ClassDefinition {
public int version;
public ClassAttribute attributes;
public string className;
public JSCore.Class parentClass;
public StaticValue *staticValues;
public StaticFunction *staticFunction;
public ObjectInitializeCallback initialize;
public ObjectFinalizeCallback finalize;
public ObjectHasPropertyCallback hasProperty;
public ObjectGetPropertyCallback getProperty;
public ObjectSetPropertyCallback setProperty;
public ObjectDeletePropertyCallback deleteProperty;
public ObjectGetPropertyNamesCallback getPropertyNames;
public ObjectCallAsFunctionCallback callAsFunction;
public ObjectCallAsConstructorCallback callAsConstructor;
public ObjectHasInstanceCallback hasInstance;
public ObjectConvertToTypeCallback convertToType;
}
[CCode (cname="kJSClassDefinitionEmpty")]
extern ClassDefinition ClassDefinitionEmpty;
//typedef unsigned JSClassAttributes;
[CCode (cprefix="kJSClassAttribute")]
[Flags]
public enum ClassAttribute {
None, NoAutomaticPrototype
}
[Compact]
[CCode (cname = "void", free_function = "JSClassRelease")]
public class Class {
[CCode (cname="JSClassCreate")]
public Class (ClassDefinition definition);
[CCode (cname="JSClassRetain")]
public Class retain (Class js_class);
}
//typedef unsigned JSPropertyAttributes;
[CCode (cprefix="kJSPropertyAttribute")]
[Flags]
public enum PropertyAttribute {
None, ReadOnly, DontEnum, DontDelete
}
[Compact]
[CCode (cname = "void *", free_function = "JSPropertyNameArrayRelease")]
public class PropertyNameArray {
[CCode (cname = "JSPropertyNameArrayRetain")]
public PropertyNameArray retain ();
[CCode (cname = "JSPropertyNameArrayGetCount")]
public size_t get_count ();
[CCode (cname = "JSPropertyNameArrayGetNameAtIndex")]
public JSCore.String get_name_at_index (size_t index);
}
[Compact]
[CCode (cname = "void")]
public class PropertyNameAccumulator {
[CCode (cname = "JSPropertyNameAccumulatorAddName")]
public void add_name (String property_name);
}
[CCode (cprefix="kJSType")]
public enum Type {
Undefined, Null, Boolean, Number, String, Object
}
[Compact]
/* FIXME: free_function causes a warning */
[CCode (cname = "const struct OpaqueJSValue", free_function = "")]
public class Value {
[CCode (cname = "JSValueMakeUndefined")]
public Value.undefined (Context ctx);
[CCode (cname = "JSValueMakeNull")]
public Value.null (Context ctx);
[CCode (cname = "JSValueMakeBoolean")]
public Value.boolean (Context ctx, bool boolean);
[CCode (cname = "JSValueMakeNumber")]
public Value.number (Context ctx, double number);
[CCode (cname = "JSValueMakeString")]
public Value.string (Context ctx, String js_string);
[CCode (cname = "JSValueGetType", instance_pos=1.1)]
public JSCore.Type get_type (Context ctx);
[CCode (cname = "JSValueIsUndefined", instance_pos=1.1)]
public bool is_undefined (Context ctx);
[CCode (cname = "JSValueIsNull", instance_pos=1.1)]
public bool is_null (Context ctx);
[CCode (cname = "JSValueIsBoolean", instance_pos=1.1)]
public bool is_boolean (Context ctx);
[CCode (cname = "JSValueIsNumber", instance_pos=1.1)]
public bool is_number (Context ctx);
[CCode (cname = "JSValueIsString", instance_pos=1.1)]
public bool is_string (Context ctx);
[CCode (cname = "JSValueIsObject", instance_pos=1.1)]
public bool is_object (Context ctx);
[CCode (cname = "JSValueIsNull", instance_pos=1.1)]
public bool is_object_of_class (Context ctx, Value js_value, Class js_class);
[CCode (cname = "JSValueIsEqual", instance_pos=1.1)]
public bool is_equal (Context ctx, Value b, Value *exception);
[CCode (cname = "JSValueIsStrictEqual", instance_pos=1.1)]
public bool is_strict_equal (Context ctx, Value b);
[CCode (cname = "JSValueIsInstanceOfConstructor", instance_pos=1.1)]
public bool is_instance_of_constructor (Context ctx, Value js_value, Object constructor,
Value *exception);
[CCode (cname = "JSValueToBoolean", instance_pos=1.1)]
public bool to_boolean (Context ctx);
[CCode (cname = "JSValueToNumber", instance_pos=1.1)]
public double to_number (Context ctx, Value *exception);
[CCode (cname = "JSValueToStringCopy", instance_pos=1.1)]
public JSCore.String to_string_copy (Context ctx, Value *exception);
[CCode (cname = "JSValueToObject", instance_pos=1.1)]
public Object to_object (Context ctx, Value *exception);
[CCode (cname = "JSValueProtect", instance_pos=1.1)]
public void protect (Context ctx);
[CCode (cname = "JSValueUnprotect", instance_pos=1.1)]
public void unprotect (Context ctx);
}
[Compact]
[CCode (cname = "ConstOpaqueJSValue", free_function = "")]
public class ConstValue : JSCore.Value
{
}
[Compact]
/* FIXME: causes a warning */
[CCode (cname = "struct OpaqueJSValue", free_function = "")]
public class Object: JSCore.Value {
[CCode (cname = "JSObjectMake")]
public Object (Context ctx, Class js_class, void *data);
[CCode (cname = "JSObjectMakeFunctionWithCallback")]
public Object.function_with_callback (Context ctx, JSCore.String name,
ObjectCallAsFunctionCallback callAsFunction);
[CCode (cname = "JSObjectMakeConstructor")]
public Object.constructor (Context ctx, JSCore.Class js_class,
ObjectCallAsConstructorCallback callAsConstructor);
[CCode (cname = "JSObjectMakeArray")]
public Object.array (Context ctx, size_t argument_count,
JSCore.Value[] arguments,
out JSCore.Value exception);
[CCode (cname = "JSObjectMakeDate")]
public Object.date (Context ctx, size_t argument_count,
JSCore.Value[] arguments,
out JSCore.Value exception);
[CCode (cname = "JSObjectMakeError")]
public Object.error (Context ctx, size_t argument_count,
JSCore.Value[] arguments,
out JSCore.Value exception);
[CCode (cname = "JSObjectMakeRegExp")]
public Object.regexp (Context ctx, size_t argument_count,
JSCore.Value[] arguments,
out JSCore.Value exception);
[CCode (cname = "JSObjectMakeFunction")]
public Object.function (Context ctx, JSCore.String name,
uint parameter_count, JSCore.String[] parameter_names,
JSCore.String body, JSCore.String source_url,
int starting_line_number, out JSCore.Value exception);
[CCode (cname = "JSObjectGetPrototype", instance_pos=1.1)]
public JSCore.Value get_prototype (Context ctx);
[CCode (cname = "JSObjectSetPrototype", instance_pos=1.1)]
public JSCore.Value set_prototype (Context ctx, JSCore.Value _value);
[CCode (cname = "JSObjectHasProperty", instance_pos=1.1)]
public bool has_property (Context ctx, JSCore.String propertyName);
[CCode (cname = "JSObjectGetProperty", instance_pos=1.1)]
public JSCore.Value get_property (Context ctx, JSCore.String propertyName,
out JSCore.Value exception);
[CCode (cname = "JSObjectSetProperty", instance_pos=1.1)]
public void set_property (Context ctx, JSCore.String property_name,
JSCore.Value _value, PropertyAttribute attributes,
out JSCore.Value exception);
[CCode (cname = "JSObjectDeleteProperty", instance_pos=1.1)]
public bool delete_property (Context ctx, JSCore.String property_name,
out JSCore.Value exception);
[CCode (cname = "JSObjectGetPropertyAtIndex", instance_pos=1.1)]
public JSCore.Value get_property_at_index (Context ctx, uint property_index,
out JSCore.Value exception);
[CCode (cname = "JSObjectSetPropertyAtIndex", instance_pos=1.1)]
public void set_property_at_index (Context ctx, uint property_index,
JSCore.Value _value,
out JSCore.Value exception);
[CCode (cname = "JSObjectGetPrivate")]
public void *get_private ();
[CCode (cname = "JSObjectSetPrivate")]
public bool set_private (void *data);
[CCode (cname = "JSObjectIsFunction", instance_pos=1.1)]
public bool is_function (Context ctx);
[CCode (cname = "JSObjectCallAsFunction", instance_pos=1.1)]
public unowned JSCore.Value call_as_function (Context ctx,
JSCore.Object? this_object,
[CCode (array_length_pos=2.9, array_length_type="size_t")]
JSCore.Value[]? arguments,
out JSCore.Value exception);
[CCode (cname = "JSObjectIsConstructor", instance_pos=1.1)]
public bool is_constructor (Context ctx);
[CCode (cname = "JSObjectCallAsConstructor", instance_pos=1.1)]
public unowned JSCore.Object call_as_constructor (Context ctx,
[CCode (array_length_pos=1.9, array_length_type="size_t")]
JSCore.Value[]? arguments,
out JSCore.Value exception);
[CCode (cname = "JSObjectCopyPropertyNames", instance_pos=1.1)]
public unowned PropertyNameArray copy_property_names (Context ctx);
/* Handy for debugging */
public void dump (JSCore.Context ctx, GLib.FileStream stream) {
JSCore.String js_string = this.to_string_copy (ctx, null);
char *c_string = new char[1024];
js_string.get_utf8_c_string (c_string, 1023);
unowned PropertyNameArray property_names = this.copy_property_names (ctx);
stream.printf ("Object: %s, %i properties\n", (string)c_string, (int)property_names.get_count());
delete c_string;
for (var i=0; i<property_names.get_count(); i++) {
js_string = property_names.get_name_at_index (i);
c_string = new char[1024];
js_string.get_utf8_c_string (c_string, 1023);
stream.printf ("\t%i: %s\n", i, (string)c_string);
delete c_string;
}
}
}
}
--- packages.orig/javascriptcore.vapi 2011-02-10 06:49:30.000000000 +0000
+++ packages/javascriptcore.vapi 2012-11-10 08:06:30.000000000 +0000
@@ -23,6 +23,8 @@
* http://live.gnome.org/Seed for more information.
*/
+// Retrieved from: http://gitorious.org/seed-vapi/seed-vapi/blobs/master/javascriptcore.vapi
+
[CCode (lower_case_cprefix = "js_", cheader_filename = "JavaScriptCore/JavaScript.h")]
namespace JSCore {
[Compact]
@@ -37,7 +39,7 @@
[Compact]
- [CCode (cname = "void")]
+ [CCode (cname = "const struct OpaqueJSContext")]
public class Context {
/* Script Evaluation */
[CCode (cname = "JSEvaluateScript")]
@@ -161,7 +163,7 @@
JSCore.Object function,
JSCore.Object thisObject,
[CCode (array_length_pos=3.9, array_length_type="size_t")]
- JSCore.Value[] arguments,
+ JSCore.ConstValue[] arguments,
out JSCore.Value exception);
[CCode (has_target = false)]
@@ -275,7 +277,7 @@
[Compact]
/* FIXME: free_function causes a warning */
- [CCode (cname = "void", free_function = "")]
+ [CCode (cname = "const struct OpaqueJSValue", free_function = "")]
public class Value {
[CCode (cname = "JSValueMakeUndefined")]
public Value.undefined (Context ctx);
@@ -330,7 +332,7 @@
public bool to_boolean (Context ctx);
[CCode (cname = "JSValueToNumber", instance_pos=1.1)]
- public bool to_number (Context ctx, Value *exception);
+ public double to_number (Context ctx, Value *exception);
[CCode (cname = "JSValueToStringCopy", instance_pos=1.1)]
public JSCore.String to_string_copy (Context ctx, Value *exception);
@@ -345,10 +347,15 @@
public void unprotect (Context ctx);
}
+ [Compact]
+ [CCode (cname = "ConstOpaqueJSValue", free_function = "")]
+ public class ConstValue : JSCore.Value
+ {
+ }
[Compact]
/* FIXME: causes a warning */
- [CCode (cname = "void", free_function = "")]
+ [CCode (cname = "struct OpaqueJSValue", free_function = "")]
public class Object: JSCore.Value {
[CCode (cname = "JSObjectMake")]
public Object (Context ctx, Class js_class, void *data);
/*----------
Copyright 2012 David Halls
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
----------*/
using Gtk;
class WebkitExample.Main : GLib.Object
{
public static string prog_name { get; private set; }
static string url;
static bool fullscreen;
static bool hidecursor;
static bool debug;
const OptionEntry[] options =
{
{ "url", 'u', 0, OptionArg.STRING, out url, "page to load", "URL" },
{ "fullscreen", 'f', 0, OptionArg.NONE, out fullscreen, "run in fullscreen mode", null },
{ "hidecursor", 'h', 0, OptionArg.NONE, out hidecursor, "hide mouse cursor", null },
{ "debug", 'd', 0, OptionArg.NONE, out debug, "enable web developer tools", null },
{ null }
};
public static int main(string[] args)
{
prog_name = args[0];
OptionContext context = new OptionContext("- Webkit example");
context.add_main_entries(options, null);
try
{
url = "file://" + Path.get_dirname(FileUtils.read_link("/proc/self/exe")) + "/test.html";
}
catch (FileError e)
{
stderr.printf("%s\n", e.message);
return 1;
}
fullscreen = false;
hidecursor = false;
debug = false;
try
{
context.parse(ref args);
}
catch (OptionError e)
{
stderr.printf("%s: failed to parse arguments: %s\n", prog_name, e.message);
return 1;
}
Gtk.init(ref args);
MainWindow w = new MainWindow(hidecursor, debug);
if (fullscreen)
{
w.fullscreen();
}
w.show_all();
w.load(url);
Gtk.main();
return 0;
}
}
/*----------
Copyright 2012 David Halls
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
----------*/
using Gtk;
using WebKit;
using Soup;
public class WebkitExample.MainWindow : Window
{
private const string TITLE = "Webkit Example";
private WebView webview;
private Gdk.Cursor cursor;
private static string data;
public MainWindow (bool hidecursor, bool debug)
{
title = TITLE;
set_default_size(800, 600);
destroy.connect(Gtk.main_quit);
if (hidecursor)
{
cursor = new Gdk.Cursor(Gdk.CursorType.BLANK_CURSOR);
}
webview = new WebView();
WebSettings settings = webview.get_settings();
settings.enable_plugins = true;
settings.enable_scripts = true;
settings.enable_universal_access_from_file_uris = true;
if (debug)
{
settings.enable_developer_extras = true;
webview.web_inspector.inspect_web_view.connect(getInspectorView);
}
webview.window_object_cleared.connect(addApp);
get_default_session().add_feature_by_type(typeof(CookieJar));
ScrolledWindow sWindow = new ScrolledWindow(null, null);
sWindow.set_policy(PolicyType.AUTOMATIC, PolicyType.AUTOMATIC);
sWindow.add(webview);
add(sWindow);
}
public unowned WebView getInspectorView()
{
Window iWindow = new Window();
WebView iWebview = new WebView();
ScrolledWindow sWindow = new ScrolledWindow(null, null);
sWindow.set_policy(PolicyType.AUTOMATIC, PolicyType.AUTOMATIC);
sWindow.add(iWebview);
iWindow.add(sWindow);
iWindow.title = title + " (Web Inspector)";
int width, height;
get_size(out width, out height);
iWindow.set_default_size(width, height);
iWindow.delete_event.connect(() =>
{
webview.web_inspector.close();
return false;
});
iWindow.show_all();
unowned WebView r = iWebview;
return r;
}
private void hide_cursor()
{
if (cursor != null)
{
get_window().cursor = cursor;
webview.get_window().cursor = cursor;
}
}
public override bool motion_notify_event(Gdk.EventMotion event)
{
hide_cursor();
if (base.motion_notify_event == null)
{
return false;
}
else
{
return base.motion_notify_event(event);
}
}
static construct
{
try
{
new Thread<void*>(null, () =>
{
StringBuilder sb = new StringBuilder();
char buffer[1024];
while (!stdin.eof())
{
string s = stdin.gets(buffer);
if (s != null)
{
sb.append(s);
}
}
lock (data)
{
data = sb.str;
}
return null;
});
}
catch (ThreadError e)
{
stderr.printf("%s: failed to create data reader thread: %s\n", Main.prog_name, e.message);
Gtk.main_quit();
}
}
public static JSCore.Value getData(JSCore.Context ctx,
JSCore.Object function,
JSCore.Object thisObject,
JSCore.ConstValue[] arguments,
out JSCore.Value exception)
{
exception = null;
lock (data)
{
return new JSCore.Value.string(ctx, new JSCore.String.with_utf8_c_string(data));
}
}
public void addApp(WebFrame frame, void *context, void *window_object)
{
unowned JSCore.Context ctx = (JSCore.Context) context;
JSCore.Object global = ctx.get_global_object();
JSCore.String name = new JSCore.String.with_utf8_c_string("app_getData");
JSCore.Value ex;
global.set_property(ctx,
name,
new JSCore.Object.function_with_callback(ctx, name, getData),
JSCore.PropertyAttribute.ReadOnly,
out ex);
name = new JSCore.String.with_utf8_c_string("app_exit");
global.set_property(ctx,
name,
new JSCore.Object.function_with_callback(ctx, name, exit),
JSCore.PropertyAttribute.ReadOnly,
out ex);
}
public static JSCore.Value exit(JSCore.Context ctx,
JSCore.Object function,
JSCore.Object thisObject,
JSCore.ConstValue[] arguments,
out JSCore.Value exception)
{
exception = null;
JSCore.String js_string = arguments[0].to_string_copy(ctx, null);
size_t max_size = js_string.get_maximum_utf8_c_string_size();
char *c_string = new char[max_size];
js_string.get_utf8_c_string(c_string, max_size);
stdout.printf("%s\n", (string) c_string);
Gtk.main_quit();
return new JSCore.Value.null(ctx);
}
public void load(string url)
{
webview.open(url);
hide_cursor();
}
}
all: webkit-example
webkit-example: *.vala *.vapi
valac-0.18 --target-glib 2.32 -X -no-integrated-cpp -X -B./ --pkg webkitgtk-3.0 --pkg javascriptcore --vapidir=. -o $@ *.vala
clean:
rm -f webkit-example
<html>
<head>
<script type="text/javascript">
function check_data()
{
var data = app_getData();
if (data === "")
{
setTimeout(check_data, 1000);
}
else
{
document.getElementById('data').innerText = data;
}
}
</script>
</head>
<body onload='check_data()'>
<p>
data: <span id="data"></span>
</p>
<input type="button" value="Exit" onclick="app_exit('goodbye from Javascript')">
</body>
</html>
atk
gio-2.0
cairo
pango
gdk-pixbuf-2.0
gdk-3.0
gtk+-3.0
libsoup-2.4
/* webkit-1.0.vapi generated by vapigen, do not modify. */
[CCode (lower_case_cprefix = "webkit_")]
namespace WebKit {
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMAttr : WebKit.DOMNode, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMAttr ();
public bool get_is_id ();
public unowned string get_name ();
public unowned WebKit.DOMElement get_owner_element ();
public bool get_specified ();
public unowned string get_value ();
public void set_value (string value) throws GLib.Error;
public bool is_id { get; }
public string name { get; }
public WebKit.DOMElement owner_element { get; }
public bool specified { get; }
public string value { get; set; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMBarInfo : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMBarInfo ();
public bool get_visible ();
public bool visible { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMBlob : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMBlob ();
public uint64 get_size ();
public unowned WebKit.DOMBlob slice (int64 start, int64 end, string content_type);
public unowned WebKit.DOMBlob webkit_slice (int64 start, int64 end, string content_type);
public uint64 size { get; }
[NoAccessorMethod]
public string type { owned get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMCDATASection : WebKit.DOMText, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMCDATASection ();
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMCSSRule : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMCSSRule ();
[CCode (cname = "webkit_dom_css_rule_get_css_text")]
public unowned string get_css_text ();
[CCode (cname = "webkit_dom_css_rule_get_parent_rule")]
public unowned WebKit.DOMCSSRule get_parent_rule ();
[CCode (cname = "webkit_dom_css_rule_get_parent_style_sheet")]
public unowned WebKit.DOMCSSStyleSheet get_parent_style_sheet ();
[CCode (cname = "webkit_dom_css_rule_set_css_text")]
public void set_css_text (string value) throws GLib.Error;
public string css_text { get; set; }
public WebKit.DOMCSSRule parent_rule { get; }
public WebKit.DOMCSSStyleSheet parent_style_sheet { get; }
[NoAccessorMethod]
public uint type { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMCSSRuleList : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMCSSRuleList ();
[CCode (cname = "webkit_dom_css_rule_list_get_length")]
public ulong get_length ();
[CCode (cname = "webkit_dom_css_rule_list_item")]
public unowned WebKit.DOMCSSRule item (ulong index);
public ulong length { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMCSSStyleDeclaration : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMCSSStyleDeclaration ();
[CCode (cname = "webkit_dom_css_style_declaration_get_css_text")]
public unowned string get_css_text ();
[CCode (cname = "webkit_dom_css_style_declaration_get_length")]
public ulong get_length ();
[CCode (cname = "webkit_dom_css_style_declaration_get_parent_rule")]
public unowned WebKit.DOMCSSRule get_parent_rule ();
[CCode (cname = "webkit_dom_css_style_declaration_get_property_css_value")]
public unowned WebKit.DOMCSSValue get_property_css_value (string property_name);
[CCode (cname = "webkit_dom_css_style_declaration_get_property_priority")]
public unowned string get_property_priority (string property_name);
[CCode (cname = "webkit_dom_css_style_declaration_get_property_shorthand")]
public unowned string get_property_shorthand (string property_name);
[CCode (cname = "webkit_dom_css_style_declaration_get_property_value")]
public unowned string get_property_value (string property_name);
[CCode (cname = "webkit_dom_css_style_declaration_is_property_implicit")]
public bool is_property_implicit (string property_name);
[CCode (cname = "webkit_dom_css_style_declaration_item")]
public unowned string item (ulong index);
[CCode (cname = "webkit_dom_css_style_declaration_remove_property")]
public unowned string remove_property (string property_name) throws GLib.Error;
[CCode (cname = "webkit_dom_css_style_declaration_set_css_text")]
public void set_css_text (string value) throws GLib.Error;
[CCode (cname = "webkit_dom_css_style_declaration_set_property")]
public void set_property (string property_name, string value, string priority) throws GLib.Error;
public string css_text { get; set; }
public ulong length { get; }
public WebKit.DOMCSSRule parent_rule { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMCSSStyleSheet : WebKit.DOMStyleSheet {
[CCode (has_construct_function = false)]
protected DOMCSSStyleSheet ();
[CCode (cname = "webkit_dom_css_style_sheet_add_rule")]
public long add_rule (string selector, string style, ulong index) throws GLib.Error;
[CCode (cname = "webkit_dom_css_style_sheet_delete_rule")]
public void delete_rule (ulong index) throws GLib.Error;
[CCode (cname = "webkit_dom_css_style_sheet_get_css_rules")]
public unowned WebKit.DOMCSSRuleList get_css_rules ();
[CCode (cname = "webkit_dom_css_style_sheet_get_owner_rule")]
public unowned WebKit.DOMCSSRule get_owner_rule ();
[CCode (cname = "webkit_dom_css_style_sheet_get_rules")]
public unowned WebKit.DOMCSSRuleList get_rules ();
[CCode (cname = "webkit_dom_css_style_sheet_insert_rule")]
public ulong insert_rule (string rule, ulong index) throws GLib.Error;
[CCode (cname = "webkit_dom_css_style_sheet_remove_rule")]
public void remove_rule (ulong index) throws GLib.Error;
public WebKit.DOMCSSRuleList css_rules { get; }
public WebKit.DOMCSSRule owner_rule { get; }
public WebKit.DOMCSSRuleList rules { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMCSSValue : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMCSSValue ();
[CCode (cname = "webkit_dom_css_value_get_css_text")]
public unowned string get_css_text ();
[CCode (cname = "webkit_dom_css_value_get_css_value_type")]
public ushort get_css_value_type ();
[CCode (cname = "webkit_dom_css_value_set_css_text")]
public void set_css_text (string value) throws GLib.Error;
public string css_text { get; set; }
public uint css_value_type { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMCharacterData : WebKit.DOMNode, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMCharacterData ();
public void append_data (string data) throws GLib.Error;
public void delete_data (ulong offset, ulong length) throws GLib.Error;
public unowned string get_data ();
public ulong get_length ();
public void insert_data (ulong offset, string data) throws GLib.Error;
public void replace_data (ulong offset, ulong length, string data) throws GLib.Error;
public void set_data (string value) throws GLib.Error;
public unowned string substring_data (ulong offset, ulong length) throws GLib.Error;
public string data { get; set; }
public ulong length { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMComment : WebKit.DOMCharacterData, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMComment ();
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMConsole : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMConsole ();
public unowned WebKit.DOMMemoryInfo get_memory ();
public void group_end ();
public void time (string title);
public WebKit.DOMMemoryInfo memory { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
[Compact]
public class DOMCustom {
}
[CCode (cheader_filename = "webkit/webkit.h")]
[Compact]
public class DOMCustomClass {
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMDOMApplicationCache : WebKit.DOMObject, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMDOMApplicationCache ();
[CCode (cname = "webkit_dom_dom_application_cache_get_status")]
public ushort get_status ();
[CCode (cname = "webkit_dom_dom_application_cache_swap_cache")]
public void swap_cache () throws GLib.Error;
[CCode (cname = "webkit_dom_dom_application_cache_update")]
public void update () throws GLib.Error;
public uint status { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMDOMImplementation : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMDOMImplementation ();
[CCode (cname = "webkit_dom_dom_implementation_create_css_style_sheet")]
public unowned WebKit.DOMCSSStyleSheet create_css_style_sheet (string title, string media) throws GLib.Error;
[CCode (cname = "webkit_dom_dom_implementation_create_document")]
public unowned WebKit.DOMDocument create_document (string namespace_uri, string qualified_name, WebKit.DOMDocumentType doctype) throws GLib.Error;
[CCode (cname = "webkit_dom_dom_implementation_create_document_type")]
public unowned WebKit.DOMDocumentType create_document_type (string qualified_name, string public_id, string system_id) throws GLib.Error;
[CCode (cname = "webkit_dom_dom_implementation_create_html_document")]
public unowned WebKit.DOMHTMLDocument create_html_document (string title);
[CCode (cname = "webkit_dom_dom_implementation_has_feature")]
public bool has_feature (string feature, string version);
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMDOMMimeType : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMDOMMimeType ();
[CCode (cname = "webkit_dom_dom_mime_type_get_description")]
public unowned string get_description ();
[CCode (cname = "webkit_dom_dom_mime_type_get_enabled_plugin")]
public unowned WebKit.DOMDOMPlugin get_enabled_plugin ();
[CCode (cname = "webkit_dom_dom_mime_type_get_suffixes")]
public unowned string get_suffixes ();
public string description { get; }
public WebKit.DOMDOMPlugin enabled_plugin { get; }
public string suffixes { get; }
[NoAccessorMethod]
public string type { owned get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMDOMMimeTypeArray : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMDOMMimeTypeArray ();
[CCode (cname = "webkit_dom_dom_mime_type_array_get_length")]
public ulong get_length ();
[CCode (cname = "webkit_dom_dom_mime_type_array_item")]
public unowned WebKit.DOMDOMMimeType item (ulong index);
[CCode (cname = "webkit_dom_dom_mime_type_array_named_item")]
public unowned WebKit.DOMDOMMimeType named_item (string name);
public ulong length { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMDOMPlugin : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMDOMPlugin ();
[CCode (cname = "webkit_dom_dom_plugin_get_description")]
public unowned string get_description ();
[CCode (cname = "webkit_dom_dom_plugin_get_filename")]
public unowned string get_filename ();
[CCode (cname = "webkit_dom_dom_plugin_get_length")]
public ulong get_length ();
[CCode (cname = "webkit_dom_dom_plugin_get_name")]
public unowned string get_name ();
[CCode (cname = "webkit_dom_dom_plugin_item")]
public unowned WebKit.DOMDOMMimeType item (ulong index);
[CCode (cname = "webkit_dom_dom_plugin_named_item")]
public unowned WebKit.DOMDOMMimeType named_item (string name);
public string description { get; }
public string filename { get; }
public ulong length { get; }
public string name { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMDOMPluginArray : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMDOMPluginArray ();
[CCode (cname = "webkit_dom_dom_plugin_array_get_length")]
public ulong get_length ();
[CCode (cname = "webkit_dom_dom_plugin_array_item")]
public unowned WebKit.DOMDOMPlugin item (ulong index);
[CCode (cname = "webkit_dom_dom_plugin_array_named_item")]
public unowned WebKit.DOMDOMPlugin named_item (string name);
[CCode (cname = "webkit_dom_dom_plugin_array_refresh")]
public void refresh (bool reload);
public ulong length { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMDOMSelection : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMDOMSelection ();
[CCode (cname = "webkit_dom_dom_selection_add_range")]
public void add_range (WebKit.DOMRange range);
[CCode (cname = "webkit_dom_dom_selection_collapse")]
public void collapse (WebKit.DOMNode node, long index) throws GLib.Error;
[CCode (cname = "webkit_dom_dom_selection_collapse_to_end")]
public void collapse_to_end () throws GLib.Error;
[CCode (cname = "webkit_dom_dom_selection_collapse_to_start")]
public void collapse_to_start () throws GLib.Error;
[CCode (cname = "webkit_dom_dom_selection_contains_node")]
public bool contains_node (WebKit.DOMNode node, bool allow_partial);
[CCode (cname = "webkit_dom_dom_selection_delete_from_document")]
public void delete_from_document ();
[CCode (cname = "webkit_dom_dom_selection_empty")]
public void empty ();
[CCode (cname = "webkit_dom_dom_selection_extend")]
public void extend (WebKit.DOMNode node, long offset) throws GLib.Error;
[CCode (cname = "webkit_dom_dom_selection_get_anchor_node")]
public unowned WebKit.DOMNode get_anchor_node ();
[CCode (cname = "webkit_dom_dom_selection_get_anchor_offset")]
public long get_anchor_offset ();
[CCode (cname = "webkit_dom_dom_selection_get_base_node")]
public unowned WebKit.DOMNode get_base_node ();
[CCode (cname = "webkit_dom_dom_selection_get_base_offset")]
public long get_base_offset ();
[CCode (cname = "webkit_dom_dom_selection_get_extent_node")]
public unowned WebKit.DOMNode get_extent_node ();
[CCode (cname = "webkit_dom_dom_selection_get_extent_offset")]
public long get_extent_offset ();
[CCode (cname = "webkit_dom_dom_selection_get_focus_node")]
public unowned WebKit.DOMNode get_focus_node ();
[CCode (cname = "webkit_dom_dom_selection_get_focus_offset")]
public long get_focus_offset ();
[CCode (cname = "webkit_dom_dom_selection_get_is_collapsed")]
public bool get_is_collapsed ();
[CCode (cname = "webkit_dom_dom_selection_get_range_at")]
public unowned WebKit.DOMRange get_range_at (long index) throws GLib.Error;
[CCode (cname = "webkit_dom_dom_selection_get_range_count")]
public long get_range_count ();
[CCode (cname = "webkit_dom_dom_selection_modify")]
public void modify (string alter, string direction, string granularity);
[CCode (cname = "webkit_dom_dom_selection_remove_all_ranges")]
public void remove_all_ranges ();
[CCode (cname = "webkit_dom_dom_selection_select_all_children")]
public void select_all_children (WebKit.DOMNode node) throws GLib.Error;
[CCode (cname = "webkit_dom_dom_selection_set_base_and_extent")]
public void set_base_and_extent (WebKit.DOMNode base_node, long base_offset, WebKit.DOMNode extent_node, long extent_offset) throws GLib.Error;
[CCode (cname = "webkit_dom_dom_selection_set_position")]
public void set_position (WebKit.DOMNode node, long offset) throws GLib.Error;
public WebKit.DOMNode anchor_node { get; }
public long anchor_offset { get; }
public WebKit.DOMNode base_node { get; }
public long base_offset { get; }
public WebKit.DOMNode extent_node { get; }
public long extent_offset { get; }
public WebKit.DOMNode focus_node { get; }
public long focus_offset { get; }
public bool is_collapsed { get; }
public long range_count { get; }
[NoAccessorMethod]
public string type { owned get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMDOMSettableTokenList : WebKit.DOMDOMTokenList {
[CCode (has_construct_function = false)]
protected DOMDOMSettableTokenList ();
[CCode (cname = "webkit_dom_dom_settable_token_list_get_value")]
public unowned string get_value ();
[CCode (cname = "webkit_dom_dom_settable_token_list_set_value")]
public void set_value (string value);
public string value { get; set; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMDOMStringList : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMDOMStringList ();
[CCode (cname = "webkit_dom_dom_string_list_contains")]
public bool contains (string str);
[CCode (cname = "webkit_dom_dom_string_list_get_length")]
public ulong get_length ();
[CCode (cname = "webkit_dom_dom_string_list_item")]
public unowned string item (ulong index);
public ulong length { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMDOMStringMap : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMDOMStringMap ();
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMDOMTokenList : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMDOMTokenList ();
[CCode (cname = "webkit_dom_dom_token_list_add")]
public void add (string token) throws GLib.Error;
[CCode (cname = "webkit_dom_dom_token_list_contains")]
public bool contains (string token) throws GLib.Error;
[CCode (cname = "webkit_dom_dom_token_list_get_length")]
public ulong get_length ();
[CCode (cname = "webkit_dom_dom_token_list_item")]
public unowned string item (ulong index);
[CCode (cname = "webkit_dom_dom_token_list_remove")]
public void remove (string token) throws GLib.Error;
[CCode (cname = "webkit_dom_dom_token_list_toggle")]
public bool toggle (string token) throws GLib.Error;
public ulong length { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMDOMWindow : WebKit.DOMObject, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMDOMWindow ();
[CCode (cname = "webkit_dom_dom_window_alert")]
public void alert (string message);
[CCode (cname = "webkit_dom_dom_window_atob")]
public unowned string atob (string str) throws GLib.Error;
[CCode (cname = "webkit_dom_dom_window_blur")]
public void blur ();
[CCode (cname = "webkit_dom_dom_window_btoa")]
public unowned string btoa (string str) throws GLib.Error;
[CCode (cname = "webkit_dom_dom_window_capture_events")]
public void capture_events ();
[CCode (cname = "webkit_dom_dom_window_clear_interval")]
public void clear_interval (long handle);
[CCode (cname = "webkit_dom_dom_window_clear_timeout")]
public void clear_timeout (long handle);
[CCode (cname = "webkit_dom_dom_window_close")]
public void close ();
[CCode (cname = "webkit_dom_dom_window_confirm")]
public bool confirm (string message);
[CCode (cname = "webkit_dom_dom_window_find")]
public bool find (string str, bool case_sensitive, bool backwards, bool wrap, bool whole_word, bool search_in_frames, bool show_dialog);
[CCode (cname = "webkit_dom_dom_window_focus")]
public void focus ();
[CCode (cname = "webkit_dom_dom_window_get_application_cache")]
public unowned WebKit.DOMDOMApplicationCache get_application_cache ();
[CCode (cname = "webkit_dom_dom_window_get_client_information")]
public unowned WebKit.DOMNavigator get_client_information ();
[CCode (cname = "webkit_dom_dom_window_get_closed")]
public bool get_closed ();
[CCode (cname = "webkit_dom_dom_window_get_computed_style")]
public unowned WebKit.DOMCSSStyleDeclaration get_computed_style (WebKit.DOMElement element, string pseudo_element);
[CCode (cname = "webkit_dom_dom_window_get_console")]
public unowned WebKit.DOMConsole get_console ();
[CCode (cname = "webkit_dom_dom_window_get_default_status")]
public unowned string get_default_status ();
[CCode (cname = "webkit_dom_dom_window_get_device_pixel_ratio")]
public double get_device_pixel_ratio ();
[CCode (cname = "webkit_dom_dom_window_get_document")]
public unowned WebKit.DOMDocument get_document ();
[CCode (cname = "webkit_dom_dom_window_get_frame_element")]
public unowned WebKit.DOMElement get_frame_element ();
[CCode (cname = "webkit_dom_dom_window_get_frames")]
public unowned WebKit.DOMDOMWindow get_frames ();
[CCode (cname = "webkit_dom_dom_window_get_history")]
public unowned WebKit.DOMHistory get_history ();
[CCode (cname = "webkit_dom_dom_window_get_inner_height")]
public long get_inner_height ();
[CCode (cname = "webkit_dom_dom_window_get_inner_width")]
public long get_inner_width ();
[CCode (cname = "webkit_dom_dom_window_get_length")]
public ulong get_length ();
[CCode (cname = "webkit_dom_dom_window_get_local_storage")]
public unowned WebKit.DOMStorage get_local_storage () throws GLib.Error;
[CCode (cname = "webkit_dom_dom_window_get_locationbar")]
public unowned WebKit.DOMBarInfo get_locationbar ();
[CCode (cname = "webkit_dom_dom_window_get_menubar")]
public unowned WebKit.DOMBarInfo get_menubar ();
[CCode (cname = "webkit_dom_dom_window_get_name")]
public unowned string get_name ();
[CCode (cname = "webkit_dom_dom_window_get_navigator")]
public unowned WebKit.DOMNavigator get_navigator ();
[CCode (cname = "webkit_dom_dom_window_get_offscreen_buffering")]
public bool get_offscreen_buffering ();
[CCode (cname = "webkit_dom_dom_window_get_opener")]
public unowned WebKit.DOMDOMWindow get_opener ();
[CCode (cname = "webkit_dom_dom_window_get_outer_height")]
public long get_outer_height ();
[CCode (cname = "webkit_dom_dom_window_get_outer_width")]
public long get_outer_width ();
[CCode (cname = "webkit_dom_dom_window_get_page_x_offset")]
public long get_page_x_offset ();
[CCode (cname = "webkit_dom_dom_window_get_page_y_offset")]
public long get_page_y_offset ();
[CCode (cname = "webkit_dom_dom_window_get_parent")]
public unowned WebKit.DOMDOMWindow get_parent ();
[CCode (cname = "webkit_dom_dom_window_get_personalbar")]
public unowned WebKit.DOMBarInfo get_personalbar ();
[CCode (cname = "webkit_dom_dom_window_get_screen")]
public unowned WebKit.DOMScreen get_screen ();
[CCode (cname = "webkit_dom_dom_window_get_screen_left")]
public long get_screen_left ();
[CCode (cname = "webkit_dom_dom_window_get_screen_top")]
public long get_screen_top ();
[CCode (cname = "webkit_dom_dom_window_get_screen_x")]
public long get_screen_x ();
[CCode (cname = "webkit_dom_dom_window_get_screen_y")]
public long get_screen_y ();
[CCode (cname = "webkit_dom_dom_window_get_scroll_x")]
public long get_scroll_x ();
[CCode (cname = "webkit_dom_dom_window_get_scroll_y")]
public long get_scroll_y ();
[CCode (cname = "webkit_dom_dom_window_get_scrollbars")]
public unowned WebKit.DOMBarInfo get_scrollbars ();
[CCode (cname = "webkit_dom_dom_window_get_selection")]
public unowned WebKit.DOMDOMSelection get_selection ();
[CCode (cname = "webkit_dom_dom_window_get_self")]
public unowned WebKit.DOMDOMWindow get_self ();
[CCode (cname = "webkit_dom_dom_window_get_session_storage")]
public unowned WebKit.DOMStorage get_session_storage () throws GLib.Error;
[CCode (cname = "webkit_dom_dom_window_get_status")]
public unowned string get_status ();
[CCode (cname = "webkit_dom_dom_window_get_statusbar")]
public unowned WebKit.DOMBarInfo get_statusbar ();
[CCode (cname = "webkit_dom_dom_window_get_style_media")]
public unowned WebKit.DOMStyleMedia get_style_media ();
[CCode (cname = "webkit_dom_dom_window_get_toolbar")]
public unowned WebKit.DOMBarInfo get_toolbar ();
[CCode (cname = "webkit_dom_dom_window_get_top")]
public unowned WebKit.DOMDOMWindow get_top ();
[CCode (cname = "webkit_dom_dom_window_get_window")]
public unowned WebKit.DOMDOMWindow get_window ();
[CCode (cname = "webkit_dom_dom_window_match_media")]
public unowned WebKit.DOMMediaQueryList match_media (string query);
[CCode (cname = "webkit_dom_dom_window_move_by")]
public void move_by (float x, float y);
[CCode (cname = "webkit_dom_dom_window_move_to")]
public void move_to (float x, float y);
[CCode (cname = "webkit_dom_dom_window_print")]
public void print ();
[CCode (cname = "webkit_dom_dom_window_prompt")]
public unowned string prompt (string message, string default_value);
[CCode (cname = "webkit_dom_dom_window_release_events")]
public void release_events ();
[CCode (cname = "webkit_dom_dom_window_resize_by")]
public void resize_by (float x, float y);
[CCode (cname = "webkit_dom_dom_window_resize_to")]
public void resize_to (float width, float height);
[CCode (cname = "webkit_dom_dom_window_scroll")]
public void scroll (long x, long y);
[CCode (cname = "webkit_dom_dom_window_scroll_by")]
public void scroll_by (long x, long y);
[CCode (cname = "webkit_dom_dom_window_scroll_to")]
public void scroll_to (long x, long y);
[CCode (cname = "webkit_dom_dom_window_set_default_status")]
public void set_default_status (string value);
[CCode (cname = "webkit_dom_dom_window_set_name")]
public void set_name (string value);
[CCode (cname = "webkit_dom_dom_window_set_status")]
public void set_status (string value);
[CCode (cname = "webkit_dom_dom_window_stop")]
public void stop ();
[CCode (cname = "webkit_dom_dom_window_webkit_convert_point_from_node_to_page")]
public unowned WebKit.DOMWebKitPoint webkit_convert_point_from_node_to_page (WebKit.DOMNode node, WebKit.DOMWebKitPoint p);
[CCode (cname = "webkit_dom_dom_window_webkit_convert_point_from_page_to_node")]
public unowned WebKit.DOMWebKitPoint webkit_convert_point_from_page_to_node (WebKit.DOMNode node, WebKit.DOMWebKitPoint p);
public WebKit.DOMDOMApplicationCache application_cache { get; }
[NoAccessorMethod]
public WebKit.DOMNavigator client_information { owned get; set; }
public bool closed { get; }
[NoAccessorMethod]
public WebKit.DOMConsole console { owned get; set; }
public string default_status { get; set; }
[NoAccessorMethod]
public double device_pixel_ratio { get; set; }
public WebKit.DOMDocument document { get; }
public WebKit.DOMElement frame_element { get; }
[NoAccessorMethod]
public WebKit.DOMDOMWindow frames { owned get; set; }
[NoAccessorMethod]
public WebKit.DOMHistory history { owned get; set; }
[NoAccessorMethod]
public long inner_height { get; set; }
[NoAccessorMethod]
public long inner_width { get; set; }
[NoAccessorMethod]
public ulong length { get; set; }
public WebKit.DOMStorage local_storage { get; }
[NoAccessorMethod]
public WebKit.DOMBarInfo locationbar { owned get; set; }
[NoAccessorMethod]
public WebKit.DOMBarInfo menubar { owned get; set; }
public string name { get; set; }
[NoAccessorMethod]
public WebKit.DOMNavigator navigator { owned get; set; }
[NoAccessorMethod]
public bool offscreen_buffering { get; set; }
[NoAccessorMethod]
public WebKit.DOMDOMWindow opener { owned get; set; }
[NoAccessorMethod]
public long outer_height { get; set; }
[NoAccessorMethod]
public long outer_width { get; set; }
public long page_x_offset { get; }
public long page_y_offset { get; }
[NoAccessorMethod]
public WebKit.DOMDOMWindow parent { owned get; set; }
[NoAccessorMethod]
public WebKit.DOMBarInfo personalbar { owned get; set; }
[NoAccessorMethod]
public WebKit.DOMScreen screen { owned get; set; }
[NoAccessorMethod]
public long screen_left { get; set; }
[NoAccessorMethod]
public long screen_top { get; set; }
[NoAccessorMethod]
public long screen_x { get; set; }
[NoAccessorMethod]
public long screen_y { get; set; }
[NoAccessorMethod]
public long scroll_x { get; set; }
[NoAccessorMethod]
public long scroll_y { get; set; }
[NoAccessorMethod]
public WebKit.DOMBarInfo scrollbars { owned get; set; }
[NoAccessorMethod]
public WebKit.DOMDOMWindow self { owned get; set; }
public WebKit.DOMStorage session_storage { get; }
public string status { get; set; }
[NoAccessorMethod]
public WebKit.DOMBarInfo statusbar { owned get; set; }
public WebKit.DOMStyleMedia style_media { get; }
[NoAccessorMethod]
public WebKit.DOMBarInfo toolbar { owned get; set; }
[NoAccessorMethod]
public WebKit.DOMDOMWindow top { owned get; set; }
public WebKit.DOMDOMWindow window { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMDatabase : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMDatabase ();
public unowned string get_version ();
public string version { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMDocument : WebKit.DOMNode, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMDocument ();
public unowned WebKit.DOMNode adopt_node (WebKit.DOMNode source) throws GLib.Error;
public unowned WebKit.DOMRange caret_range_from_point (long x, long y);
public unowned WebKit.DOMAttr create_attribute (string name) throws GLib.Error;
public unowned WebKit.DOMAttr create_attribute_ns (string namespace_uri, string qualified_name) throws GLib.Error;
public unowned WebKit.DOMCDATASection create_cdata_section (string data) throws GLib.Error;
public unowned WebKit.DOMComment create_comment (string data);
public unowned WebKit.DOMCSSStyleDeclaration create_css_style_declaration ();
public unowned WebKit.DOMDocumentFragment create_document_fragment ();
public unowned WebKit.DOMElement create_element (string tag_name) throws GLib.Error;
public unowned WebKit.DOMElement create_element_ns (string namespace_uri, string qualified_name) throws GLib.Error;
public unowned WebKit.DOMEntityReference create_entity_reference (string name) throws GLib.Error;
public unowned WebKit.DOMEvent create_event (string event_type) throws GLib.Error;
public unowned WebKit.DOMXPathExpression create_expression (string expression, WebKit.DOMXPathNSResolver resolver) throws GLib.Error;
public unowned WebKit.DOMNodeIterator create_node_iterator (WebKit.DOMNode root, ulong what_to_show, WebKit.DOMNodeFilter filter, bool expand_entity_references) throws GLib.Error;
public unowned WebKit.DOMXPathNSResolver create_ns_resolver (WebKit.DOMNode node_resolver);
public unowned WebKit.DOMProcessingInstruction create_processing_instruction (string target, string data) throws GLib.Error;
public unowned WebKit.DOMRange create_range ();
public unowned WebKit.DOMText create_text_node (string data);
public unowned WebKit.DOMTreeWalker create_tree_walker (WebKit.DOMNode root, ulong what_to_show, WebKit.DOMNodeFilter filter, bool expand_entity_references) throws GLib.Error;
public unowned WebKit.DOMElement element_from_point (long x, long y);
public unowned WebKit.DOMXPathResult evaluate (string expression, WebKit.DOMNode context_node, WebKit.DOMXPathNSResolver resolver, ushort type, WebKit.DOMXPathResult in_result) throws GLib.Error;
public bool exec_command (string command, bool user_interface, string value);
public unowned WebKit.DOMHTMLCollection get_anchors ();
public unowned WebKit.DOMHTMLCollection get_applets ();
public unowned WebKit.DOMHTMLElement get_body ();
public unowned string get_character_set ();
public unowned string get_charset ();
public unowned string get_compat_mode ();
public unowned string get_cookie () throws GLib.Error;
public unowned string get_default_charset ();
public unowned WebKit.DOMDOMWindow get_default_view ();
public unowned WebKit.DOMDocumentType get_doctype ();
public unowned WebKit.DOMElement get_document_element ();
public unowned string get_document_uri ();
public unowned string get_domain ();
public unowned WebKit.DOMElement get_element_by_id (string element_id);
public unowned WebKit.DOMNodeList get_elements_by_class_name (string tagname);
public unowned WebKit.DOMNodeList get_elements_by_name (string element_name);
public unowned WebKit.DOMNodeList get_elements_by_tag_name (string tagname);
public unowned WebKit.DOMNodeList get_elements_by_tag_name_ns (string namespace_uri, string local_name);
public unowned WebKit.DOMHTMLCollection get_forms ();
public unowned WebKit.DOMHTMLHeadElement get_head ();
public unowned WebKit.DOMHTMLCollection get_images ();
public unowned WebKit.DOMDOMImplementation get_implementation ();
public unowned string get_input_encoding ();
public unowned string get_last_modified ();
public unowned WebKit.DOMHTMLCollection get_links ();
public unowned WebKit.DOMCSSStyleDeclaration get_override_style (WebKit.DOMElement element, string pseudo_element);
public unowned string get_preferred_stylesheet_set ();
public unowned string get_ready_state ();
public unowned string get_referrer ();
public unowned string get_selected_stylesheet_set ();
public unowned WebKit.DOMStyleSheetList get_style_sheets ();
public unowned string get_title ();
public unowned WebKit.DOMElement get_webkit_current_full_screen_element ();
public bool get_webkit_full_screen_keyboard_input_allowed ();
public bool get_webkit_hidden ();
public bool get_webkit_is_full_screen ();
public unowned string get_webkit_visibility_state ();
public unowned string get_xml_encoding ();
public bool get_xml_standalone ();
public unowned string get_xml_version ();
public unowned WebKit.DOMNode import_node (WebKit.DOMNode imported_node, bool deep) throws GLib.Error;
public bool query_command_enabled (string command);
public bool query_command_indeterm (string command);
public bool query_command_state (string command);
public bool query_command_supported (string command);
public unowned string query_command_value (string command);
public unowned WebKit.DOMElement query_selector (string selectors) throws GLib.Error;
public unowned WebKit.DOMNodeList query_selector_all (string selectors) throws GLib.Error;
public void set_body (WebKit.DOMHTMLElement value) throws GLib.Error;
public void set_charset (string value);
public void set_cookie (string value) throws GLib.Error;
public void set_document_uri (string value);
public void set_selected_stylesheet_set (string value);
public void set_title (string value);
public void set_xml_standalone (bool value) throws GLib.Error;
public void set_xml_version (string value) throws GLib.Error;
public void webkit_cancel_full_screen ();
public WebKit.DOMHTMLCollection anchors { get; }
public WebKit.DOMHTMLCollection applets { get; }
public WebKit.DOMHTMLElement body { get; set; }
public string character_set { get; }
public string charset { get; set; }
public string compat_mode { get; }
public string cookie { get; set; }
public string default_charset { get; }
public WebKit.DOMDOMWindow default_view { get; }
public WebKit.DOMDocumentType doctype { get; }
public WebKit.DOMElement document_element { get; }
public string document_uri { get; set; }
public string domain { get; }
public WebKit.DOMHTMLCollection forms { get; }
public WebKit.DOMHTMLHeadElement head { get; }
public WebKit.DOMHTMLCollection images { get; }
public WebKit.DOMDOMImplementation implementation { get; }
public string input_encoding { get; }
public string last_modified { get; }
public WebKit.DOMHTMLCollection links { get; }
public string preferred_stylesheet_set { get; }
public string ready_state { get; }
public string referrer { get; }
public string selected_stylesheet_set { get; set; }
public WebKit.DOMStyleSheetList style_sheets { get; }
public string title { get; set; }
[NoAccessorMethod]
public string url { owned get; }
public WebKit.DOMElement webkit_current_full_screen_element { get; }
public bool webkit_full_screen_keyboard_input_allowed { get; }
public bool webkit_is_full_screen { get; }
public string xml_encoding { get; }
public bool xml_standalone { get; set; }
public string xml_version { get; set; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMDocumentFragment : WebKit.DOMNode, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMDocumentFragment ();
public unowned WebKit.DOMElement query_selector (string selectors) throws GLib.Error;
public unowned WebKit.DOMNodeList query_selector_all (string selectors) throws GLib.Error;
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMDocumentType : WebKit.DOMNode, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMDocumentType ();
public unowned WebKit.DOMNamedNodeMap get_entities ();
public unowned string get_internal_subset ();
public unowned string get_name ();
public unowned WebKit.DOMNamedNodeMap get_notations ();
public unowned string get_public_id ();
public unowned string get_system_id ();
public WebKit.DOMNamedNodeMap entities { get; }
public string internal_subset { get; }
public string name { get; }
public WebKit.DOMNamedNodeMap notations { get; }
public string public_id { get; }
public string system_id { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMElement : WebKit.DOMNode, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMElement ();
public void blur ();
public void focus ();
public unowned string get_attribute (string name);
public unowned WebKit.DOMAttr get_attribute_node (string name);
public unowned WebKit.DOMAttr get_attribute_node_ns (string namespace_uri, string local_name);
public unowned string get_attribute_ns (string namespace_uri, string local_name);
public ulong get_child_element_count ();
public long get_client_height ();
public long get_client_left ();
public long get_client_top ();
public long get_client_width ();
public unowned WebKit.DOMNodeList get_elements_by_class_name (string name);
public unowned WebKit.DOMNodeList get_elements_by_tag_name (string name);
public unowned WebKit.DOMNodeList get_elements_by_tag_name_ns (string namespace_uri, string local_name);
public unowned WebKit.DOMElement get_first_element_child ();
public unowned WebKit.DOMElement get_last_element_child ();
public unowned WebKit.DOMElement get_next_element_sibling ();
public long get_offset_height ();
public long get_offset_left ();
public unowned WebKit.DOMElement get_offset_parent ();
public long get_offset_top ();
public long get_offset_width ();
public unowned WebKit.DOMElement get_previous_element_sibling ();
public long get_scroll_height ();
public long get_scroll_left ();
public long get_scroll_top ();
public long get_scroll_width ();
public unowned WebKit.DOMCSSStyleDeclaration get_style ();
public unowned string get_tag_name ();
public bool has_attribute (string name);
public bool has_attribute_ns (string namespace_uri, string local_name);
public unowned WebKit.DOMElement query_selector (string selectors) throws GLib.Error;
public unowned WebKit.DOMNodeList query_selector_all (string selectors) throws GLib.Error;
public void remove_attribute (string name) throws GLib.Error;
public unowned WebKit.DOMAttr remove_attribute_node (WebKit.DOMAttr old_attr) throws GLib.Error;
public void remove_attribute_ns (string namespace_uri, string local_name) throws GLib.Error;
public void scroll_by_lines (long lines);
public void scroll_by_pages (long pages);
public void scroll_into_view (bool align_with_top);
public void scroll_into_view_if_needed (bool center_if_needed);
public void set_attribute (string name, string value) throws GLib.Error;
public unowned WebKit.DOMAttr set_attribute_node (WebKit.DOMAttr new_attr) throws GLib.Error;
public unowned WebKit.DOMAttr set_attribute_node_ns (WebKit.DOMAttr new_attr) throws GLib.Error;
public void set_attribute_ns (string namespace_uri, string qualified_name, string value) throws GLib.Error;
public void set_scroll_left (long value);
public void set_scroll_top (long value);
public bool webkit_matches_selector (string selectors) throws GLib.Error;
public void webkit_request_full_screen (ushort flags);
public ulong child_element_count { get; }
public long client_height { get; }
public long client_left { get; }
public long client_top { get; }
public long client_width { get; }
public WebKit.DOMElement first_element_child { get; }
public WebKit.DOMElement last_element_child { get; }
public WebKit.DOMElement next_element_sibling { get; }
public long offset_height { get; }
public long offset_left { get; }
public WebKit.DOMElement offset_parent { get; }
public long offset_top { get; }
public long offset_width { get; }
public WebKit.DOMElement previous_element_sibling { get; }
public long scroll_height { get; }
public long scroll_left { get; set; }
public long scroll_top { get; set; }
public long scroll_width { get; }
public WebKit.DOMCSSStyleDeclaration style { get; }
public string tag_name { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMEntityReference : WebKit.DOMNode, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMEntityReference ();
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMEvent : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMEvent ();
public bool get_bubbles ();
public bool get_cancel_bubble ();
public bool get_cancelable ();
public unowned WebKit.DOMEventTarget get_current_target ();
public bool get_default_prevented ();
public ushort get_event_phase ();
public bool get_return_value ();
public unowned WebKit.DOMEventTarget get_src_element ();
public unowned WebKit.DOMEventTarget get_target ();
public uint32 get_time_stamp ();
public void init_event (string event_type_arg, bool can_bubble_arg, bool cancelable_arg);
public void prevent_default ();
public void set_cancel_bubble (bool value);
public void set_return_value (bool value);
public void stop_immediate_propagation ();
public void stop_propagation ();
public bool bubbles { get; }
public bool cancel_bubble { get; set; }
public bool cancelable { get; }
public WebKit.DOMEventTarget current_target { get; }
public bool default_prevented { get; }
public uint event_phase { get; }
public bool return_value { get; set; }
public WebKit.DOMEventTarget src_element { get; }
public WebKit.DOMEventTarget target { get; }
public uint time_stamp { get; }
[NoAccessorMethod]
public string type { owned get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
[Compact]
public class DOMEventTargetClass {
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMFile : WebKit.DOMBlob {
[CCode (has_construct_function = false)]
protected DOMFile ();
public unowned string get_file_name ();
public uint64 get_file_size ();
public unowned string get_name ();
public string file_name { get; }
public uint64 file_size { get; }
public string name { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMFileList : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMFileList ();
public ulong get_length ();
public unowned WebKit.DOMFile item (ulong index);
public ulong length { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMGeolocation : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMGeolocation ();
public void clear_watch (long watch_id);
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMHTMLAnchorElement : WebKit.DOMHTMLElement, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMHTMLAnchorElement ();
[CCode (cname = "webkit_dom_html_anchor_element_get_access_key")]
public unowned string get_access_key ();
[CCode (cname = "webkit_dom_html_anchor_element_get_charset")]
public unowned string get_charset ();
[CCode (cname = "webkit_dom_html_anchor_element_get_coords")]
public unowned string get_coords ();
[CCode (cname = "webkit_dom_html_anchor_element_get_download")]
public unowned string get_download ();
[CCode (cname = "webkit_dom_html_anchor_element_get_hash")]
public unowned string get_hash ();
[CCode (cname = "webkit_dom_html_anchor_element_get_host")]
public unowned string get_host ();
[CCode (cname = "webkit_dom_html_anchor_element_get_hostname")]
public unowned string get_hostname ();
[CCode (cname = "webkit_dom_html_anchor_element_get_href")]
public unowned string get_href ();
[CCode (cname = "webkit_dom_html_anchor_element_get_hreflang")]
public unowned string get_hreflang ();
[CCode (cname = "webkit_dom_html_anchor_element_get_name")]
public unowned string get_name ();
[CCode (cname = "webkit_dom_html_anchor_element_get_origin")]
public unowned string get_origin ();
[CCode (cname = "webkit_dom_html_anchor_element_get_parameter")]
public unowned string get_parameter (string name);
[CCode (cname = "webkit_dom_html_anchor_element_get_pathname")]
public unowned string get_pathname ();
[CCode (cname = "webkit_dom_html_anchor_element_get_ping")]
public unowned string get_ping ();
[CCode (cname = "webkit_dom_html_anchor_element_get_port")]
public unowned string get_port ();
[CCode (cname = "webkit_dom_html_anchor_element_get_protocol")]
public unowned string get_protocol ();
[CCode (cname = "webkit_dom_html_anchor_element_get_rel")]
public unowned string get_rel ();
[CCode (cname = "webkit_dom_html_anchor_element_get_rev")]
public unowned string get_rev ();
[CCode (cname = "webkit_dom_html_anchor_element_get_search")]
public unowned string get_search ();
[CCode (cname = "webkit_dom_html_anchor_element_get_shape")]
public unowned string get_shape ();
[CCode (cname = "webkit_dom_html_anchor_element_get_target")]
public unowned string get_target ();
[CCode (cname = "webkit_dom_html_anchor_element_get_text")]
public unowned string get_text ();
[CCode (cname = "webkit_dom_html_anchor_element_set_access_key")]
public void set_access_key (string value);
[CCode (cname = "webkit_dom_html_anchor_element_set_charset")]
public void set_charset (string value);
[CCode (cname = "webkit_dom_html_anchor_element_set_coords")]
public void set_coords (string value);
[CCode (cname = "webkit_dom_html_anchor_element_set_download")]
public void set_download (string value);
[CCode (cname = "webkit_dom_html_anchor_element_set_hash")]
public void set_hash (string value);
[CCode (cname = "webkit_dom_html_anchor_element_set_host")]
public void set_host (string value);
[CCode (cname = "webkit_dom_html_anchor_element_set_hostname")]
public void set_hostname (string value);
[CCode (cname = "webkit_dom_html_anchor_element_set_href")]
public void set_href (string value);
[CCode (cname = "webkit_dom_html_anchor_element_set_hreflang")]
public void set_hreflang (string value);
[CCode (cname = "webkit_dom_html_anchor_element_set_name")]
public void set_name (string value);
[CCode (cname = "webkit_dom_html_anchor_element_set_pathname")]
public void set_pathname (string value);
[CCode (cname = "webkit_dom_html_anchor_element_set_ping")]
public void set_ping (string value);
[CCode (cname = "webkit_dom_html_anchor_element_set_port")]
public void set_port (string value);
[CCode (cname = "webkit_dom_html_anchor_element_set_protocol")]
public void set_protocol (string value);
[CCode (cname = "webkit_dom_html_anchor_element_set_rel")]
public void set_rel (string value);
[CCode (cname = "webkit_dom_html_anchor_element_set_rev")]
public void set_rev (string value);
[CCode (cname = "webkit_dom_html_anchor_element_set_search")]
public void set_search (string value);
[CCode (cname = "webkit_dom_html_anchor_element_set_shape")]
public void set_shape (string value);
[CCode (cname = "webkit_dom_html_anchor_element_set_target")]
public void set_target (string value);
public string access_key { get; set; }
public string charset { get; set; }
public string coords { get; set; }
public string hash { get; set; }
public string host { get; set; }
public string hostname { get; set; }
public string href { get; set; }
public string hreflang { get; set; }
public string name { get; set; }
public string origin { get; }
public string pathname { get; set; }
public string ping { get; set; }
public string port { get; set; }
public string protocol { get; set; }
public string rel { get; set; }
public string rev { get; set; }
public string search { get; set; }
public string shape { get; set; }
public string target { get; set; }
public string text { get; }
[NoAccessorMethod]
public string type { owned get; set; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMHTMLAppletElement : WebKit.DOMHTMLElement, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMHTMLAppletElement ();
[CCode (cname = "webkit_dom_html_applet_element_get_align")]
public unowned string get_align ();
[CCode (cname = "webkit_dom_html_applet_element_get_alt")]
public unowned string get_alt ();
[CCode (cname = "webkit_dom_html_applet_element_get_archive")]
public unowned string get_archive ();
[CCode (cname = "webkit_dom_html_applet_element_get_code")]
public unowned string get_code ();
[CCode (cname = "webkit_dom_html_applet_element_get_code_base")]
public unowned string get_code_base ();
[CCode (cname = "webkit_dom_html_applet_element_get_height")]
public unowned string get_height ();
[CCode (cname = "webkit_dom_html_applet_element_get_hspace")]
public long get_hspace ();
[CCode (cname = "webkit_dom_html_applet_element_get_name")]
public unowned string get_name ();
[CCode (cname = "webkit_dom_html_applet_element_get_object")]
public unowned string get_object ();
[CCode (cname = "webkit_dom_html_applet_element_get_vspace")]
public long get_vspace ();
[CCode (cname = "webkit_dom_html_applet_element_get_width")]
public unowned string get_width ();
[CCode (cname = "webkit_dom_html_applet_element_set_align")]
public void set_align (string value);
[CCode (cname = "webkit_dom_html_applet_element_set_alt")]
public void set_alt (string value);
[CCode (cname = "webkit_dom_html_applet_element_set_archive")]
public void set_archive (string value);
[CCode (cname = "webkit_dom_html_applet_element_set_code")]
public void set_code (string value);
[CCode (cname = "webkit_dom_html_applet_element_set_code_base")]
public void set_code_base (string value);
[CCode (cname = "webkit_dom_html_applet_element_set_height")]
public void set_height (string value);
[CCode (cname = "webkit_dom_html_applet_element_set_hspace")]
public void set_hspace (long value);
[CCode (cname = "webkit_dom_html_applet_element_set_name")]
public void set_name (string value);
[CCode (cname = "webkit_dom_html_applet_element_set_object")]
public void set_object (string value);
[CCode (cname = "webkit_dom_html_applet_element_set_vspace")]
public void set_vspace (long value);
[CCode (cname = "webkit_dom_html_applet_element_set_width")]
public void set_width (string value);
public string align { get; set; }
public string alt { get; set; }
public string archive { get; set; }
public string code { get; set; }
public string code_base { get; set; }
public string height { get; set; }
public long hspace { get; set; }
public string name { get; set; }
public string object { get; set; }
public long vspace { get; set; }
public string width { get; set; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMHTMLAreaElement : WebKit.DOMHTMLElement, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMHTMLAreaElement ();
[CCode (cname = "webkit_dom_html_area_element_get_access_key")]
public unowned string get_access_key ();
[CCode (cname = "webkit_dom_html_area_element_get_alt")]
public unowned string get_alt ();
[CCode (cname = "webkit_dom_html_area_element_get_coords")]
public unowned string get_coords ();
[CCode (cname = "webkit_dom_html_area_element_get_hash")]
public unowned string get_hash ();
[CCode (cname = "webkit_dom_html_area_element_get_host")]
public unowned string get_host ();
[CCode (cname = "webkit_dom_html_area_element_get_hostname")]
public unowned string get_hostname ();
[CCode (cname = "webkit_dom_html_area_element_get_href")]
public unowned string get_href ();
[CCode (cname = "webkit_dom_html_area_element_get_no_href")]
public bool get_no_href ();
[CCode (cname = "webkit_dom_html_area_element_get_pathname")]
public unowned string get_pathname ();
[CCode (cname = "webkit_dom_html_area_element_get_ping")]
public unowned string get_ping ();
[CCode (cname = "webkit_dom_html_area_element_get_port")]
public unowned string get_port ();
[CCode (cname = "webkit_dom_html_area_element_get_protocol")]
public unowned string get_protocol ();
[CCode (cname = "webkit_dom_html_area_element_get_search")]
public unowned string get_search ();
[CCode (cname = "webkit_dom_html_area_element_get_shape")]
public unowned string get_shape ();
[CCode (cname = "webkit_dom_html_area_element_get_target")]
public unowned string get_target ();
[CCode (cname = "webkit_dom_html_area_element_set_access_key")]
public void set_access_key (string value);
[CCode (cname = "webkit_dom_html_area_element_set_alt")]
public void set_alt (string value);
[CCode (cname = "webkit_dom_html_area_element_set_coords")]
public void set_coords (string value);
[CCode (cname = "webkit_dom_html_area_element_set_href")]
public void set_href (string value);
[CCode (cname = "webkit_dom_html_area_element_set_no_href")]
public void set_no_href (bool value);
[CCode (cname = "webkit_dom_html_area_element_set_ping")]
public void set_ping (string value);
[CCode (cname = "webkit_dom_html_area_element_set_shape")]
public void set_shape (string value);
[CCode (cname = "webkit_dom_html_area_element_set_target")]
public void set_target (string value);
public string access_key { get; set; }
public string alt { get; set; }
public string coords { get; set; }
public string hash { get; }
public string host { get; }
public string hostname { get; }
public string href { get; set; }
public bool no_href { get; set; }
public string pathname { get; }
public string ping { get; set; }
public string port { get; }
public string protocol { get; }
public string search { get; }
public string shape { get; set; }
public string target { get; set; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMHTMLAudioElement : WebKit.DOMHTMLMediaElement, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMHTMLAudioElement ();
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMHTMLBRElement : WebKit.DOMHTMLElement, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMHTMLBRElement ();
[CCode (cname = "webkit_dom_htmlbr_element_get_clear")]
public unowned string get_clear ();
[CCode (cname = "webkit_dom_htmlbr_element_set_clear")]
public void set_clear (string value);
public string clear { get; set; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMHTMLBaseElement : WebKit.DOMHTMLElement, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMHTMLBaseElement ();
[CCode (cname = "webkit_dom_html_base_element_get_href")]
public unowned string get_href ();
[CCode (cname = "webkit_dom_html_base_element_get_target")]
public unowned string get_target ();
[CCode (cname = "webkit_dom_html_base_element_set_href")]
public void set_href (string value);
[CCode (cname = "webkit_dom_html_base_element_set_target")]
public void set_target (string value);
public string href { get; set; }
public string target { get; set; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMHTMLBaseFontElement : WebKit.DOMHTMLElement, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMHTMLBaseFontElement ();
[CCode (cname = "webkit_dom_html_base_font_element_get_color")]
public unowned string get_color ();
[CCode (cname = "webkit_dom_html_base_font_element_get_face")]
public unowned string get_face ();
[CCode (cname = "webkit_dom_html_base_font_element_get_size")]
public long get_size ();
[CCode (cname = "webkit_dom_html_base_font_element_set_color")]
public void set_color (string value);
[CCode (cname = "webkit_dom_html_base_font_element_set_face")]
public void set_face (string value);
[CCode (cname = "webkit_dom_html_base_font_element_set_size")]
public void set_size (long value);
public string color { get; set; }
public string face { get; set; }
public long size { get; set; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMHTMLBodyElement : WebKit.DOMHTMLElement, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMHTMLBodyElement ();
[CCode (cname = "webkit_dom_html_body_element_get_a_link")]
public unowned string get_a_link ();
[CCode (cname = "webkit_dom_html_body_element_get_background")]
public unowned string get_background ();
[CCode (cname = "webkit_dom_html_body_element_get_bg_color")]
public unowned string get_bg_color ();
[CCode (cname = "webkit_dom_html_body_element_get_link")]
public unowned string get_link ();
[CCode (cname = "webkit_dom_html_body_element_get_text")]
public unowned string get_text ();
[CCode (cname = "webkit_dom_html_body_element_get_v_link")]
public unowned string get_v_link ();
[CCode (cname = "webkit_dom_html_body_element_set_a_link")]
public void set_a_link (string value);
[CCode (cname = "webkit_dom_html_body_element_set_background")]
public void set_background (string value);
[CCode (cname = "webkit_dom_html_body_element_set_bg_color")]
public void set_bg_color (string value);
[CCode (cname = "webkit_dom_html_body_element_set_link")]
public void set_link (string value);
[CCode (cname = "webkit_dom_html_body_element_set_text")]
public void set_text (string value);
[CCode (cname = "webkit_dom_html_body_element_set_v_link")]
public void set_v_link (string value);
public string a_link { get; set; }
public string background { get; set; }
public string bg_color { get; set; }
public string link { get; set; }
public string text { get; set; }
public string v_link { get; set; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMHTMLButtonElement : WebKit.DOMHTMLElement, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMHTMLButtonElement ();
[CCode (cname = "webkit_dom_html_button_element_check_validity")]
public bool check_validity ();
[CCode (cname = "webkit_dom_html_button_element_click")]
public void click ();
[CCode (cname = "webkit_dom_html_button_element_get_access_key")]
public unowned string get_access_key ();
[CCode (cname = "webkit_dom_html_button_element_get_autofocus")]
public bool get_autofocus ();
[CCode (cname = "webkit_dom_html_button_element_get_disabled")]
public bool get_disabled ();
[CCode (cname = "webkit_dom_html_button_element_get_form")]
public unowned WebKit.DOMHTMLFormElement get_form ();
[CCode (cname = "webkit_dom_html_button_element_get_form_action")]
public unowned string get_form_action ();
[CCode (cname = "webkit_dom_html_button_element_get_form_enctype")]
public unowned string get_form_enctype ();
[CCode (cname = "webkit_dom_html_button_element_get_form_method")]
public unowned string get_form_method ();
[CCode (cname = "webkit_dom_html_button_element_get_form_no_validate")]
public bool get_form_no_validate ();
[CCode (cname = "webkit_dom_html_button_element_get_form_target")]
public unowned string get_form_target ();
[CCode (cname = "webkit_dom_html_button_element_get_labels")]
public unowned WebKit.DOMNodeList get_labels ();
[CCode (cname = "webkit_dom_html_button_element_get_name")]
public unowned string get_name ();
[CCode (cname = "webkit_dom_html_button_element_get_validation_message")]
public unowned string get_validation_message ();
[CCode (cname = "webkit_dom_html_button_element_get_validity")]
public unowned WebKit.DOMValidityState get_validity ();
[CCode (cname = "webkit_dom_html_button_element_get_value")]
public unowned string get_value ();
[CCode (cname = "webkit_dom_html_button_element_get_will_validate")]
public bool get_will_validate ();
[CCode (cname = "webkit_dom_html_button_element_set_access_key")]
public void set_access_key (string value);
[CCode (cname = "webkit_dom_html_button_element_set_autofocus")]
public void set_autofocus (bool value);
[CCode (cname = "webkit_dom_html_button_element_set_custom_validity")]
public void set_custom_validity (string error);
[CCode (cname = "webkit_dom_html_button_element_set_disabled")]
public void set_disabled (bool value);
[CCode (cname = "webkit_dom_html_button_element_set_form_action")]
public void set_form_action (string value);
[CCode (cname = "webkit_dom_html_button_element_set_form_enctype")]
public void set_form_enctype (string value);
[CCode (cname = "webkit_dom_html_button_element_set_form_method")]
public void set_form_method (string value);
[CCode (cname = "webkit_dom_html_button_element_set_form_no_validate")]
public void set_form_no_validate (bool value);
[CCode (cname = "webkit_dom_html_button_element_set_form_target")]
public void set_form_target (string value);
[CCode (cname = "webkit_dom_html_button_element_set_name")]
public void set_name (string value);
[CCode (cname = "webkit_dom_html_button_element_set_value")]
public void set_value (string value);
public string access_key { get; set; }
public bool autofocus { get; set; }
public bool disabled { get; set; }
public WebKit.DOMHTMLFormElement form { get; }
public string form_action { get; set; }
public string form_enctype { get; set; }
public string form_method { get; set; }
public bool form_no_validate { get; set; }
public string form_target { get; set; }
public WebKit.DOMNodeList labels { get; }
public string name { get; set; }
[NoAccessorMethod]
public string type { owned get; }
public string validation_message { get; }
public WebKit.DOMValidityState validity { get; }
public string value { get; set; }
public bool will_validate { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMHTMLCanvasElement : WebKit.DOMHTMLElement, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMHTMLCanvasElement ();
[CCode (cname = "webkit_dom_html_canvas_element_get_height")]
public long get_height ();
[CCode (cname = "webkit_dom_html_canvas_element_get_width")]
public long get_width ();
[CCode (cname = "webkit_dom_html_canvas_element_set_height")]
public void set_height (long value);
[CCode (cname = "webkit_dom_html_canvas_element_set_width")]
public void set_width (long value);
public long height { get; set; }
public long width { get; set; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMHTMLCollection : WebKit.DOMObject {
[CCode (has_construct_function = false)]
protected DOMHTMLCollection ();
[CCode (cname = "webkit_dom_html_collection_get_length")]
public ulong get_length ();
[CCode (cname = "webkit_dom_html_collection_item")]
public unowned WebKit.DOMNode item (ulong index);
[CCode (cname = "webkit_dom_html_collection_named_item")]
public unowned WebKit.DOMNode named_item (string name);
public ulong length { get; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMHTMLDListElement : WebKit.DOMHTMLElement, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMHTMLDListElement ();
[CCode (cname = "webkit_dom_htmld_list_element_get_compact")]
public bool get_compact ();
[CCode (cname = "webkit_dom_htmld_list_element_set_compact")]
public void set_compact (bool value);
public bool compact { get; set; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMHTMLDetailsElement : WebKit.DOMHTMLElement, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMHTMLDetailsElement ();
[CCode (cname = "webkit_dom_html_details_element_get_open")]
public bool get_open ();
[CCode (cname = "webkit_dom_html_details_element_set_open")]
public void set_open (bool value);
public bool open { get; set; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMHTMLDirectoryElement : WebKit.DOMHTMLElement, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMHTMLDirectoryElement ();
[CCode (cname = "webkit_dom_html_directory_element_get_compact")]
public bool get_compact ();
[CCode (cname = "webkit_dom_html_directory_element_set_compact")]
public void set_compact (bool value);
public bool compact { get; set; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMHTMLDivElement : WebKit.DOMHTMLElement, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMHTMLDivElement ();
[CCode (cname = "webkit_dom_html_div_element_get_align")]
public unowned string get_align ();
[CCode (cname = "webkit_dom_html_div_element_set_align")]
public void set_align (string value);
public string align { get; set; }
}
[CCode (cheader_filename = "webkit/webkit.h")]
public class DOMHTMLDocument : WebKit.DOMDocument, WebKit.DOMEventTarget {
[CCode (has_construct_function = false)]
protected DOMHTMLDocument ();
[CCode (cname = "webkit_dom_html_document_capture_events")]
public void capture_events ();
[CCode (cname = "webkit_dom_html_document_clear")]
public void clear ();
[CCode (cname = "webkit_dom_html_document_close")]
public void close ();
[CCode (cname = "webkit_dom_html_document_get_active_element")]
public unowned WebKit.DOMElement get_active_element ();
[CCode (cname = "webkit_dom_html_document_get_alink_color")]
public unowned string get_alink_color ();
[CCode (cname = "webkit_dom_html_document_get_bg_color")]
public unowned string get_bg_color ();
[CCode (cname = "webkit_dom_html_document_get_compat_mode")]
public unowned string get_compat_mode ();
[CCode (cname = "webkit_dom_html_document_get_design_mode")]
public unowned string get_design_mode ();
[CCode (cname = "webkit_dom_html_document_get_dir")]
public unowned string get_dir ();
[CCode (cname = "webkit_dom_html_document_get_embeds")]
public unowned WebKit.DOMHTMLCollection get_embeds ();
[CCode (cname = "webkit_dom_html_document_get_fg_color")]
public unowned string get_fg_color ();
[CCode (cname = "webkit_dom_html_document_get_height")]
public long get_height ();
[CCode (cname = "webkit_dom_html_document_get_link_color")]
public unowned string get_link_color ();
[CCode (cname = "webkit_dom_html_document_get_plugins")]
public unowned WebKit.DOMHTMLCollection get_plugins ();
[CCode (cname = "webkit_dom_html_document_get_scripts")]
public unowned WebKit.DOMHTMLCollection get_scripts ();
[CCode (cname = "webkit_dom_html_document_get_vlink_color")]
public unowned string get_vlink_color ();
[CCode (cname = "webkit_dom_html_document_get_width")]
public long get_width ();
[CCode (cname = "webkit_dom_html_document_has_focus")]
public bool has_focus ();
[CCode (cname = "webkit_dom_html_document_release_events")]
public void release_events ();
[CCode (cname = "webkit_dom_html_document_set_alink_color")]
public void set_alink_color (string value);
[CCode (cname = "webkit_dom_html_document_set_bg_color")]
public void set_bg_color (string value);
[CCode (cname = "webkit_dom_html_document_set_design_mode")]
public void set_design_mode (string value);
[CCode (cname = "webkit_dom_html_document_set_dir")]
public void set_dir (string value);
[CCode (cname = "webkit_dom_html_document_set_fg_color")]
public void set_fg_color (string value);
[CCode (cname = "webkit_dom_html_document_set_link_color")]
public void set_link_color (string value);
[CCode (cname = "webkit_dom_html_document_set_vlink_color")]
public void set_vlink_color (string value);
public WebKit.DOMElement active_element { get; }
public string alink_color { get; set; }
public string bg_color { get; set; }
public string compat_mode { get; }
public string design_mode { get; set; }
public string dir { get; set; }
public WebKit.DOMHTMLCollection embeds { get; }
public string fg_color { get;