bool __isLoadingData;
bool __isLoadingCompleted;
bool __isLongPressedDone;
- bool __isWebKeypadOpened;
+ bool __isKeypadOpened;
int __progressPercentage;
AddressBarMode __currentAddMode;
class ShareInfo : public Tizen::Base::Object
+
{
public:
/**
, public Tizen::Ui::Controls::IListViewItemProvider
, public Tizen::Ui::Controls::Popup
, public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IPropagatedKeyEventListener
, public Tizen::App::IAppControlResponseListener
+
{
public:
/**
void OnAppControlCompleteResponseReceived(const Tizen::App::AppId& appId, const Tizen::Base::String& operationId, Tizen::App::AppCtrlResult appControlResult, const Tizen::Base::Collection::IMap* pExtraData);
+ //IPropagatedKeyEventListener
+ virtual bool OnKeyPressed (Tizen::Ui::Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo){return false;}
+ virtual bool OnKeyReleased (Tizen::Ui::Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo);
+ virtual bool OnPreviewKeyPressed (Tizen::Ui::Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo){return false;}
+ virtual bool OnPreviewKeyReleased (Tizen::Ui::Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo){return false;}
+
protected:
static const int IDA_CANCEL_BUTTON;
static const int ID_FORMAT_MESSAGE_STRING;
<text id="IDS_COM_BODY_FRI">Fri</text>
<text id="IDS_BR_BODY_SETTINGS_VERSION">Version</text>
<text id="IDS_BR_OPT_SENDURLVIA_MESSAGE">Message</text>
- <text id="IDS_COM_SK_CREATE_WINDOWS_BNO">cannot open more than 9 windows</text>
<text id="IDS_BR_OPT_CACHE">Cache</text>
<text id="IDS_BR_SK_EDIT">Edit</text>
<text id="IDS_BR_BODY_GENARAL">General</text>
-->
<!DOCTYPE ScenePanel SYSTEM "UIForm.dtd">
-<ScenePanel Bversion="2.0.0.201306101756" Dversion="20120315">
+<ScenePanel Bversion="2.0.0.201307091413" Dversion="20120315">
<Panel id="IDL_ADDRESSBAR">
<property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
<layout height="94.0" mode="Portrait" type="LAYOUT_RELATIVE" width="720.0" x="0.0" y="0.0"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.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="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="640.0" x="0" y="0.0"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="74.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1196.0" x="0" y="0.0"/>
</Label>
- <Button id="IDC_STOP_BUTTON" parent="IDC_BG_PANEL">
- <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="EditBackground.png" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="EditBackground.png" normalBitmapPath="I01_field_btn_Clear_temp.png" normalColor="" normalColorOpacity="100" normalTextColor="#000000" pressedBGBitmapPath="" pressedBitmapPath="EditBackground.png" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
- <layout bottomRelation="IDC_BG_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="true" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_BG_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_BG_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="72.0" x="568.0" y="0.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_BG_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_BG_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="74.0" x="1122.0" y="0.0"/>
- </Button>
<Label id="IDC_TOOLBAR_LABEL" parent="IDC_BG_PANEL">
<property accessibilityHint="" backgroundBitmapPath="I01_URL_toolbar_button.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="96.0" x="0.0" y="0.0"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="96.0" x="0.0" y="0.0"/>
</Label>
- <EditField id="IDC_URL_EDITFIELD" parent="IDC_BG_PANEL">
- <property accessibilityHint="" disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" ellipsisPosition="ELLIPSIS_POSITION_END" enableClear="false" groupStyle="GROUP_STYLE_NONE" guideText="::IDS_BR_BODY_SEARCH_OR_ENTER_URL" guideTextColor="" highlightedBGBitmapPath="EditBackground.png" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="#4E4945" horizontalMargin="0.0" inputStyle="INPUT_STYLE_OVERLAY" keypadAction="KEYPAD_ACTION_ENTER" keypadEnabled="true" limitLength="2048" linkTextColor="" lowerCaseMode="false" normalBGBitmapPath="EditBackground.png" normalColor="" normalColorOpacity="100" normalTextColor="#4E4945" pressedBGBitmapPath="EditBackground.png" pressedColor="" pressedColorOpacity="100" text="" textHorizontalAlignment="ALIGNMENT_LEFT" textSize="32.0" titleStyle="EDIT_FIELD_TITLE_STYLE_NONE" titleText="" titleTextColor="" verticalMargin="18.0" viewMode="false"/>
- <layout bottomRelation="IDC_BG_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="true" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_TOOLBAR_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_STOP_BUTTON" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" style="EDIT_FIELD_STYLE_URL_SMALL" topRelation="IDC_BG_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="472.0" x="96.0" y="0.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_TOOLBAR_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_STOP_BUTTON" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" style="EDIT_FIELD_STYLE_URL_SMALL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1026.0" x="96.0" y="1.0"/>
- </EditField>
<Button id="IDC_CLEAR_BUTTON" parent="IDC_BG_PANEL">
<property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="EditBackground.png" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="EditBackground.png" normalBitmapPath="I01_field_btn_Clear_temp.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="EditBackground.png" pressedBitmapPath="I01_field_btn_Clear_Press.png" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
<layout bottomRelation="IDC_BG_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="true" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_BG_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_BG_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="72.0" x="568.0" y="0.0"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_BG_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_BG_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="74.0" x="1122.0" y="0.0"/>
</Button>
+ <EditField id="IDC_URL_EDITFIELD" parent="IDC_BG_PANEL">
+ <property accessibilityHint="" disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" ellipsisPosition="ELLIPSIS_POSITION_END" enableClear="false" groupStyle="GROUP_STYLE_NONE" guideText="::IDS_BR_BODY_SEARCH_OR_ENTER_URL" guideTextColor="" highlightedBGBitmapPath="EditBackground.png" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="#4E4945" horizontalMargin="0.0" inputStyle="INPUT_STYLE_OVERLAY" keypadAction="KEYPAD_ACTION_ENTER" keypadEnabled="true" limitLength="2048" linkTextColor="" lowerCaseMode="false" normalBGBitmapPath="EditBackground.png" normalColor="" normalColorOpacity="100" normalTextColor="#4E4945" pressedBGBitmapPath="EditBackground.png" pressedColor="" pressedColorOpacity="100" text="" textHorizontalAlignment="ALIGNMENT_LEFT" textSize="32.0" titleStyle="EDIT_FIELD_TITLE_STYLE_NONE" titleText="" titleTextColor="" verticalMargin="18.0" viewMode="false"/>
+ <layout bottomRelation="IDC_BG_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="true" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_TOOLBAR_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_CLEAR_BUTTON" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" style="EDIT_FIELD_STYLE_URL_SMALL" topRelation="IDC_BG_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="472.0" x="96.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_TOOLBAR_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_CLEAR_BUTTON" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" style="EDIT_FIELD_STYLE_URL_SMALL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1026.0" x="96.0" y="1.0"/>
+ </EditField>
<Label id="IDC_URL_LABEL" parent="IDC_BG_PANEL">
<property accessibilityHint="" backgroundBitmapPath="I01_URL_bookmark_icon.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="50.0" x="22.0" y="10.0"/>
This XML file was automatically generated by UiBuilder - do not modify by hand.
-->
<!DOCTYPE Scene SYSTEM "UIForm.dtd">
-<Scene Bversion="2.0.0.201305162056" Dversion="20120315">
+
+<Scene Bversion="2.0.0.201307041803" Dversion="20120315">
<LogicalCoordinate>480</LogicalCoordinate>
<Form id="IDL_HISTORY_LIST">
<property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic:4Dir" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
- <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>
- <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>
</Form>
<Footer>
- <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="true"/>
+ <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
<itemSet>
- <footerItem accessibilityHint="" actionId="103" disabledIconPath="I01_controlbar_icon_compose_diabled.png" highlightedIconPath="" normalIconPath="I01_controlbar_icon_compose.png" pressedIconPath="" selectedIconPath="" text=""/>
+ <footerItem accessibilityHint="" actionId="103" disabledIconPath="I01_controlbar_icon_delete_disable.png" highlightedIconPath="" normalIconPath="I01_controlbar_icon_delete.png" pressedIconPath="" selectedIconPath="" text=""/>
</itemSet>
</Footer>
<Header>
using namespace Tizen::Ui::Controls;
using namespace Tizen::Ui::Scenes;
-static const int LIST_ITEM_HEIGHT = 112;
+static const int LIST_ITEM_HEIGHT = 124;
static const int H_ITEM_HEIGHT = 112;
static const int H_TITLE_ITEM_HEIGHT = 150;
static const wchar_t* IDB_LIST_LEFT_SIDE = L"ListLeftSide.png";
}
- if ( exist == true)
+ if ( exist == true && !(urlWithSlash.CompareTo(tempUrl) == 0 || urlWithoutSlash.CompareTo(tempUrl) == 0 ))
{
String msg = CommonUtil::GetString(L"IDS_BR_POP_ALREADY_EXISTS");
CreateMessage(msg);
__progressPercentage = 0;
__pAddressbarBg = null;
__pBgPanel = null;
- __pClearBtn = null;
__pFavIcon = FaviconManager::GetInstance()->GetDefaultFaviconN();
__pFaviconLabel = null;
__pLabelPrivateOn = null;
__pClearBtn->SetActionId(IDA_CLEAR_URL);
__pClearBtn->AddActionEventListener(*this);
__pClearBtn->SetShowState(true);
+ __pClearBtn->SetFocusable(true);
//Add the editfield for url
__pAddressbarUrlField = static_cast<EditField*> (GetControl(L"IDC_URL_EDITFIELD",true));
Addressbar::OnFocusLost(const Tizen::Ui::Control& source)
{
AppLog("XYZ::Addressbar::OnFocusLost");
+ if(GetShowState() == true)
+ __isAppBackGround = true;
// __editTextUrl = L"";
if(__pListener != null)
void
Addressbar::SetAddressbarURLFocus()
{
- __pAddressbarUrlField->SetFocus();
+ AppLog("Addressbar::SetAddressbarURLFocus");
+ result r = __pAddressbarUrlField->SetFocus();
+ AppLog("Addressbar::SetAddressbarURLFocus result %s",GetErrorMessage(r));
}
String
delete pBitmap;
}
- pItem->AddElement(Rectangle(x_Margin_Title, 26, width_Title, 60 + (__fontSize - 44) ), IDA_FORMAT_FOLDER, pBookMark->GetBookmarkTitle(),__fontSize, CUSTOM_COLOR_TRANSPARENT,CUSTOM_COLOR_TRANSPARENT,CUSTOM_COLOR_TRANSPARENT,true);
+ pItem->AddElement(Rectangle(x_Margin_Title, 26, width_Title, 72 + (__fontSize - 44) ), IDA_FORMAT_FOLDER, pBookMark->GetBookmarkTitle(),__fontSize, CUSTOM_COLOR_TRANSPARENT,CUSTOM_COLOR_TRANSPARENT,CUSTOM_COLOR_TRANSPARENT,true);
if ( __pItemContextFolder != NULL)
{
if(__pBookmark && (__pBookmark->GetBookmarkTitle() == folderTitle ))
{
- SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT));
+ SceneManager::GetInstance()->GoBackward(BackwardSceneTransition());
folderList.RemoveAll(false);
return;
}
pSubTextElement->SetTextColor(CUSTOM_COLOR_GREY);
pSubEnText->Add(*pSubTextElement);
- r = AddElement(Rectangle(26, 22, __width - 126, 54 + (__fontSize - 44)), IDA_FORMAT_MAIN_STRING, *pMainEnText);
+ r = AddElement(Rectangle(26, 22, __width - 126, 72 + (__fontSize - 44)), IDA_FORMAT_MAIN_STRING, *pMainEnText);
r = AddElement(Rectangle(26, 76 + (__fontSize - 44), __width - 126, 42), IDA_FORMAT_SUB_STRING, *pSubEnText);
if(IsFailed(r))
{
switch (actionId)
{
case IDA_DELETEITEM_CLICKED:
+ if(__pConfirmationPopup)
+ {
+ delete __pConfirmationPopup;
+ __pConfirmationPopup = null;
+ }
if (!__pConfirmationPopup)
{
String closeWarning = CommonUtil::GetString(L"IDS_BR_SK3_DELETE");
}
break;
case IDA_DELETE_HISTORY:
+ if(__pConfirmationPopup)
+ {
+ delete __pConfirmationPopup;
+ __pConfirmationPopup = null;
+ }
if (!__pConfirmationPopup)
{
void
EditHomePageForm::OnFormBackRequested(Form& source)
{
+ ArrayList* pArgList = null;
+ pArgList = new(std::nothrow) ArrayList();
+ pArgList->Construct();
+ pArgList->Add(*new(std::nothrow) String(CommonUtil::GetString(L"IDS_BR_SK_CANCEL")));
+ SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(), pArgList);
}
{
ArrayList* pArgList = null;
pArgList = new(std::nothrow) ArrayList();
+ pArgList->Construct();
switch(actionId)
{
case IDA_BUTTON_DONE:
}
}
bool urlFoundInBookmark = false;
-
- if(__pBookmarkList != null)
- {
- for (int i = 0; i < __pBookmarkList->GetCount();i++)
- {
- BookmarkData* pBookMark = dynamic_cast< BookmarkData* >(__pBookmarkList->GetAt(i));
- if(pBookMark != null && pHistory->GetHistoryUrl().CompareTo(pBookMark->GetUrl()) == 0)
- {
- urlFoundInBookmark = true;
- break;
- }
- }
- }
+//
+// if(__pBookmarkList != null)
+// {
+// for (int i = 0; i < __pBookmarkList->GetCount();i++)
+// {
+// BookmarkData* pBookMark = dynamic_cast< BookmarkData* >(__pBookmarkList->GetAt(i));
+// if(pBookMark != null && pHistory->GetHistoryUrl().CompareTo(pBookMark->GetUrl()) == 0)
+// {
+// urlFoundInBookmark = true;
+// break;
+// }
+// }
+// }
+ BookmarkPresentationModel::GetInstance()->DoesBookmarkExist(pHistory->GetHistoryUrl(),urlFoundInBookmark);
if (urlFoundInBookmark == true)
{
pBookmarkBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ICON_BOOKMARK_ON_TEMP);
bool bookmarkFound = false;
BookmarkData* pBookMark = null;
- if(__pBookmarkList != null)
- {
- for (int i = 0; i < __pBookmarkList->GetCount(); i++)
- {
- pBookMark = dynamic_cast< BookmarkData* >(__pBookmarkList->GetAt(i));
- if (pBookMark != null && toggledUrl.CompareTo(pBookMark->GetUrl()) == 0)
- {
- bookmarkFound = true;
- break;
- }
- }
- }
+// if(__pBookmarkList != null)
+// {
+// for (int i = 0; i < __pBookmarkList->GetCount(); i++)
+// {
+// pBookMark = dynamic_cast< BookmarkData* >(__pBookmarkList->GetAt(i));
+// if (pBookMark != null && toggledUrl.CompareTo(pBookMark->GetUrl()) == 0)
+// {
+// bookmarkFound = true;
+// break;
+// }
+// }
+// }
+ BookmarkPresentationModel::GetInstance()->DoesBookmarkExist(toggledUrl,bookmarkFound);
if(bookmarkFound == false)
{
// Add the history in bookmark database
bookmark.SetBookmarkTitle(bookmarkTitle);
bookmark.SetUrl(pHistory->GetHistoryUrl());
bookmark.SetFaviconId(pHistory->GetFaviconId());
- bookmark.SetFavIconBuffer(*pHistory->GetFavIconBuffer());
+ if(pHistory->GetFavIconBuffer())
+ {
+ ByteBuffer *pBuffer = new ByteBuffer();
+
+ pBuffer->Construct(*pHistory->GetFavIconBuffer());
+ bookmark.SetFavIconBuffer(*pBuffer);
+ }
//r = BookmarkPresentationModel::GetInstance()->SaveBookmark(pBookmark);
r = BookmarkPresentationModel::GetInstance()->SaveTempBookmark(bookmark);
}
{
pFavIconBuffer = new ByteBuffer();
r = PresentationModelBase::GetColumn(columnCount, *pFavIconBuffer);
- if (!IsFailed(r))
+ if (!IsFailed(r) && pFavIconBuffer->GetCapacity() > 0)
{
pHistory->SetFavIconBuffer(*pFavIconBuffer);
}
static const wchar_t* APPCONTROL_SELECT_VALUE_IMAGE = L"fit_to_screen";
static const wchar_t* APPCONTROL_PROVIDER_ID_IMAGE_VIEWER = L"tizen.imageviewer";
static const wchar_t* APPCONTROL_OPERATION_ID_IMAGE_VIEWER = L"http://tizen.org/appcontrol/operation/view";
-
const int MIN_MEMORY_NEEDED = 1048576;
InternetApp::InternetApp(void)
{
if (MultipleWindowPresentationModel::GetInstance()->GetAllWindowArrayList()->GetCount() >= 9)
{
- String strTitle = CommonUtil::GetString(L"IDS_COM_SK_MAX_LIMIT_REACHED");
- String strText = CommonUtil::GetString(L"IDS_COM_SK_CREATE_WINDOWS_BNO");
+ String strTitle = L"";//CommonUtil::GetString(L"IDS_COM_SK_MAX_LIMIT_REACHED");
+ String strText = CommonUtil::GetString(L"IDS_BR_BODY_COULD_NOT_OPEN_NEW_WINDOW_BECAUSE_YOU_HAVE_ALREADY_OPENED_MAXIMUM_NUMBER");
ShowPopup(strTitle, strText);
}
return;
CATCH:
return 0;
}
+
__pStopBtn = null;
__pClearBtn = null;
__pReaderBtn = null;
- __isWebKeypadOpened = false;
+ __isKeypadOpened = false;
__fontSize = 44;
__pNotification = null;
}
if (__pOptionMenu != null)
{
+ __pOptionMenu->SetFocusable(true);
__pOptionMenu->Invalidate(true);
return r;
}
r = __pOptionMenu->Construct();
TryCatch(!IsFailed(r),,"Contextmenu creation failed with%s",GetErrorMessage(r));
+ __pOptionMenu->SetFocusable(true);
isPrivateBrowsing = SettingPresentationModel::GetInstance()->GetPrivateOn();
r = __pImageMenu->Construct(p, CONTEXT_MENU_STYLE_LIST, direction);
TryCatch(!IsFailed(r),, "Context image menu creation failed with%s",GetErrorMessage(r));
- r = __pImageMenu->AddItem("Open in new window"/*CommonUtil::GetString(L"IDS_BR_OPT_COPY_IMAGE")*/,IDA_HYPERLINK_OPEN_CLICKED);
- r = __pImageMenu->AddItem("Copy link URL"/*CommonUtil::GetString(L"IDS_DLNA_BODY_SHARE_IMAGE_ABB")*/,IDA_HYPERLINK_COPY_LINK_CLICKED);
+ r = __pImageMenu->AddItem(CommonUtil::GetString(L"IDS_BR_BODY_OPEN_IN_NEW_WINDOW"),IDA_HYPERLINK_OPEN_CLICKED);
+ r = __pImageMenu->AddItem(CommonUtil::GetString(L"IDS_BR_OPT_COPY_LINK_URL"),IDA_HYPERLINK_COPY_LINK_CLICKED);
//r = __pImageMenu->AddItem(CommonUtil::GetString(L"IDS_BR_OPT_SAVE_IMAGE"),IDA_HYPERLINK_SAVE_IMAGE_CLICKED);
r = __pImageMenu->AddItem(CommonUtil::GetString(L"IDS_BR_OPT_SHARE"),IDA_HYPERLINK_SHARE_IMAGE_CLICKED);
__pFindWordEditFieldRightToLeft->AddKeypadEventListener(*this);
__pFindWordEditFieldRightToLeft->SetOverlayKeypadCommandButtonVisible(false);
__pFindWordEditFieldRightToLeft->SetColor(EDIT_STATUS_HIGHLIGHTED, Color(0x00, 0x00, 0x00, 0x00));
+
+ if(__pAddressbar)
+ __pAddressbar->SetShowState(false);
+
+ if(__isKeypadOpened == false)
+ __pFooterPanel->SetShowState(true);
return r;
}
if ( pListIconImage != NULL)
{
listImageRect.SetBounds(screenBounds.x + 16, screenBounds.y + 28 + (__fontSize - 44)/2 , 72, 72);
- pagetTitleRect.SetBounds(listImageRect.x + 72 + 16,10, screenBounds.width - 2 * pListIconImage->GetWidth() - 120, 60 + (__fontSize - 44));
+ pagetTitleRect.SetBounds(listImageRect.x + 72 + 16,10, screenBounds.width - 2 * pListIconImage->GetWidth() - 120, 72 + (__fontSize - 44));
pageURLRect.SetBounds(pagetTitleRect.x, pagetTitleRect.y + pagetTitleRect.height, screenBounds.width - 2 * pListIconImage->GetWidth() - 120, 48);
void
MainForm::OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state)
{
+ AppLog("MainForm::OnListViewContextItemStateChanged called");
if(__pMostVisitedSites != null)
{
History* pHistory = static_cast < History* >(__pMostVisitedSites->GetAt(index));
__pFindWordCountLabel->SetText(L"0/0");
__pWebViewer->SearchText(L"aaaabbbbcccc",true);
AppLog("akjshdasd 1");
- if(__isWebKeypadOpened == false)
+ if(__isKeypadOpened == false)
__pFooterPanel->SetShowState(true);
ShowFindWordPanel(false);
}
{
String idElement = __pHitElementResult->GetAttributeValue(L"id");
String nameElement = __pHitElementResult->GetAttributeValue(L"name");
+ String tagElement = __pHitElementResult->GetTagName();
AppLog("MainForm::IDA_PASTE_TEXT_CLICKED id is %ls",idElement.GetPointer());
String script;
script.Append(*pString);
script.Append("\");");
}
+ else//adding for twitter post page
+ {
+ script = L"function insertAtCursor(myField, myValue) { if (document.selection) { document.getElementsByTagName(myField)[0].focus(); sel = document.selection.createRange(); sel.text = myValue; } else if (myField.selectionStart || myField.selectionStart == '0'){ var startPos = myField.selectionStart; var endPos = myField.selectionEnd; myField.value = myField.value.substring(0, startPos)+ myValue + myField.value.substring(endPos, myField.value.length); } else { document.getElementsByTagName(myField)[0].value += myValue; } } ";
+ script.Append("insertAtCursor(document.getElementsByTagName('");
+ script.Append(tagElement);
+ script.Append("')[0],");
+ script.Append("\"");
+ script.Append(*pString);
+ script.Append("\");");
+ }
AppLog("MainForm::OnTouchLongPressed script is %ls",script.GetPointer());
String* pStr = __pWebViewer->EvaluateJavascriptN(script);
delete pStr;
delete pBitmap;
}
+ RelayoutControls(false);
AppLog("ABC: OnSceneActivatedN started exit");
}
MainForm::OnKeypadOpened(Tizen::Ui::Control& source)
{
AppLog("XYZ::MainForm::OnKeypadOpened");
+ __isKeypadOpened = true;
__pFooterPanel->SetShowState(false);
}
MainForm::OnKeypadClosed(Tizen::Ui::Control& source)
{
AppLog("XYZ::MainForm::OnKeypadClosed");
+ __isKeypadOpened = false;
__pFooterPanel->SetShowState(true);
RelayoutControls(true);
}
void
MainForm::OnFocusGained(const Tizen::Ui::Control& source)
{
+ AppLog("MainForm::OnFocusGained");
if(__pFooterPanel)
{
__pFooterPanel->SetShowState(false);
void
MainForm::OnFocusLost(const Tizen::Ui::Control& source)
{
-
+ AppLog("MainForm::OnFocusLost called");
}
void
else
{
__pWebViewer->SetBounds(0, __webControlPosition.y, GetClientAreaBounds().width, __webControlHeight + 12);
+ AppLog("xyz:: MainForm::RelayoutControls called __webControlHeight %d",__webControlHeight);
__pWebViewer->Invalidate(false);
}
}
MainForm::OnWebKeypadWillOpen(Tizen::Web::Controls::Web& source)
{
AppLog("xyz::MainForm::OnWebKeypadWillOpen");
- __isWebKeypadOpened = true;
+ __isKeypadOpened = true;
__pFooterPanel->SetShowState(false);
// OnAddressBarKeypadOpened(*__pAddressbar);
}
void
MainForm::OnWebKeypadOpened(Tizen::Web::Controls::Web& source)
{
- __isWebKeypadOpened = true;
+ __isKeypadOpened = true;
AppLog("xyz::MainForm::OnWebKeypadOpened");
if(__pFindWordControl && __pFindWordControl->GetShowState() == true)
__pFooterPanel->SetShowState(true);
// OnAddressBarKeypadClosed(*__pAddressbar);
RelayoutControls(false);
- __isWebKeypadOpened = false;
+ __isKeypadOpened = false;
}
void
__isLongPressedDone = true;
result r =__pWebViewer->SetBlockSelectionPosition(currentPosition);
- if (((tagName.CompareTo(L"INPUT") == 0) || tagName.CompareTo(L"TEXTAREA") == 0) && innerHtml.GetLength() == 0 /*&& __isWebKeypadOpened == true*/ && __currentSelectedStr.CompareTo(L"") == 0 && r == E_INVALID_ARG)
+ if (((tagName.CompareTo(L"INPUT") == 0) || tagName.CompareTo(L"TEXTAREA") == 0) && innerHtml.GetLength() == 0 && type.CompareTo(L"submit") !=0/*&& __isWebKeypadOpened == true*/ && __currentSelectedStr.CompareTo(L"") == 0 && r == E_INVALID_ARG)
{
AppLog("MainForm::OnWebPageBlockSelected show paste option");
{
__pAddressbar->SetShowState(false);
}
- if(__pFooterPanel && __isWebKeypadOpened == false)
+ if(__pFooterPanel && __isKeypadOpened == false)
{
__pFooterPanel->SetShowState(true);
}
__pWebViewer->SearchText(L"aaaabbbbcccc",true);
__pFindWordControl->SetShowState(false);
}
+ AppLog("__pAddressbar->GetShowState() %d",__pAddressbar->GetShowState());
if(__pAddressbar->GetShowState() == false)
{
__pAddressbar->SetAddressbarURLFocus();
__pFooterPanel->SetShowState(false);
}
- return true;
+ return false;
}
bool
// if(__pFindWordControl != null)
// ShowFindWordPanel(__pFindWordControl->GetShowState(), false);
+
+ if(__pOptionMenu && __pOptionMenu->GetShowState() == true)
+ {
+ if( GetOrientationStatus() == ORIENTATION_STATUS_LANDSCAPE || GetOrientationStatus() == ORIENTATION_STATUS_LANDSCAPE)
+ {
+ AppLog(" Orientation landscape");
+ __pOptionMenu->SetMaxVisibleItemsCount(5);
+ }
+ else
+ {
+ AppLog(" Orientation potrait");
+ __pOptionMenu->SetMaxVisibleItemsCount(6);
+ }
+ }
if(__pNotification && __pNotification->GetShowState() == true)
{
__pNotification->SetShowState(false);
{
__pAddressbar->SetShowState(false);
}
- if(__pFooterPanel && __isWebKeypadOpened == false)
+ if(__pFooterPanel && __isKeypadOpened == false)
{
__pFooterPanel->SetShowState(true);
}
else
{
__pFindWordCountLabel->SetShowState(false);
+ __pFindWordCountLabel->SetBounds(__pFindWordCountLabel->GetX(),__pFindWordCountLabel->GetY(),84,__pFindWordCountLabel->GetHeight());
+ __pFindWordEditField->SetBounds(__pFindWordEditField->GetX(),__pFindWordEditField->GetY(),214+80,__pFindWordEditField->GetHeight());
+
}
__pFindWordNext->SetEnabled(false);
__pFindWordPrev->SetEnabled(false);
{
__pWebViewer->Pause();
}
+ if(__pImageMenu)
+ {
+ __pImageMenu->SetShowState(false);
+ }
if(__pAddressbar != null)
{
__pAddressbar->SendUserEvent(BACK_GROUND_APP_EVENT,NULL);
delete pBitmap;
}
AppLogDebug("ONACTION_PERFORMED:IDA_MOREBTN_CLICKED end");
- __pOptionMenu->SetShowState(true);
+ result r = __pOptionMenu->SetShowState(true);
+ AppLog("ajsghd %s",GetErrorMessage(r));
__pOptionMenu->Invalidate(true);
__pOptionMenu->Show();
case IDA_BUTTON_CLOSEALL:
{
+ if(__pConfirmationPopup)
+ {
+ delete __pConfirmationPopup;
+ __pConfirmationPopup = null;
+ }
if (!__pConfirmationPopup)
{
__pConfirmationPopup = new(std::nothrow) ConfirmationPopup();
listImageRect.SetBounds(screenBounds.x + 16, screenBounds.y + 28 + (__fontSize - 44)/2,width, 72 );
- pagetTitleRect.SetBounds(listImageRect.x + width + 16,10, screenBounds.width - 2 * width - 24 - 64, 60 + (__fontSize - 44));
+ pagetTitleRect.SetBounds(listImageRect.x + width + 16,10, screenBounds.width - 2 * width - 24 - 64, 72 + (__fontSize - 44));
pageURLRect.SetBounds(pagetTitleRect.x, pagetTitleRect.y + pagetTitleRect.height, screenBounds.width - 2 * width - 120, 48);
if(__pListDeleteImage != null)
{
{
AppLog("9 windows already opened");
- String strTitle = CommonUtil::GetString(L"IDS_COM_SK_MAX_LIMIT_REACHED");
- String strText = CommonUtil::GetString(L"IDS_COM_SK_CREATE_WINDOWS_BNO");
+ String strTitle = L"";//CommonUtil::GetString(L"IDS_COM_SK_MAX_LIMIT_REACHED");
+ String strText = CommonUtil::GetString(L"IDS_BR_BODY_COULD_NOT_OPEN_NEW_WINDOW_BECAUSE_YOU_HAVE_ALREADY_OPENED_MAXIMUM_NUMBER");
ShowPopup(strTitle, strText);
return null;
break;
case 4:
- text = L"";
+ text = L" ";
break;
default:
if (settingInfo[parentIndex].isOpen == false || (__isCurrentPageDisable == true && groupIndex == 0 && itemIndex == 1))
{
r = pItem->Construct(itemWidth, 0);
+ __pList->SetItemEnabled(groupIndex,itemIndex,false);
AppLogDebug("construct with height 0 %s", GetErrorMessage(r));
return pItem;
}
else
{
+ __pList->SetItemEnabled(groupIndex,itemIndex,true);
pItem->Construct(itemWidth, 112 + (__fontSize - 44));
}
/*
__pTimer = new(std::nothrow) Timer();
__pTimer->Construct(*this);
+ SetPropagatedKeyEventListener(this);
return true;
}
Popup::Show();
__appControlOngoing = false;
}
+
+bool
+SharePopup::OnKeyReleased (Control &source, const KeyEventInfo &keyEventInfo)
+{
+ AppLog("ConfirmationPopup::OnKeyReleased %d",keyEventInfo.GetKeyCode());
+ if(keyEventInfo.GetKeyCode() == KEY_BACK)
+ {
+ if(GetShowState() == true)
+ {
+ SetShowState(false);
+ }
+ }
+ return false;
+}