diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-06-24 04:07:43 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-06-24 04:07:43 +0800 |
commit | bf9a14796c23d31c781a6e09b92f523531285932 (patch) | |
tree | 2b176ececf168f5d06293a7397e5a8f16441b933 /doc/reference | |
parent | 38b74d1e516fd674940903dbf49a48894c0bbab7 (diff) | |
download | gsoc2013-epiphany-bf9a14796c23d31c781a6e09b92f523531285932.tar.gz gsoc2013-epiphany-bf9a14796c23d31c781a6e09b92f523531285932.tar.zst gsoc2013-epiphany-bf9a14796c23d31c781a6e09b92f523531285932.zip |
Make the permission type a string instead of an enum, that way we can
2004-06-23 Christian Persch <chpe@cvs.gnome.org>
* doc/reference/tmpl/ephy-permission-manager.sgml:
* embed/ephy-permission-manager.c: (ephy_permission_info_new),
(ephy_permission_info_copy), (ephy_permission_manager_add),
(ephy_permission_manager_remove), (ephy_permission_manager_test),
(ephy_permission_manager_list):
* embed/ephy-permission-manager.h:
* embed/mozilla/EphySingle.cpp:
* embed/mozilla/mozilla-embed-single.cpp:
Make the permission type a string instead of an enum, that way
we can support more than just the hardcoded 3 types.
Diffstat (limited to 'doc/reference')
-rw-r--r-- | doc/reference/tmpl/ephy-permission-manager.sgml | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/doc/reference/tmpl/ephy-permission-manager.sgml b/doc/reference/tmpl/ephy-permission-manager.sgml index f62bd4de1..93abf486c 100644 --- a/doc/reference/tmpl/ephy-permission-manager.sgml +++ b/doc/reference/tmpl/ephy-permission-manager.sgml @@ -28,6 +28,10 @@ network.cookie.cookieBehavior preference. For images, the default is determined by Mozilla's network.image.imageBehavior preference. </para> <para> +The predefined permission types are EPT_COOKIE ("cookie"), EPT_IMAGE ("image") +and EPT_POPUP ("popup"). You can also make up your own type string. +</para> +<para> Though the word "host" is used in many function descriptions, Mozilla does not act as one would expect. Always pass a URL to any functions which need have a "host" parameter. However, the "host" in an @@ -48,18 +52,6 @@ Details a specific permission of a specific website. @type: An #EphyPermissionType. @permission: An #EphyPermission (either allow or deny). -<!-- ##### ENUM EphyPermissionType ##### --> -<para> -Determines what permission we're dealing with. -</para> - -@EPT_COOKIE: - Permission for the website to store cookies on the user's computer. -@EPT_IMAGE: - Permission for the website to show images to the user. -@EPT_POPUP: - Permission for the website to open popup windows (using JavaScript). - <!-- ##### ENUM EphyPermission ##### --> <para> Determines whether the website is allowed or denied access. |