__pMultiWindowButton->AddActionEventListener(*this);
__pMultiWindowButton->SetActionId(IDA_MULTIWINDOWBTN_CLICKED);
+ if(pPressedBitmap)
+ {
+ delete pPressedBitmap;
+ pPressedBitmap = null;
+ }
}
if (__pMoreButton)
__pFooterUrlField->SetKeypadAction(KEYPAD_ACTION_GO);
__pFooterUrlField->AddKeypadEventListener(*this);
__pFooterUrlField->SetPropagatedTouchEventListener(this);
+ __pFooterUrlField->AddFocusEventListener(*this);
if (SettingPresentationModel::GetInstance()->GetHomepage().CompareTo((L"IDS_BR_BODY_MOST_VISITED_SITES")) == 0)
{
if(__pWebViewer)
{
__pWebViewer->RemoveTouchEventListener(*this);
+ __pWebViewer->SetWebUiEventListenerF(null);
+ __pWebViewer->SetWebKeypadEventListener(null);
+ __pWebViewer->SetTextSearchListener(null);
}
+
if (__pItemContext)
{
delete __pItemContext;
{
case IDA_BACKBTN_CLICKED:
{
+ if(__pImageMenu && __pImageMenu->GetShowState() == true)
+ {
+ AppLog("Hiding the menu");
+ __pImageMenu->SetShowState(false);
+ }
if (__pWebViewer && __pWebViewer->CanGoBack())
{
__pWebViewer->GoBack();
pApp = UiApp::GetInstance();
if (pApp != null)
{
+ RemoveOrientationEventListener(*this);
+
+ if(__pAddressbar)
+ {
+ __pAddressbar->SetAddressbarEventListener(null);
+ }
+
+ if(__pWebViewer)
+ {
+ __pWebViewer->RemoveTouchEventListener(*this);
+ __pWebViewer->SetWebUiEventListenerF(null);
+ __pWebViewer->SetWebKeypadEventListener(null);
+ __pWebViewer->SetTextSearchListener(null);
+ __pWebViewer->SetLoadingListener(null);
+ }
r = pApp->Terminate();
if (IsFailed(r))
{
pApp = UiApp::GetInstance();
if (pApp != null)
{
+ RemoveOrientationEventListener(*this);
+
+ if(__pAddressbar)
+ {
+ __pAddressbar->SetAddressbarEventListener(null);
+ }
+
+ if(__pWebViewer)
+ {
+ __pWebViewer->RemoveTouchEventListener(*this);
+ __pWebViewer->SetWebUiEventListenerF(null);
+ __pWebViewer->SetWebKeypadEventListener(null);
+ __pWebViewer->SetTextSearchListener(null);
+ __pWebViewer->SetLoadingListener(null);
+ }
r = pApp->Terminate();
if (IsFailed(r))
{
pApp = UiApp::GetInstance();
if (pApp != null)
{
+ RemoveOrientationEventListener(*this);
+
+ if(__pAddressbar)
+ {
+ __pAddressbar->SetAddressbarEventListener(null);
+ }
+
+ if(__pWebViewer)
+ {
+ __pWebViewer->RemoveTouchEventListener(*this);
+ __pWebViewer->SetWebUiEventListenerF(null);
+ __pWebViewer->SetWebKeypadEventListener(null);
+ __pWebViewer->SetTextSearchListener(null);
+ __pWebViewer->SetLoadingListener(null);
+ }
r = pApp->Terminate();
if (IsFailed(r))
{
pApp = UiApp::GetInstance();
if (pApp != null)
{
+
+ RemoveOrientationEventListener(*this);
+
+ if(__pAddressbar)
+ {
+ __pAddressbar->SetAddressbarEventListener(null);
+ }
+
+ if(__pWebViewer)
+ {
+ __pWebViewer->RemoveTouchEventListener(*this);
+ __pWebViewer->SetWebUiEventListenerF(null);
+ __pWebViewer->SetWebKeypadEventListener(null);
+ __pWebViewer->SetTextSearchListener(null);
+ __pWebViewer->SetLoadingListener(null);
+ }
r = pApp->Terminate();
return;
}
if (__pNotification != null)
{
__pNotification->SetText(message);
- __pNotification->SetPositionDiff(__pFooterPanel->GetHeight());
+ __pNotification->SetPositionDiff(__pFooterPanel->GetHeight() - 12);
__pNotification->ShowNotification();
}
}
if (__pNotification != null)
{
__pNotification->SetText(message);
- __pNotification->SetPositionDiff(__pFooterPanel->GetHeight());
+ __pNotification->SetPositionDiff(__pFooterPanel->GetHeight() - 12);
__pNotification->ShowNotification();
pBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ICON_BOOKMARK_ON_TEMP);
}
__pFindWordCountLabel->SetText(L"0/0");
__pWebViewer->SearchText(L"aaaabbbbcccc",true);
AppLog("akjshdasd 1");
- __pFooterPanel->SetShowState(true);
+ if(__isWebKeypadOpened == false)
+ __pFooterPanel->SetShowState(true);
ShowFindWordPanel(false);
}
break;
MainForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
{
result r = E_FAILURE;
+ if(__pImageMenu && __pImageMenu->GetShowState() == true)
+ {
+ AppLog("Hiding the menu");
+ __pImageMenu->SetShowState(false);
+ }
if (__pWebViewer && __pWebViewer->CanGoBack())
{
__pWebViewer->GoBack();
pApp = UiApp::GetInstance();
if (pApp != null)
{
+ RemoveOrientationEventListener(*this);
+
+ if(__pAddressbar)
+ {
+ __pAddressbar->SetAddressbarEventListener(null);
+ }
+
+ if(__pWebViewer)
+ {
+ __pWebViewer->RemoveTouchEventListener(*this);
+ __pWebViewer->SetWebUiEventListenerF(null);
+ __pWebViewer->SetWebKeypadEventListener(null);
+ __pWebViewer->SetTextSearchListener(null);
+ __pWebViewer->SetLoadingListener(null);
+ }
r = pApp->Terminate();
if (IsFailed(r))
{
pApp = UiApp::GetInstance();
if (pApp != null)
{
+ RemoveOrientationEventListener(*this);
+
+ if(__pAddressbar)
+ {
+ __pAddressbar->SetAddressbarEventListener(null);
+ }
+
+ if(__pWebViewer)
+ {
+ __pWebViewer->RemoveTouchEventListener(*this);
+ __pWebViewer->SetWebUiEventListenerF(null);
+ __pWebViewer->SetWebKeypadEventListener(null);
+ __pWebViewer->SetTextSearchListener(null);
+ __pWebViewer->SetLoadingListener(null);
+ }
r = pApp->Terminate();
if (IsFailed(r))
{
pApp = UiApp::GetInstance();
if (pApp != null)
{
+ RemoveOrientationEventListener(*this);
+
+ if(__pAddressbar)
+ {
+ __pAddressbar->SetAddressbarEventListener(null);
+ }
+
+ if(__pWebViewer)
+ {
+ __pWebViewer->RemoveTouchEventListener(*this);
+ __pWebViewer->SetWebUiEventListenerF(null);
+ __pWebViewer->SetWebKeypadEventListener(null);
+ __pWebViewer->SetTextSearchListener(null);
+ __pWebViewer->SetLoadingListener(null);
+ }
r = pApp->Terminate();
if (IsFailed(r))
{
pApp = UiApp::GetInstance();
if (pApp != null)
{
+ RemoveOrientationEventListener(*this);
+
+ if(__pAddressbar)
+ {
+ __pAddressbar->SetAddressbarEventListener(null);
+ }
+
+ if(__pWebViewer)
+ {
+ __pWebViewer->RemoveTouchEventListener(*this);
+ __pWebViewer->SetWebUiEventListenerF(null);
+ __pWebViewer->SetWebKeypadEventListener(null);
+ __pWebViewer->SetTextSearchListener(null);
+ __pWebViewer->SetLoadingListener(null);
+ }
r = pApp->Terminate();
return;
}
}
void
+MainForm::OnFocusGained(const Tizen::Ui::Control& source)
+{
+ if(__pFooterPanel)
+ {
+ __pFooterPanel->SetShowState(false);
+ }
+
+ if(__pAddressbar)
+ {
+ __pAddressbar->SetShowState(true);
+ }
+ RelayoutControls(false);
+}
+
+void
+MainForm::OnFocusLost(const Tizen::Ui::Control& source)
+{
+
+}
+
+void
MainForm::OnStopClicked(Addressbar& addBar)
{
AppLogDebug("MainForm::OnStopClicked called");
void
MainForm::OnBackClicked(/*const Addressbar& addBar*/)
{
-// AppLog("MainForm::OnBackClicked");
+ // AppLog("MainForm::OnBackClicked");
result r = E_FAILURE;
+ if(__pImageMenu && __pImageMenu->GetShowState() == true)
+ {
+ AppLog("Hiding the menu");
+ __pImageMenu->SetShowState(false);
+ }
if (__pWebViewer && __pWebViewer->CanGoBack())
{
pApp = UiApp::GetInstance();
if (pApp != null)
{
+
+ RemoveOrientationEventListener(*this);
+
+ if(__pAddressbar)
+ {
+ __pAddressbar->SetAddressbarEventListener(null);
+ }
+
+ if(__pWebViewer)
+ {
+ __pWebViewer->RemoveTouchEventListener(*this);
+ __pWebViewer->SetWebUiEventListenerF(null);
+ __pWebViewer->SetWebKeypadEventListener(null);
+ __pWebViewer->SetTextSearchListener(null);
+ __pWebViewer->SetLoadingListener(null);
+ }
+
+
r = pApp->Terminate();
if (IsFailed(r))
{
pApp = UiApp::GetInstance();
if (pApp != null)
{
+ RemoveOrientationEventListener(*this);
+
+ if(__pAddressbar)
+ {
+ __pAddressbar->SetAddressbarEventListener(null);
+ }
+
+ if(__pWebViewer)
+ {
+ __pWebViewer->RemoveTouchEventListener(*this);
+ __pWebViewer->SetWebUiEventListenerF(null);
+ __pWebViewer->SetWebKeypadEventListener(null);
+ __pWebViewer->SetTextSearchListener(null);
+ __pWebViewer->SetLoadingListener(null);
+ }
+
+
r = pApp->Terminate();
if (IsFailed(r))
{
pApp = UiApp::GetInstance();
if (pApp != null)
{
+ RemoveOrientationEventListener(*this);
+
+ if(__pAddressbar)
+ {
+ __pAddressbar->SetAddressbarEventListener(null);
+ }
+
+ if(__pWebViewer)
+ {
+ __pWebViewer->RemoveTouchEventListener(*this);
+ __pWebViewer->SetWebUiEventListenerF(null);
+ __pWebViewer->SetWebKeypadEventListener(null);
+ __pWebViewer->SetTextSearchListener(null);
+ __pWebViewer->SetLoadingListener(null);
+ }
+
+
r = pApp->Terminate();
if (IsFailed(r))
{
pApp = UiApp::GetInstance();
if (pApp != null)
{
+ RemoveOrientationEventListener(*this);
+
+ if(__pAddressbar)
+ {
+ __pAddressbar->SetAddressbarEventListener(null);
+ }
+
+ if(__pWebViewer)
+ {
+ __pWebViewer->RemoveTouchEventListener(*this);
+ __pWebViewer->SetWebUiEventListenerF(null);
+ __pWebViewer->SetWebKeypadEventListener(null);
+ __pWebViewer->SetTextSearchListener(null);
+ __pWebViewer->SetLoadingListener(null);
+ }
+
+
r = pApp->Terminate();
return;
}
pApp = UiApp::GetInstance();
if (pApp != null)
{
+ RemoveOrientationEventListener(*this);
+
+ if(__pAddressbar)
+ {
+ __pAddressbar->SetAddressbarEventListener(null);
+ }
+
+ if(__pWebViewer)
+ {
+ __pWebViewer->RemoveTouchEventListener(*this);
+ __pWebViewer->SetWebUiEventListenerF(null);
+ __pWebViewer->SetWebKeypadEventListener(null);
+ __pWebViewer->SetTextSearchListener(null);
+ __pWebViewer->SetLoadingListener(null);
+ }
+
+
r = pApp->Terminate();
return;
}
int Height = GetClientAreaBounds().height;
AppLog("MainForm::OnAddressBarFocusLost height is %d",Height);
- if(__pAddressbar)
- __pAddressbar->SetShowState(false);
-
- if (__pFooterPanel != null && addressbarKeyPadState == false)
- {
- AppLog("akjshdasd 3");
- __pFooterPanel->SetShowState(true);
- }
-
RelayoutControls(false);
}
__pAddressbar->SetFaviconBitmap(*pDefaultBmp);
}
}
+ if(pBitmap)
+ {
+ delete pBitmap;
+ pBitmap = null;
+ }
}
delete tempPath;
}
void
MainForm::OnWebKeypadOpened(Tizen::Web::Controls::Web& source)
{
+ __isWebKeypadOpened = true;
AppLog("xyz::MainForm::OnWebKeypadOpened");
if(__pFindWordControl && __pFindWordControl->GetShowState() == true)
{
__pAddressbar->SetShowState(false);
}
+ if(__pFooterPanel && __isWebKeypadOpened == false)
+ {
+ __pFooterPanel->SetShowState(true);
+ }
// Not reuired now.
/*HitElementResult* pHitElement = __pWebViewer->GetElementByPointN(currentPosition);
delete pList;
}
if(__pAddressbar)
+ {
__pAddressbar->SetShowState(false);
+ }
+ if(__pFooterPanel && __isWebKeypadOpened == false)
+ {
+ __pFooterPanel->SetShowState(true);
+ }
RelayoutControls(false);
return;
}
}
__pMostVisitedListView->SetItemProvider(*this);
__pMostVisitedListView->AddListViewItemEventListener(*this);
- __pMostVisitedListView->SetTextOfEmptyList(CommonUtil::GetString(L"IDS_BR_BODY_NO_RECENTLY_VISITED_SITES"));
+ __pMostVisitedListView->SetTextOfEmptyList(CommonUtil::GetString(L"IDS_BR_BODY_NO_VISITED_SITES"));
AddControl(__pMostVisitedListView);
__pMostVisitedListView->UpdateList();
if (__pAddressbar)
__pAddressbar->SetShowState(false);
- //AppLog("akjshdasd 5");
- //__pFooterPanel->SetShowState(true);
+ AppLog("akjshdasd 5");
+ __pFooterPanel->SetShowState(true);
if(__pWebViewer)
__pWebViewer->SetFocus();