From bf9a14796c23d31c781a6e09b92f523531285932 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Wed, 23 Jun 2004 20:07:43 +0000 Subject: Make the permission type a string instead of an enum, that way we can 2004-06-23 Christian Persch * 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. --- doc/reference/tmpl/ephy-permission-manager.sgml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'doc/reference') 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. +The predefined permission types are EPT_COOKIE ("cookie"), EPT_IMAGE ("image") +and EPT_POPUP ("popup"). You can also make up your own type string. + + 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). - - -Determines what permission we're dealing with. - - -@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). - Determines whether the website is allowed or denied access. -- cgit v1.2.3