diff options
author | Marcel Schuette <marcel.schuette@pelagicore.com> | 2013-08-07 11:56:37 +0200 |
---|---|---|
committer | Marcel Schuette <marcel.schuette@pelagicore.com> | 2013-08-07 11:56:37 +0200 |
commit | 77d4b3423a2953e658f0a86af59b78c10db9d251 (patch) | |
tree | fd0e38ad6eea07600e7448706fecbae2318de6de /browser/webpagewindow.cpp | |
parent | e3058a7efed51306f0d07490d81c5bd6898522ab (diff) | |
download | browser-poc-77d4b3423a2953e658f0a86af59b78c10db9d251.tar.gz |
added static browser actions interface
Diffstat (limited to 'browser/webpagewindow.cpp')
-rw-r--r-- | browser/webpagewindow.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/browser/webpagewindow.cpp b/browser/webpagewindow.cpp index 31473ed..264b03a 100644 --- a/browser/webpagewindow.cpp +++ b/browser/webpagewindow.cpp @@ -41,7 +41,26 @@ conn::brw::ERROR_IDS webpagewindow::forward() { conn::brw::ERROR_IDS webpagewindow::getBrowserActionsState(conn::brw::BrowserActions &a_browserActionsState) { qDebug() << __PRETTY_FUNCTION__; - return conn::brw::EID_NOT_IMPLEMENTED; + conn::brw::BrowserScrollDirections *temp_scrolldirections = new conn::brw::BrowserScrollDirections(); + temp_scrolldirections->u8Left = 1; + temp_scrolldirections->u8Right = 1; + temp_scrolldirections->u8Top = 1; + temp_scrolldirections->u8Bottom = 1; + + conn::brw::BrowserActions *temp_browseractions = new conn::brw::BrowserActions(); + temp_browseractions->u8Back = 0x03; + temp_browseractions->u8Forward = 0x03; + temp_browseractions->u8Reload = 0x03; + temp_browseractions->u8Stop = 0x03; + temp_browseractions->u8LoadUrl = 0x03; + temp_browseractions->u8Select = 0x00; + temp_browseractions->sScrollSymbol = *temp_scrolldirections; + temp_browseractions->sScrollPage = *temp_scrolldirections; + temp_browseractions->sScrollLink = *temp_scrolldirections; + + a_browserActionsState = *temp_browseractions; + + return conn::brw::EID_NO_ERROR; } conn::brw::ERROR_IDS webpagewindow::getContentSize(uint &a_u32Width, uint &a_u32Height) { |