зеркало из https://github.com/mozilla/gecko-dev.git
add new window permission type. bug 166442 r=jag,jst,morse
This commit is contained in:
Родитель
4105535247
Коммит
61c2c509c7
|
@ -72,6 +72,7 @@ PRIVATE PRBool permission_changed = PR_FALSE;
|
|||
|
||||
PRIVATE PRBool cookie_rememberChecked;
|
||||
PRIVATE PRBool image_rememberChecked;
|
||||
PRIVATE PRBool window_rememberChecked;
|
||||
|
||||
PRIVATE nsVoidArray * permission_list=0;
|
||||
|
||||
|
@ -162,13 +163,13 @@ permission_CheckFromList(const char * hostname, PRBool &permission, PRInt32 type
|
|||
|
||||
PRBool
|
||||
permission_GetRememberChecked(PRInt32 type) {
|
||||
if (type == COOKIEPERMISSION) {
|
||||
if (type == COOKIEPERMISSION)
|
||||
return cookie_rememberChecked;
|
||||
} else if (type == IMAGEPERMISSION) {
|
||||
if (type == IMAGEPERMISSION)
|
||||
return image_rememberChecked;
|
||||
} else {
|
||||
return PR_FALSE;
|
||||
}
|
||||
if (type == WINDOWPERMISSION)
|
||||
return window_rememberChecked;
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -177,6 +178,8 @@ permission_SetRememberChecked(PRInt32 type, PRBool value) {
|
|||
cookie_rememberChecked = value;
|
||||
} else if (type == IMAGEPERMISSION) {
|
||||
image_rememberChecked = value;
|
||||
} else if (type == WINDOWPERMISSION) {
|
||||
window_rememberChecked = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -45,7 +45,8 @@ class nsIURI;
|
|||
|
||||
#define COOKIEPERMISSION 0
|
||||
#define IMAGEPERMISSION 1
|
||||
#define NUMBER_OF_PERMISSIONS 2
|
||||
#define WINDOWPERMISSION 2
|
||||
#define NUMBER_OF_PERMISSIONS 3
|
||||
|
||||
typedef enum {
|
||||
PERMISSION_Accept,
|
||||
|
|
Загрузка…
Ссылка в новой задаче