Dillo v3.1.1-98-g318d1f14
|
Support for a navigation stack. More...
#include <stdio.h>
#include <sys/stat.h>
#include "msg.h"
#include "nav.h"
#include "history.h"
#include "web.hh"
#include "uicmd.hh"
#include "dialog.hh"
#include "prefs.h"
#include "capi.h"
#include "timeout.hh"
Go to the source code of this file.
Support for a navigation stack.
Definition in file nav.c.
void a_Nav_back | ( | BrowserWindow * | bw | ) |
Definition at line 438 of file nav.c.
References a_History_get_url(), a_Nav_cancel_expect(), a_Nav_stack_ptr(), a_UIcmd_set_msg(), Nav_open_url(), and NAV_UIDX.
Referenced by a_UIcmd_back().
void a_Nav_cancel_expect | ( | BrowserWindow * | bw | ) |
Definition at line 247 of file nav.c.
References a_Bw_cancel_expect(), a_Bw_expecting(), a_UIcmd_set_buttons_sens(), and BrowserWindow::meta_refresh_status.
Referenced by a_Nav_back(), a_Nav_cancel_expect_if_eq(), a_Nav_expect_done(), a_Nav_forw(), a_Nav_free(), a_Nav_jump(), a_Nav_push(), a_UIcmd_stop(), Nav_reload_callback(), and Nav_repush().
void a_Nav_cancel_expect_if_eq | ( | BrowserWindow * | bw, |
const DilloUrl * | url | ||
) |
Definition at line 260 of file nav.c.
References a_Bw_expected_url(), a_Nav_cancel_expect(), and a_Url_cmp().
Referenced by a_Capi_ccc(), and Cache_process_queue().
void a_Nav_expect_done | ( | BrowserWindow * | bw | ) |
Definition at line 272 of file nav.c.
References _MSG, a_Bw_expected_url(), a_Bw_expecting(), a_History_add_url(), a_Nav_cancel_expect(), a_Nav_stack_ptr(), a_UIcmd_set_buttons_sens(), a_UIcmd_set_scroll_by_fragment(), a_UIcmd_set_scroll_xy(), a_Url_decode_hex_str(), a_Url_dup(), a_Url_free(), a_Url_set_flags(), dFree(), dReturn_if_fail, FALSE, MSG, Nav_get_scroll_pos(), Nav_save_scroll_pos(), Nav_stack_append(), Nav_stack_clean(), Nav_stack_move_ptr(), Nav_stack_truncate(), TRUE, URL_E2EQuery, URL_FLAGS, URL_FRAGMENT_, URL_IgnoreScroll, URL_ReloadFromCache, and URL_ReloadPage.
Referenced by a_Web_dispatch_by_type().
void a_Nav_forw | ( | BrowserWindow * | bw | ) |
Definition at line 452 of file nav.c.
References a_History_get_url(), a_Nav_cancel_expect(), a_Nav_stack_ptr(), a_Nav_stack_size(), a_UIcmd_set_msg(), Nav_open_url(), and NAV_UIDX.
Referenced by a_UIcmd_forw().
void a_Nav_free | ( | BrowserWindow * | bw | ) |
Definition at line 43 of file nav.c.
References a_Nav_cancel_expect(), dFree(), and BrowserWindow::nav_stack.
int a_Nav_get_buf | ( | const DilloUrl * | Url, |
char ** | PBuf, | ||
int * | BufSize | ||
) |
Definition at line 580 of file nav.c.
References a_Capi_get_buf().
Referenced by a_UIcmd_view_page_source().
const char * a_Nav_get_content_type | ( | const DilloUrl * | url | ) |
Definition at line 596 of file nav.c.
References a_Capi_get_content_type().
Referenced by a_UIcmd_view_page_source().
int a_Nav_get_top_uidx | ( | BrowserWindow * | bw | ) |
Definition at line 72 of file nav.c.
References a_Nav_stack_ptr(), dList_nth_data(), and BrowserWindow::nav_stack.
int a_Nav_get_uidx | ( | BrowserWindow * | bw, |
int | i | ||
) |
Definition at line 63 of file nav.c.
References dList_nth_data(), and BrowserWindow::nav_stack.
void a_Nav_home | ( | BrowserWindow * | bw | ) |
Definition at line 466 of file nav.c.
References a_Nav_push(), DilloPrefs::home, and prefs.
void a_Nav_jump | ( | BrowserWindow * | bw, |
int | offset, | ||
int | new_bw | ||
) |
Definition at line 525 of file nav.c.
References a_History_get_url(), a_Nav_cancel_expect(), a_Nav_stack_ptr(), a_UIcmd_open_url_nw(), a_UIcmd_set_buttons_sens(), Nav_open_url(), and NAV_UIDX.
Referenced by a_UIcmd_nav_jump().
void a_Nav_push | ( | BrowserWindow * | bw, |
const DilloUrl * | url, | ||
const DilloUrl * | requester | ||
) |
Definition at line 342 of file nav.c.
References a_Bw_expect(), a_Bw_expected_url(), a_Nav_cancel_expect(), a_UIcmd_set_location_text(), a_Url_cmp(), dReturn_if_fail, Nav_open_url(), URL_FRAGMENT, and URL_STR.
Referenced by a_Nav_home(), a_UIcmd_open_url(), Cache_redirect(), Nav_redirection0_callback(), and UIcmd_open_url_nbw().
void a_Nav_redirection0 | ( | BrowserWindow * | bw, |
const DilloUrl * | new_url | ||
) |
Definition at line 422 of file nav.c.
References _MSG, a_Timeout_add(), a_Url_dup(), a_Url_free(), a_Url_set_flags(), dReturn_if_fail, BrowserWindow::meta_refresh_status, BrowserWindow::meta_refresh_url, Nav_redirection0_callback(), URL_E2EQuery, URL_FLAGS, and URL_IgnoreScroll.
Referenced by a_UIcmd_redirection0().
void a_Nav_reload | ( | BrowserWindow * | bw | ) |
Definition at line 516 of file nav.c.
References a_Timeout_add(), dReturn_if_fail, and Nav_reload_callback().
Referenced by a_Capi_ccc(), a_UIcmd_reload(), and Cache_auth_callback().
void a_Nav_repush | ( | BrowserWindow * | bw | ) |
Definition at line 393 of file nav.c.
References a_Timeout_add(), dReturn_if_fail, MSG, and Nav_repush_callback().
Referenced by a_UIcmd_repush(), a_UIcmd_zoom_in(), a_UIcmd_zoom_out(), and a_UIcmd_zoom_reset().
void a_Nav_save_url | ( | BrowserWindow * | bw, |
const DilloUrl * | url, | ||
const char * | filename | ||
) |
Definition at line 567 of file nav.c.
References a_Capi_open_url(), a_Web_new(), dStrdup(), _DilloWeb::filename, _DilloWeb::flags, Nav_save_cb(), and WEB_Download.
Referenced by UIcmd_save().
void a_Nav_set_vsource_url | ( | const DilloUrl * | Url | ) |
Definition at line 604 of file nav.c.
References a_Capi_set_vsource_url().
Referenced by a_UIcmd_view_page_source().
int a_Nav_stack_ptr | ( | BrowserWindow * | bw | ) |
Definition at line 55 of file nav.c.
References BrowserWindow::nav_stack_ptr.
Referenced by a_Nav_back(), a_Nav_expect_done(), a_Nav_forw(), a_Nav_get_top_uidx(), a_Nav_jump(), a_UIcmd_get_history(), a_UIcmd_set_buttons_sens(), Nav_get_scroll_pos(), and Nav_open_url().
int a_Nav_stack_size | ( | BrowserWindow * | bw | ) |
Definition at line 98 of file nav.c.
References dList_length(), and BrowserWindow::nav_stack.
Referenced by a_Capi_dpi_verify_request(), a_Nav_forw(), a_UIcmd_get_history(), a_UIcmd_set_buttons_sens(), Nav_reload_callback(), Nav_repush(), Nav_stack_clean(), and Nav_stack_move_ptr().
void a_Nav_unref_buf | ( | const DilloUrl * | Url | ) |
Definition at line 588 of file nav.c.
References a_Capi_unref_buf().
Referenced by a_UIcmd_view_page_source().
|
static |
Definition at line 139 of file nav.c.
References a_Nav_stack_ptr(), dList_nth_data(), and BrowserWindow::nav_stack.
Referenced by a_Nav_expect_done().
|
static |
Definition at line 193 of file nav.c.
References _MSG, a_Bw_add_client(), a_Bw_add_url(), a_Bw_cleanup(), a_Bw_stop_clients(), a_Capi_open_url(), a_History_get_url(), a_Nav_stack_ptr(), a_UIcmd_get_scroll_xy(), a_Url_cmp(), a_Web_new(), BW_Img, BW_Root, _DilloWeb::flags, MSG, Nav_save_scroll_pos(), Nav_stack_move_ptr(), NAV_UIDX, URL_E2EQuery, URL_FLAGS, URL_FRAGMENT, URL_IgnoreScroll, URL_ReloadFromCache, URL_STR, URL_STR_, and WEB_RootUrl.
Referenced by a_Nav_back(), a_Nav_forw(), a_Nav_jump(), a_Nav_push(), Nav_reload_callback(), and Nav_repush().
|
static |
Definition at line 403 of file nav.c.
References _MSG, a_History_get_url(), a_Nav_push(), a_Timeout_remove(), a_Url_free(), BrowserWindow::meta_refresh_status, BrowserWindow::meta_refresh_url, Nav_stack_move_ptr(), and NAV_TOP_UIDX.
Referenced by a_Nav_redirection0().
|
static |
Definition at line 474 of file nav.c.
References a_Bw_expect(), a_Dialog_choice(), a_History_get_url(), a_Nav_cancel_expect(), a_Nav_stack_size(), a_Url_dup(), a_Url_free(), a_Url_set_flags(), dStrAsciiCasecmp(), Nav_open_url(), NAV_TOP_UIDX, URL_E2EQuery, URL_FLAGS, URL_PATH, URL_Post, URL_ReloadPage, URL_SCHEME, and URL_SpamSafe.
Referenced by a_Nav_reload().
|
static |
Definition at line 363 of file nav.c.
References a_Bw_expect(), a_History_get_url(), a_Nav_cancel_expect(), a_Nav_stack_size(), a_Url_dup(), a_Url_free(), a_Url_set_flags(), Nav_open_url(), NAV_TOP_UIDX, URL_FLAGS, and URL_ReloadFromCache.
Referenced by Nav_repush_callback().
|
static |
Definition at line 378 of file nav.c.
References _MSG, a_Timeout_remove(), and Nav_repush().
Referenced by a_Nav_repush().
|
static |
Definition at line 544 of file nav.c.
References a_UIcmd_set_msg(), CacheClient::Buf, CacheClient::BufSize, _DilloWeb::bw, _DilloWeb::SavedBytes, _DilloWeb::stream, and CacheClient::Web.
Referenced by a_Nav_save_url().
|
static |
Definition at line 154 of file nav.c.
References dList_nth_data(), and BrowserWindow::nav_stack.
Referenced by a_Nav_expect_done(), and Nav_open_url().
|
static |
Definition at line 122 of file nav.c.
References dList_append(), dNew, dReturn_if_fail, and BrowserWindow::nav_stack.
Referenced by a_Nav_expect_done().
|
static |
Definition at line 168 of file nav.c.
References a_Nav_stack_size(), dFree(), dList_nth_data(), dList_remove_fast(), dReturn_if_fail, BrowserWindow::nav_stack, BrowserWindow::nav_stack_ptr, and NAV_UIDX.
Referenced by a_Nav_expect_done().
|
static |
Definition at line 83 of file nav.c.
References a_Nav_stack_size(), dReturn_if_fail, and BrowserWindow::nav_stack_ptr.
Referenced by a_Nav_expect_done(), Nav_open_url(), and Nav_redirection0_callback().
|
static |
Definition at line 106 of file nav.c.
References dFree(), dList_length(), dList_nth_data(), dList_remove_fast(), dReturn_if_fail, and BrowserWindow::nav_stack.
Referenced by a_Nav_expect_done().