browser_window: Add an event for page info state change

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2019-12-01 16:06:56 +00:00
parent 6fc2666d07
commit 7f628f7ee8
No known key found for this signature in database
GPG Key ID: C30DF439F2987D74
2 changed files with 11 additions and 0 deletions

View File

@ -818,6 +818,11 @@ static nserror browser_window_content_ready(struct browser_window *bw)
browser_window_create_iframes(bw, html_get_iframe(bw->current_content));
}
/* Indicate page status may have changed */
if (res == NSERROR_OK) {
res = guit->window->event(bw->window, GW_EVENT_PAGE_INFO_CHANGE);
}
return res;
}

View File

@ -119,6 +119,12 @@ enum gui_window_event {
* selection started
*/
GW_EVENT_START_SELECTION,
/**
* Page status has changed and so the padlock should be
* updated.
*/
GW_EVENT_PAGE_INFO_CHANGE,
};
/**