virtual void OnKeypadOpened(Tizen::Ui::Control& source);
virtual void OnKeypadClosed(Tizen::Ui::Control& source);
virtual void OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::KeypadAction keypadAction);
+ virtual void OnKeypadBoundsChanged(Tizen::Ui::Control& source);
//ISearchBarEventListener
virtual void OnSearchBarModeChanged(Tizen::Ui::Controls::SearchBar& source, Tizen::Ui::Controls::SearchBarMode mode);
virtual void OnKeypadOpened(Tizen::Ui::Control& source);
virtual void OnKeypadClosed(Tizen::Ui::Control& source);
virtual void OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::KeypadAction keypadAction);
+ virtual void OnKeypadBoundsChanged(Tizen::Ui::Control& source);
//ISceneEventListener
virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
*/
result GetUrlCount(const Tizen::Base::String& url, int& count);
+ void UpdateHistoryFavIcon(History& history, Tizen::Graphics::Bitmap& favIconImage);
+
private:
/**
result InitMostVisitedSitesView(Tizen::Ui::OrientationStatus orientationStatus);
void MoveUiControls(void);
void UpdateFavicon(void);
- void RelayoutControls(bool showAddressbar);
+ void RelayoutControls(bool showAddressbar,bool relayoutFooter = true);
void ShowFindWordPanel(bool show = true, bool isTouchPressed = false);
void ShowMostVisitedSitesPanel(void);
void StartWordSearch();
Tizen::Base::String __editTextUrl;
Addressbar* __pAddressbar;
+ History* __pHistory;
Tizen::Graphics::Point __contextMenuPosition;
Tizen::Ui::Controls::Label* __pArticleReaderLabel;
Tizen::Ui::Controls::Panel* __pArticleReaderPanel;
result ExecuteHistoryQuery(const Tizen::Base::String& pszFormatQuery, int& nRowCount, History& history);
+ result ExecuteUpdateHistoryFavIconQuery(const Tizen::Base::String& formatQuery, int& nRowCount, History& history);
+
result GetColumn(int nIndex, Tizen::Base::String& strVal);
result GetColumn(int nIndex, int& nIntVal);
</Panel>
<Panel id="IDC_FOOTER_PANEL" parent="IDL_FORM">
<property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
- <layout bottomRelation="IDL_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="112.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="1108.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="112.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="1108.0"/>
<layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="105.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0" y="555.0"/>
</Panel>
<Label id="IDC_CHECK_LABEL" parent="IDC_FOOTER_PANEL">
// if(__isCancelledClicked == true)
{
if(__pAddressbarUrlField)
- __pAddressbarUrlField->SetText(__displayUrl);
+ {
+ String removedHttpUrl = RemoveHttpTextFromDisplayURL();
+ if (removedHttpUrl.IsEmpty() == false)
+ {
+ __pAddressbarUrlField->SetText(removedHttpUrl);
+ }
+ else
+ {
+ __pAddressbarUrlField->SetText(__displayUrl);
+ }
+ }
+// __pAddressbarUrlField->SetText(__displayUrl);
__editTextUrl = L"";
SetShowState(false);
if(__pListener != null)
{
- __pListener->OnAddressBarKeypadClosed(*this);
+ __pListener->OnAddressBarKeypadClosed(*this,false);
}
}
__isCancelledClicked = false;
{
AppLog("Focus::Addressbar::OnFocusLost");
if(__pAddressbarUrlField)
- __pAddressbarUrlField->SetText(__displayUrl);
+ {
+ String removedHttpUrl = RemoveHttpTextFromDisplayURL();
+ if (removedHttpUrl.IsEmpty() == false)
+ {
+ __pAddressbarUrlField->SetText(removedHttpUrl);
+ }
+ else
+ {
+ __pAddressbarUrlField->SetText(__displayUrl);
+ }
+ }
+ // __pAddressbarUrlField->SetText(__displayUrl);
__editTextUrl = L"";
SetShowState(false);
if(__pListener != null)
{
- __pListener->OnAddressBarKeypadClosed(*this);
+ __pListener->OnAddressBarKeypadClosed(*this,false);
}
}
if (__pPopUp != null)
{
__pPopUp->Initialize();
- AddControl(*__pPopUp);
+ AddControl(__pPopUp);
}
__pSearchListView = new(std::nothrow) ListView();
void
BookmarkListForm::OnKeypadWillOpen(Tizen::Ui::Control& source)
{
-// GetFooter()->SetShowState(false);
- __pSearchListView->SetBounds(__pSearchListView->GetX(), __pSearchListView->GetY(), __pSearchListView->GetWidth(), __pSearchListView->GetHeight() + GetFooter()->GetHeight());
+ GetFooter()->SetShowState(false);
+ __pSearchListView->SetBounds(__pSearchListView->GetX(), __pSearchListView->GetY(), GetClientAreaBounds().width, GetClientAreaBounds().height - __pSearchBar->GetHeight());
__pSearchListView->SetEnabled(false);
__pSearchBar->SetContentAreaSize(Dimension(__pSearchListView->GetWidth(), __pSearchListView->GetHeight()));
Invalidate(true);
- __pSearchListView->SetBounds(__pSearchListView->GetX(), __pSearchListView->GetY(), __pSearchListView->GetWidth(), __pSearchListView->GetHeight() - GetFooter()->GetHeight());
}
void
BookmarkListForm::OnKeypadOpened(Tizen::Ui::Control& source)
{
- GetFooter()->SetShowState(false);
-// __pSearchListView->SetBounds(__pSearchListView->GetX(), __pSearchListView->GetY(), __pSearchListView->GetWidth(), GetClientAreaBounds().height - __pSearchBar->GetHeight());
- __pSearchListView->UpdateList();
+ __pSearchListView->SetBounds(__pSearchListView->GetX(), __pSearchListView->GetY(), __pSearchListView->GetWidth(), GetClientAreaBounds().height - __pSearchBar->GetHeight());
Invalidate(true);
}
return;
}
GetFooter()->SetShowState(true);
- GetFooter()->Invalidate(true);
__pSearchListView->SetBounds(__pSearchListView->GetX(), __pSearchListView->GetY(), __pSearchListView->GetWidth(), GetClientAreaBounds().height - __pSearchBar->GetHeight());
- __pListview->SetBounds(__pSearchListView->GetX(), __pSearchBar->GetY() + __pSearchBar->GetHeight(), __pSearchListView->GetWidth(), GetClientAreaBounds().height - __pSearchBar->GetHeight());
__pSearchListView->Invalidate(false);
- //__pSearchListView->SetEnabled(true);
__pSearchBar->SetContentAreaSize(Dimension(__pSearchListView->GetWidth(), GetClientAreaBounds().height - __pSearchBar->GetHeight()));
+ __pListview->SetBounds(0, __pSearchBar->GetY() + __pSearchBar->GetHeight(), GetClientAreaBounds().width, GetClientAreaBounds().height - __pSearchBar->GetHeight());
Invalidate(true);
}
{
AppLog("BookmarkListForm::OnKeypadActionPerformed %d",keypadAction);
+ if (__pSearchBar != null)
+ {
+ __pSearchBar->HideKeypad();
+ }
if ( __pSearchBar != null && keypadAction == KEYPAD_ACTION_SEARCH)
{
if (__pSearchBar->GetText().GetLength() == 0)
}
void
+BookmarkListForm::OnKeypadBoundsChanged(Tizen::Ui::Control& source)
+{
+ FloatRectangle clientRect;
+ clientRect = GetClientAreaBoundsF();
+ AppLogDebug("SearchBarForm::OnKeypadBoundsChanged ClientBounds(%f, %f, %f, %f)",clientRect.x, clientRect.y, clientRect.width, clientRect.height);
+ __pSearchBar->SetContentAreaSize(FloatDimension(clientRect.width, clientRect.height - __pSearchBar->GetHeightF()));
+ __pSearchListView->SetSize(FloatDimension(clientRect.width, clientRect.height - __pSearchBar->GetHeightF()));
+ __pListview->SetSize(FloatDimension(clientRect.width, clientRect.height - __pSearchBar->GetHeightF()));
+// __pListview->SetEnabled(false);
+ Invalidate(true);
+}
+
+void
BookmarkListForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
{
AppLogDebug("BookmarkListForm::OnSceneActivatedN called");
using namespace Tizen::Base::Runtime;
using namespace Tizen::Graphics;
using namespace Tizen::Locales;
+using namespace Tizen::Media;
using namespace Tizen::Ui;
using namespace Tizen::Ui::Controls;
using namespace Tizen::Ui::Scenes;
int bookmarkBtnWidth = 0;
String bitmapId;
+ Image* pImage = null;
+ pImage = new Image();
+ pImage->Construct();
+
if(__pGroupData == null)
{
delete pItem;
return null;
}
- bitmapId = pHistory->GetFaviconId() ;
+ ByteBuffer* pFavIconBuffer = null;
+ pFavIconBuffer = pHistory->GetFavIconBuffer();
+
+ AppLog("BookmarkListForm::CreateItem check 0");
+
+ if (pFavIconBuffer != null)
+ {
+ AppLog("BookmarkListForm::CreateItem pFavIconBuffer is not null");
+ }
+ else
+ {
+ AppLog("BookmarkListForm::CreateItem pFavIconBuffer is null");
+ }
+
+ pBitmap = pImage->DecodeN(*pFavIconBuffer, IMG_FORMAT_PNG, BITMAP_PIXEL_FORMAT_ARGB8888);
+
+ AppLog("BookmarkListForm::CreateItem check 1");
- pBitmap = pHistory->GetFavIconBitmap();
+ //bitmapId = pHistory->GetFaviconId() ;
+ //pBitmap = pHistory->GetFavIconBitmap();
if (pBitmap == null)
{
TryCatch(!IsFailed(r), "CreateItem failed with %s",GetErrorMessage(r));
delete pBookmarkBitmap;
}
+ delete pImage;
return pItem;
CATCH:
{
// Add the history in bookmark database
result r = E_FAILURE;
- BookmarkData pBookmark;
+ BookmarkData bookmark;
String bookmarkTitle = pHistory->GetHistoryTitle();
- pBookmark.SetBookmarkTitle(bookmarkTitle);
- pBookmark.SetUrl(pHistory->GetHistoryUrl());
- pBookmark.SetFaviconId(pHistory->GetFaviconId());
-
- r = BookmarkPresentationModel::GetInstance()->SaveBookmark(pBookmark);
+ bookmark.SetBookmarkTitle(bookmarkTitle);
+ bookmark.SetUrl(pHistory->GetHistoryUrl());
+ bookmark.SetFaviconId(pHistory->GetFaviconId());
+ bookmark.SetFavIconBuffer(*pHistory->GetFavIconBuffer());
+ //r = BookmarkPresentationModel::GetInstance()->SaveBookmark(pBookmark);
+ r = BookmarkPresentationModel::GetInstance()->SaveTempBookmark(bookmark);
}
else
{
}
void
+HistoryListForm::OnKeypadBoundsChanged(Tizen::Ui::Control& source)
+{
+ FloatRectangle clientRect;
+ clientRect = GetClientAreaBoundsF();
+ AppLogDebug("SearchBarForm::OnKeypadBoundsChanged ClientBounds(%f, %f, %f, %f)",clientRect.x, clientRect.y, clientRect.width, clientRect.height);
+ __pSearchBar->SetContentAreaSize(FloatDimension(clientRect.width, clientRect.height - __pSearchBar->GetHeightF()));
+ __pSearchListView->SetSize(FloatDimension(clientRect.width, clientRect.height - __pSearchBar->GetHeightF()));
+ __pGroupedListView->SetSize(FloatDimension(clientRect.width, clientRect.height - __pSearchBar->GetHeightF()));
+// __pGroupedListView->SetEnabled(false);
+ Invalidate(true);
+}
+
+void
HistoryListForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
{
result r = E_FAILURE;
void
HistoryListForm::OnKeypadClosed(Control& source)
{
-
+ if(Clipboard::GetInstance()->IsPopupVisible() == true)
+ {
+ return;
+ }
GetFooter()->SetShowState(true);
__pSearchListView->SetBounds(__pSearchListView->GetX(), __pSearchListView->GetY(), __pSearchListView->GetWidth(), GetClientAreaBounds().height - __pSearchBar->GetHeight());
__pSearchListView->Invalidate(false);
CATCH: return r;
}
+void HistoryPresentationModel::UpdateHistoryFavIcon(History& history, Tizen::Graphics::Bitmap& favIconImage)
+{
+ result r = E_FAILURE;
+ String historyTable(HISTORY_DATA_TABLE);
+ String query;
+ String columnNames;
+ int resultCount = -1;
+
+ Image* pImage = null;
+ pImage = new Image();
+ pImage->Construct();
+
+ int __favIconWidth = favIconImage.GetWidth();
+ int __favIconHeight = favIconImage.GetHeight();
+
+ Tizen::Base::ByteBuffer* pFavBuffer = pImage->EncodeToBufferN(favIconImage, IMG_FORMAT_PNG);
+
+ history.SetFavIconBuffer(*pFavBuffer);
+
+ delete pImage;
+
+ query.Append(L"UPDATE ");
+ query.Append(historyTable);
+ query.Append(" SET FAVICON = ");
+ query.Append("?");
+ query.Append(", FAVICON_W = ");
+ query.Append("?");
+ query.Append(", FAVICON_H = ");
+ query.Append("?");
+ query.Append(" WHERE ID = ");
+ query.Append("?");
+
+ AppLog("query is %ls", query.GetPointer());
+
+ r = PresentationModelBase::ExecuteUpdateHistoryFavIconQuery(query, resultCount, history);
+ if (r == E_SUCCESS)
+ {
+ AppLog("HistoryPresentationModel::SaveHistory result is success");
+ }
+ else
+ {
+ AppLog("HistoryPresentationModel::SaveHistory result is failure");
+ }
+ r = PresentationModelBase::CommitDb();
+
+}
+
result
HistoryPresentationModel::SaveTempHistory(History& history)
{
MainForm::MainForm(void)
{
__isLongPressedDone = false;
+ __pHistory = null;
__pAddressbar = null;
// __pMostVisitedSitesPanel = null;
__pMostVisitedListView = null;
{
__pAddressbar->SetAddressbarEventListener(null);
}
+
+ if(__pHistory != null)
+ {
+ delete __pHistory;
+ __pHistory = null;
+ }
+
if (__pReaderData != null)
{
delete __pReaderData;
return r;
}
__pAddressbar->SetAddressbarEventListener(this);
- AddControl(*__pAddressbar);
+ AddControl(__pAddressbar);
__pAddressbar->SetBounds(Rectangle(0,0,GetClientAreaBounds().width,__pAddressbar->GetHeight()));
SetControlAlwaysOnTop(*__pAddressbar, true);
__adressPanelPosition = __pAddressbar->GetPosition();
__pArticleReaderLabel = new Label();
__pArticleReaderLabel->Construct(Rectangle(__pArticleReaderPanel->GetX(),__pArticleReaderPanel->GetY(),__pArticleReaderPanel->GetWidth(),__pArticleReaderPanel->GetHeight()),L"");
- __pBlankPanel->AddControl(*__pArticleReaderLabel);
- __pBlankPanel->AddControl(*__pArticleReaderPanel);
- AddControl(*__pBlankPanel);
+ __pBlankPanel->AddControl(__pArticleReaderLabel);
+ __pBlankPanel->AddControl(__pArticleReaderPanel);
+ AddControl(__pBlankPanel);
__pBlankPanel->SetBounds(0,0,GetClientAreaBounds().width,GetClientAreaBounds().height);
__pArticleReaderPanel->SetBounds((GetClientAreaBounds().width - __pArticleReaderPanel->GetWidth())/2,(GetClientAreaBounds().height - __pArticleReaderPanel->GetHeight())/2, __pArticleReaderPanel->GetWidth(), __pArticleReaderPanel->GetHeight());
__pArticleReaderLabel->SetBounds(__pArticleReaderPanel->GetX(),__pArticleReaderPanel->GetY(),__pArticleReaderPanel->GetWidth(),__pArticleReaderPanel->GetHeight());
- __pArticleReaderPanel->AddControl(*__pWebReader);
+ __pArticleReaderPanel->AddControl(__pWebReader);
__pWebReader->SetBounds(Rectangle(2,2, __pArticleReaderPanel->GetWidth()-2,__pArticleReaderPanel->GetHeight() - 96 -2));
Bitmap* pBitmap = CommonUtil::GetNinepatchedBitmapN(L"I01_popup_bg.9.png",__pArticleReaderPanel->GetWidth(),__pArticleReaderPanel->GetHeight());
Bitmap* pSrcBitmap = CommonUtil::GetNinepatchedBitmapN(L"I01_popup_bottom_bg.9.png",__pArticleReaderPanel->GetWidth(),__pArticleReaderPanel->GetHeight());
}
else
{
- r = AddControl(*__pWebViewer);
+ r = AddControl(__pWebViewer);
if (IsFailed(r))
{
AppLogException("There is some problem in the xml file. Please check.");
return E_FAILURE;
}
- AddControl(*__pFindWordControl);
+ AddControl(__pFindWordControl);
__pFindWordControl->SetBounds(0,0, __pFindWordControl->GetWidth(), __pFindWordControl->GetHeight());
SetControlAlwaysOnTop(*__pFindWordControl,true);
__pFindWordControl->SetShowState(false);
{
//__pArticleReaderPanel->SetShowState(false);
//__pArticleReaderPanel->Show();
- RemoveControl(*__pBlankPanel);
+ RemoveControl(__pBlankPanel);
//RemoveControl(*__pArticleReaderPanel);
__pArticleReaderPanel = null;
__pBlankPanel = null;
InitFooter();
InitAddressbar();
+ __pFooterPanel->SetBounds(0, GetClientAreaBounds().height - __pFooterPanel->GetHeight(), GetClientAreaBounds().width, __pFooterPanel->GetHeight());
+
// hiding the address bar
// __pAddressbar->SetBounds(__pAddressbar->GetX(), __pAddressbar->GetY() - __pAddressbar->GetHeight(), __pAddressbar->GetWidth(), __pAddressbar->GetHeight());
__pAddressbar->SetShowState(false);
{
InitMostVisitedSitesView(GetOrientationStatus());
}
+ else if (homePage.CompareTo((L"IDS_BR_BODY_BLANK_PAGE")) == 0)
+ {
+ if(__pMostVisitedListView != null)
+ {
+ __pMostVisitedListView->SetShowState(false);
+ }
+ }
if (__pAddressbar != null && pArgs != null && (previousSceneId == IDSCN_BOOKMARK_VIEW || previousSceneId == IDSCN_HISTORY_LIST))
{
bool isPrivateBrowsing = SettingPresentationModel::GetInstance()->GetPrivateOn();
if (isPrivateBrowsing == false)
{
- History* pHistory = new(std::nothrow) History;
+ if(__pHistory != null)
+ {
+ delete __pHistory;
+ __pHistory = null;
+ }
+ __pHistory = new(std::nothrow) History;
HistoryPresentationModel::GetCurrentDateTime(date);
- if(__pWindowInfo)
+ if (__pWindowInfo)
{
- pHistory->SetHistoryTitle(__pWindowInfo->pageTitle);
+ __pHistory->SetHistoryTitle(__pWindowInfo->pageTitle);
AppLogDebug("MainForm::OnLoadingCompleted pagetitle = %ls", __pWindowInfo->pageTitle.GetPointer());
- pHistory->SetHistoryUrl(__pWindowInfo->pageUrl);
+ __pHistory->SetHistoryUrl(__pWindowInfo->pageUrl);
AppLogDebug("MainForm::OnLoadingCompleted pageUrl = %ls", __pWindowInfo->pageUrl.GetPointer());
}
- pHistory->SetVisitedTime(date);
- /*String id = "";
- if(__pWindowInfo)
- id = FaviconManager::GetInstance()->SaveFavicon(*__pWindowInfo->pFavicon, __pWindowInfo->faviconUrl);
- pHistory->SetFaviconId(id);*/
+ __pHistory->SetVisitedTime(date);
if (__pWebViewer != null)
{
if (pTempBitmap != null)
{
AppLog("MainForm::OnLoadingCompleted setting the fav icon 1");
- pHistory->SetFavIconBitmap(*pTempBitmap);
+ __pHistory->SetFavIconBitmap(*pTempBitmap);
}
AppLog("MainForm::OnLoadingCompleted setting the fav icon 2");
{
pBitmap->Construct(*pCanvas, pCanvas->GetBounds());
pBitmap->Scale(Dimension(pBitmap->GetWidth()/4, pBitmap->GetHeight()/4));
- pHistory->SetThumbnail(pBitmap);
+ __pHistory->SetThumbnail(pBitmap);
}
Bitmap *pFavIcon = __pWebViewer->GetFaviconN();
- if(pFavIcon)
+ if (pFavIcon)
{
- pHistory->SetFavIconBitmap(*pFavIcon);
+ __pHistory->SetFavIconBitmap(*pFavIcon);
delete pFavIcon;
}
- HistoryPresentationModel::GetInstance()->SaveTempHistory(*pHistory);
- delete pHistory;
+ HistoryPresentationModel::GetInstance()->SaveTempHistory(*__pHistory);
+ //delete pHistory;
}
else
{
void MainForm::OnFaviconReceived(const Tizen::Graphics::Bitmap& favicon)
{
AppLog("MainForm::OnFaviconReceived");
- Bitmap* pFavIconBitmap = __pWebViewer->GetFaviconN();
-
- if (pFavIconBitmap != null)
+ if (__pWebViewer != null && __pHistory != null)
{
- pFavIconBitmap->GetWidth();
- pFavIconBitmap->GetHeight();
+ Bitmap* pFavIconBitmap = __pWebViewer->GetFaviconN();
+
+ HistoryPresentationModel::GetInstance()->UpdateHistoryFavIcon(*__pHistory, *(__pWebViewer->GetFaviconN()));
}
}
__pAddressbar->SetShowState(false);
- RelayoutControls(false);
+ RelayoutControls(false,false);
}
{
__pFooterUrlField->SetFocusable(true);
}
- RelayoutControls(false);
+ RelayoutControls(false,footerState);
}
void
}
void
-MainForm::RelayoutControls(bool showAddressbar)
+MainForm::RelayoutControls(bool showAddressbar,bool relayoutFooter)
{
__webControlPosition.y = 0;
__webControlHeight = GetClientAreaBounds().height;
__pFindWordControl->SetBounds(0, 0, GetClientAreaBounds().width, __pFindWordControl->GetHeight());
}
- if(__pFooterPanel != null && __pFooterPanel->GetShowState() == true)
+ if(__pFooterPanel != null && __pFooterPanel->GetShowState() == true && relayoutFooter == true)
{
__webControlHeight -= __pFooterPanel->GetHeight();
+
__pFooterPanel->SetBounds(0, __webControlPosition.y + __webControlHeight, GetClientAreaBounds().width, __pFooterPanel->GetHeight());
}
if (__pWebViewer != null && __pWebViewer->GetShowState() == true)
if (__pMostVisitedListView != null)
{
- RemoveControl(*__pMostVisitedListView);
+ RemoveControl(__pMostVisitedListView);
}
if(__pMostVisitedSites != null)
{
__pMostVisitedListView->SetItemProvider(*this);
__pMostVisitedListView->AddListViewItemEventListener(*this);
__pMostVisitedListView->SetTextOfEmptyList(CommonUtil::GetString(L"IDS_BR_BODY_NO_RECENTLY_VISITED_SITES"));
- AddControl(*__pMostVisitedListView);
+ AddControl(__pMostVisitedListView);
__pMostVisitedListView->UpdateList();
return E_SUCCESS;
SceneManager* pSceneManager = null;
if ( __pLabel != NULL)
{
- AddControl(*__pLabel);
+ AddControl(__pLabel);
__pLabel->SetBackgroundColor(CUSTOM_COLOR_INFO_LABEL);
}
- __form.AddControl(*this);
+ __form.AddControl(this);
SceneId sceneId = pSceneManager->GetInstance()->GetCurrentSceneId();
return r;
}
+result PresentationModelBase::ExecuteUpdateHistoryFavIconQuery(const Tizen::Base::String& formatQuery, int& nRowCount, History& history)
+{
+ result r = E_FAILURE;
+ String queryType;
+ int historyID;
+ r = Integer::Parse(history.GetHistoryId(), historyID);
+
+ if (__pDataBase == null)
+ {
+ return E_INIT_FAILED;
+ }
+
+ if (__pDbEnum != null)
+ {
+ delete __pDbEnum;
+ __pDbEnum = null;
+ }
+
+ if (__pDbStatement != null)
+ {
+ delete __pDbStatement;
+ __pDbStatement = null;
+ }
+ r = formatQuery.SubString(0, QUERY_TYPE_LENGTH, queryType);
+
+ if (__isBeginTransaction == false )
+ {
+ r = __pDataBase->BeginTransaction();
+ if (IsFailed(r))
+ {
+ AppLogException("Failed Database::BeginTransaction() . (error: %s)", GetErrorMessage(r));
+ return r;
+ }
+
+ __isBeginTransaction = true;
+ __pDbStatement = __pDataBase->CreateStatementN(formatQuery);
+ if(GetLastResult() != E_SUCCESS)
+ {
+ AppLog("CreateStatementN error: %s", GetErrorMessage(GetLastResult()));
+ return GetLastResult();
+ }
+ __pDbStatement->BindBlob(0,*(history.GetFavIconBuffer()));
+ __pDbStatement->BindInt(1,history.GetFavIconWidth());
+ __pDbStatement->BindInt(2,history.GetFavIconHeight());
+ __pDbStatement->BindInt(3,historyID);
+
+ __pDataBase->ExecuteStatementN(*__pDbStatement);
+
+ if (IsFailed(GetLastResult()))
+ {
+ AppLog("PresentationModelBase::ExecuteBookmarkQuery Failed Database::ExecuteSql(). (error: %s, query: %ls)", GetErrorMessage(r), formatQuery.GetPointer());
+ return r;
+ }
+ else
+ {
+ AppLog("PresentationModelBase::ExecuteBookmarkQuery success database");
+ }
+ }
+
+ return r;
+}
+
result
PresentationModelBase::DbIsNextRowPresent(bool& nextRowpresent)
{