diff --git a/src/app/browser.cpp b/src/app/browser.cpp index 6a351b34..f7a74d3f 100644 --- a/src/app/browser.cpp +++ b/src/app/browser.cpp @@ -115,7 +115,7 @@ Browser::Browser( "tab_history_back", [this] { - // @TODO + browserMain->tab_history_back(); } ); @@ -123,7 +123,7 @@ Browser::Browser( "tab_history_forward", [this] { - // @TODO + browserMain->tab_history_forward(); } ); } diff --git a/src/app/browser/main.cpp b/src/app/browser/main.cpp index 5bdb30bd..b5360343 100644 --- a/src/app/browser/main.cpp +++ b/src/app/browser/main.cpp @@ -79,6 +79,16 @@ void Main::tab_close_all() mainTab->close_all(); }; +void Main::tab_history_back() +{ + mainTab->history_back(); +}; + +void Main::tab_history_forward() +{ + mainTab->history_forward(); +}; + void Main::refresh() { mainTab->refresh( diff --git a/src/app/browser/main.hpp b/src/app/browser/main.hpp index 23d04854..3b7f0164 100644 --- a/src/app/browser/main.hpp +++ b/src/app/browser/main.hpp @@ -35,6 +35,8 @@ namespace app::browser void tab_close_left(); void tab_close_right(); void tab_close(); + void tab_history_back(); + void tab_history_forward(); void tab_update(); void refresh(); diff --git a/src/app/browser/main/tab.cpp b/src/app/browser/main/tab.cpp index 01c239a2..294d346b 100644 --- a/src/app/browser/main/tab.cpp +++ b/src/app/browser/main/tab.cpp @@ -98,6 +98,12 @@ void Tab::close_all() } } +void Tab::history_back() +{} // @TODO + +void Tab::history_forward() +{} // @TODO + void Tab::refresh( const int & PAGE_NUMBER ) { diff --git a/src/app/browser/main/tab.hpp b/src/app/browser/main/tab.hpp index 9c7d3aaf..dc92f834 100644 --- a/src/app/browser/main/tab.hpp +++ b/src/app/browser/main/tab.hpp @@ -54,6 +54,9 @@ namespace app::browser::main void close_right(); void close_all(); + void history_back(); + void history_forward(); + void refresh( const int & PAGE_NUMBER );