Fixed Nabi Issues
authorVinay Sachdeva <v.sachdeva@samsung.com>
Sat, 6 Apr 2013 16:50:37 +0000 (22:20 +0530)
committerVinay Sachdeva <v.sachdeva@samsung.com>
Sat, 6 Apr 2013 16:50:37 +0000 (22:20 +0530)
Change-Id: I68a30428d3dda40bca11f69c9047aafc644dcbff
Signed-off-by: Vinay Sachdeva <v.sachdeva@samsung.com>
22 files changed:
inc/IntAddressbar.h
inc/IntHistoryListForm.h
inc/IntIAddressbarEventListener.h
inc/IntMainForm.h
res/screen-density-high/00_button_sweep_delete.9.png [new file with mode: 0644]
res/screen-density-high/00_button_sweep_delete_press.9.png [new file with mode: 0644]
res/screen-size-normal/IDL_ADDRESSBAR.xml
res/screen-size-normal/IDL_FORM.xml
src/IntAddBookmarkForm.cpp
src/IntAddressbar.cpp
src/IntBookmarkData.cpp
src/IntBookmarkListForm.cpp
src/IntBookmarkPresentationModel.cpp
src/IntCreateBookmarkFolderForm.cpp
src/IntDropDownCustomItem.cpp
src/IntEditBookmarkListForm.cpp
src/IntEditHistoryListForm.cpp
src/IntHistoryListForm.cpp
src/IntHistoryPresentationModel.cpp
src/IntMainForm.cpp
src/IntMultipleWindowForm.cpp
src/IntSettingForm.cpp

index 583ecc8..6537f7e 100644 (file)
@@ -63,6 +63,7 @@ class Addressbar
        void OnKeypadClosed(Tizen::Ui::Control& source);
        void OnKeypadOpened(Tizen::Ui::Control& source);
        void OnKeypadWillOpen(Tizen::Ui::Control& source);
+       void OnKeypadBoundsChanged(Tizen::Ui::Control &source);
 
        void OnFocusGained(const Tizen::Ui::Control& source);
        void OnFocusLost(const Tizen::Ui::Control& source){}
index de64ef5..96ff8a1 100644 (file)
@@ -128,6 +128,7 @@ private:
        Tizen::Ui::Controls::GroupedListView* __pSearchListView; // The GroupedListView which contains the Search history lists
        bool __searchHistory;
        Tizen::Base::String __searchText;
+       Tizen::Ui::Scenes::SceneId __previousSceneId;
 };
 
 /**
index 46d31a7..685389f 100644 (file)
@@ -42,6 +42,7 @@ public:
        virtual void OnAddressBarKeypadClosed(const Addressbar&, bool footerState = true ) = 0;
        virtual void OnAddressBarKeypadOpened(const Addressbar&) = 0;
        virtual void OnAddressBarKeypadWillOpen(const Addressbar&) = 0;
+       virtual void OnAddressBarKeypadBoundsChanged(const Addressbar&) = 0;
        //virtual void OnAddressBarModeChanged(const Addressbar&) = 0;
        virtual void OnAddressCancelledClicked(const Addressbar&) = 0;
        //virtual void OnBackClicked(const Addressbar&) = 0;
@@ -49,6 +50,7 @@ public:
        virtual void OnReaderClicked(const Addressbar&) = 0;
        virtual void OnRefreshClicked(const Addressbar&) = 0;
        virtual void OnStopClicked(Addressbar&) = 0;
+       virtual void OnUrlValueChanged(Addressbar&) = 0;
        virtual void OnUrlSubmitted(Addressbar&) = 0;
 };
 
index 6980777..218c331 100644 (file)
@@ -108,6 +108,8 @@ public:
 
        void OnAddressBarKeypadWillOpen(const Addressbar&);
 
+       void OnAddressBarKeypadBoundsChanged(const Addressbar& addBar);
+
        void OnAddressBarModeChanged(/*const Addressbar&*/);
 
        void OnBackClicked(/*const Addressbar&*/);
@@ -142,6 +144,8 @@ public:
 
        virtual void OnKeypadClosed(Tizen::Ui::Control& source);
 
+       virtual void OnKeypadBoundsChanged (Tizen::Ui::Control &source);
+
        virtual void OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::KeypadAction keypadAction){}
 
        void OnLoadingErrorOccurred(Tizen::Web::Controls::LoadingErrorType error, const Tizen::Base::String& reason);
@@ -288,6 +292,7 @@ private:
 
        bool __isLoadingData;
        bool __isLoadingCompleted;
+       bool __isLongPressedDone;
        int __progressPercentage;
 
        AddressBarMode __currentAddMode;
diff --git a/res/screen-density-high/00_button_sweep_delete.9.png b/res/screen-density-high/00_button_sweep_delete.9.png
new file mode 100644 (file)
index 0000000..ad7b154
Binary files /dev/null and b/res/screen-density-high/00_button_sweep_delete.9.png differ
diff --git a/res/screen-density-high/00_button_sweep_delete_press.9.png b/res/screen-density-high/00_button_sweep_delete_press.9.png
new file mode 100644 (file)
index 0000000..e1015bf
Binary files /dev/null and b/res/screen-density-high/00_button_sweep_delete_press.9.png differ
index b05aca3..a79a782 100644 (file)
@@ -3,21 +3,21 @@
        This XML file was automatically generated by UiBuilder - do not modify by hand.
 -->
 <!DOCTYPE ScenePanel SYSTEM "UIForm.dtd">
-<ScenePanel Bversion="2.0.0.201303280947" Dversion="20120315">
+<ScenePanel Bversion="2.0.0.201304011930" 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 height="94.0" mode="Landscape" type="LAYOUT_RELATIVE" width="1280.0" x="0.0" y="0.0"/>
+        <layout height="82.0" mode="Landscape" type="LAYOUT_RELATIVE" width="1280.0" x="0.0" y="0.0"/>
     </Panel>
     <Label id="IDC_BG_LABEL" parent="IDL_ADDRESSBAR">
         <property accessibilityHint="" backgroundBitmapPath="I01_toolbar_bg_01.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="94.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDL_ADDRESSBAR" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_ADDRESSBAR" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="0.0"/>
-        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="94.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="1280.0" x="0" y="0.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="82.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="1280.0" x="0.0" y="0.0"/>
     </Label>
     <Button id="IDC_ADDRESS_BACK_BUTTON" parent="IDL_ADDRESSBAR">
         <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="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="I01_icon_Back.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="I01_icon_Back_press.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="32.0" verticalAlign="ALIGN_MIDDLE"/>
         <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="63.0" x="651.0" y="3.0"/>
-        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="94.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_ADDRESSBAR" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="68.0" x="1212.0" y="0.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="68.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="68.0" x="1212.0" y="7.0"/>
     </Button>
     <Panel id="IDC_BG_PANEL" parent="IDL_ADDRESSBAR">
         <property backgroundColor="#FFFFFF" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
@@ -40,8 +40,8 @@
         <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="" commandButtonVisible="true" 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="" 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" style="EDIT_FIELD_STYLE_URL_SMALL" topRelation="IDC_BG_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="527.0" x="96.0" y="0.0"/>
+        <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="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" 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="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" style="EDIT_FIELD_STYLE_URL_SMALL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1132.0" x="96.0" y="1.0"/>
     </EditField>
     <Button id="IDC_CLEAR_BUTTON" parent="IDC_BG_PANEL">
@@ -54,9 +54,4 @@
         <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"/>
         <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="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="50.0" x="22.0" y="12.0"/>
     </Label>
-    <Label id="IDC_PROGRESS_BAR_LABEL" parent="IDL_ADDRESSBAR">
-        <property accessibilityHint="" backgroundBitmapPath="" 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="IDL_ADDRESSBAR" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="12.0" horizontalFitPolicy="FIT_POLICY_PARENT" 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="720.0" x="0" y="82.0"/>
-        <layout bottomRelation="IDL_ADDRESSBAR" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="12.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ADDRESSBAR" 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="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="82.0"/>
-    </Label>
 </ScenePanel>
index dde62bc..aa638d1 100644 (file)
@@ -3,7 +3,7 @@
        This XML file was automatically generated by UiBuilder - do not modify by hand.
 -->
 <!DOCTYPE Scene SYSTEM "UIForm.dtd">
-<Scene Bversion="2.0.0.201303280947" Dversion="20120315">
+<Scene Bversion="2.0.0.201304011930" Dversion="20120315">
     <LogicalCoordinate>720</LogicalCoordinate>
     <Form id="IDL_FORM">
         <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"/>
     <Button id="IDC_MULTIWINDOW_BUTTON" parent="IDC_FOOTER_PANEL">
         <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="20.0" NormalBitmapY="20.0" PressedBitmapX="20.0" PressedBitmapY="20.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="EditBackground.png" normalBitmapPath="I01_toolbar_icon_windows_manager_empty.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="EditBackground.png" pressedBitmapPath="I01_controlbar_icon_multiview.png" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="60.0" verticalAlign="ALIGN_MIDDLE"/>
         <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="63.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="63.0" x="119.0" y="25.0"/>
-        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="95.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_MORE_BUTTON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="112.0" x="112.0" y="10.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="95.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="112.0" x="112.0" y="10.0"/>
     </Button>
     <Button id="IDC_PAGEBACK_BUTTON" parent="IDC_FOOTER_PANEL">
         <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="20.0" NormalBitmapY="20.0" PressedBitmapX="20.0" PressedBitmapY="20.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="EditBackground.png" normalBitmapPath="I01_toolbar_icon_back_web.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="EditBackground.png" pressedBitmapPath="I01_toolbar_icon_back_press_web.png" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="60.0" verticalAlign="ALIGN_MIDDLE"/>
         <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="63.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="63.0" x="542.0" y="25.0"/>
-        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="95.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_PAGEFORWARD_BUTTON" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="112.0" x="1056.0" y="10.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="63.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="63.0" x="1076.0" y="25.0"/>
     </Button>
     <Label id="IDC_FOOTER_LABEL" parent="IDC_FOOTER_PANEL">
         <property accessibilityHint="" backgroundBitmapPath="I01_toolbar_bg_02.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="71.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="300.0" x="212.0" y="25.0"/>
-        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="78.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_MULTIWINDOW_BUTTON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_PAGEBACK_BUTTON" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="832.0" x="224.0" y="19.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="78.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="832.0" x="224.0" y="19.0"/>
     </Label>
     <Button id="IDC_PAGEFORWARD_BUTTON" parent="IDC_FOOTER_PANEL">
         <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="20.0" NormalBitmapY="20.0" PressedBitmapX="20.0" PressedBitmapY="20.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="EditBackground.png" normalBitmapPath="I01_toolbar_icon_forward_web.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="EditBackground.png" pressedBitmapPath="I01_toolbar_icon_forward_press_web.png" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="32.0" verticalAlign="ALIGN_MIDDLE"/>
         <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="63.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="63.0" x="635.0" y="25.0"/>
-        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="95.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_FOOTER_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="112.0" x="1168.0" y="10.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="63.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="63.0" x="1168.0" y="25.0"/>
     </Button>
     <Button id="IDC_MORE_BUTTON" parent="IDC_FOOTER_PANEL">
         <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="20.0" NormalBitmapY="20.0" PressedBitmapX="20.0" PressedBitmapY="20.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="I01_controlbar_icon_create_disable.png" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="EditBackground.png" normalBitmapPath="I01_controlbar_icon_more.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="EditBackground.png" pressedBitmapPath="I01_controlbar_icon_more.png" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="60.0" verticalAlign="ALIGN_MIDDLE"/>
@@ -56,7 +56,7 @@
         <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="65.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="10.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_FOOTER_LABEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="74.0" x="972.0" y="25.0"/>
     </Button>
     <EditField id="IDC_URL_EDIT_FIELD" parent="IDC_FOOTER_PANEL">
-        <property accessibilityHint="" commandButtonVisible="true" disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" ellipsisPosition="ELLIPSIS_POSITION_END" enableClear="false" groupStyle="GROUP_STYLE_NONE" guideText="" guideTextColor="" highlightedBGBitmapPath="EditBackground.png" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalMargin="16.0" inputStyle="INPUT_STYLE_OVERLAY" keypadAction="KEYPAD_ACTION_ENTER" keypadEnabled="true" limitLength="100" 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="12.0" viewMode="false"/>
+        <property accessibilityHint="" disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" ellipsisPosition="ELLIPSIS_POSITION_END" enableClear="false" groupStyle="GROUP_STYLE_NONE" guideText="" guideTextColor="" highlightedBGBitmapPath="EditBackground.png" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalMargin="16.0" inputStyle="INPUT_STYLE_OVERLAY" keypadAction="KEYPAD_ACTION_ENTER" keypadEnabled="true" limitLength="100" 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="12.0" viewMode="false"/>
         <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="71.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" style="EDIT_FIELD_STYLE_URL_SMALL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="241.0" x="212.0" y="25.0"/>
         <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="78.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_MULTIWINDOW_BUTTON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_REFRESH_BUTTON" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" style="EDIT_FIELD_STYLE_URL_SMALL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="748.0" x="224.0" y="19.0"/>
     </EditField>
@@ -73,7 +73,7 @@
     <Button id="IDC_CLEAR_BUTTON" parent="IDC_FOOTER_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="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="I01_field_btn_Clear.png" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="32.0" verticalAlign="ALIGN_MIDDLE"/>
         <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="43.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="42.0" x="454.0" y="40.0"/>
-        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="65.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="10.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_FOOTER_LABEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="74.0" x="972.0" y="25.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="65.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="10.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="74.0" x="982.0" y="25.0"/>
     </Button>
     <Panel id="IDC_FIND_ON_PAGE_PANEL" parent="IDL_FORM">
         <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
index 4a7fd61..0e4f634 100644 (file)
@@ -419,7 +419,7 @@ AddBookmarkForm::OnActionPerformed(const Control& source, int actionId)
                        __pEditFieldUrl->Clear();
                }
 
-               pSceneManager->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT));
+               pSceneManager->GoBackward(BackwardSceneTransition());
 
        }
        break;
@@ -773,7 +773,7 @@ AddBookmarkForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId
        // Code to handle events when the AddBookmarkForm is activated.
        String str = "-1";
        String pageTitle = L"";
-       String pageUrl = L"http://";
+       String pageUrl = L"";
        String title = L"";
        String url = L"";
        result r = E_FAILURE;
@@ -1025,18 +1025,10 @@ AddBookmarkForm::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId
 void
 AddBookmarkForm::OnFocusGained (const Tizen::Ui::Control &source)
 {
-
-       AppLog("the client area height is %d",GetClientAreaBounds().height);
-
-       //      __pScrollPanel->SetBounds(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height));
-
-       //      __pScrollPanel->Invalidate(true);
-       //      __pScrollPanel->SetScrollPosition(source.GetY()-48,false);
        __pScrollPanel->SetSize(GetClientAreaBounds().width,GetClientAreaBounds().height);
        __pScrollPanel->SetClientAreaWidth(__pScrollPanel->GetWidth());
        __pScrollPanel->SetClientAreaHeight(GetClientAreaBounds().height);
        Invalidate(true);
-       AppLog("the scroll panel height is Rect(%d,%d,%d,%d) ClientHeight =  %d",__pScrollPanel->GetX(),__pScrollPanel->GetY(),__pScrollPanel->GetWidth(),__pScrollPanel->GetHeight(),__pScrollPanel->GetClientAreaBounds().height);
        return;
 
 }
index b7eb241..b950f90 100644 (file)
@@ -112,15 +112,6 @@ Addressbar::Initialize(const Rectangle& rect)
                return E_INVALID_KEY;
        }
 
-       /*__pLabelPrivateOn = static_cast<Label*> (GetControl(L"IDC_LABEL_PRIVATE_ON",true));
-
-       if (__pLabelPrivateOn == NULL)
-       {
-               AppLogDebug("Control not found returning E_INVALID_KEY");
-               return E_INVALID_KEY;
-       }
-       __pLabelPrivateOn->SetShowState(false);*/
-
        __pAddressbarBg = static_cast<Label*> (GetControl(L"IDC_ADDRESSBAR_BG_LABEL",true));
        if (__pAddressbarBg == NULL)
        {
@@ -136,13 +127,13 @@ Addressbar::Initialize(const Rectangle& rect)
        }
 
        //Add the backround label for displaying progressbar
-       __pProgressbarLabel = static_cast<Label*> (GetControl(L"IDC_PROGRESS_BAR_LABEL",true));
+       /*__pProgressbarLabel = static_cast<Label*> (GetControl(L"IDC_PROGRESS_BAR_LABEL",true));
        if (__pProgressbarLabel == NULL)
        {
                AppLogDebug("Control not found returning E_INVALID_KEY");
                return E_INVALID_KEY;
        }
-       __pProgressbarLabel->SetShowState(false);
+       __pProgressbarLabel->SetShowState(false);*/
 
        //Add the stop button
        __pStopBtn = static_cast<Button*> (GetControl(L"IDC_STOP_BUTTON",true));
@@ -694,7 +685,7 @@ Addressbar::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
 
        case IDA_CANCEL:
        {
-               __pListener->OnAddressCancelledClicked(*this);
+//             __pListener->OnAddressCancelledClicked(*this);
                __pAddressbarUrlField->SetText(__displayUrl);
                __editTextUrl = L"";
                __pAddressbarUrlField->HideKeypad();
@@ -741,6 +732,7 @@ Addressbar::OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::Keypa
                        {
                                __pListener->OnUrlSubmitted(*this);
                        }
+
                        //UpdateProgressBitmap();
                }
        }
@@ -754,21 +746,25 @@ Addressbar::OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::Keypa
 void
 Addressbar::OnKeypadClosed(Tizen::Ui::Control& source)
 {
-       __pListener->OnAddressBarKeypadClosed(*this);
+       SetShowState(false);
+       if(__pListener != null)
+       {
+               __pListener->OnAddressBarKeypadClosed(*this);
+       }
 }
 
 void
 Addressbar::OnKeypadOpened(Tizen::Ui::Control& source)
 {
-
-       __pListener->OnAddressBarKeypadClosed(*this,false);
+       if(__pListener != null)
+       {
+               __pListener->OnAddressBarKeypadOpened(*this);
+       }
 }
 
 void
 Addressbar::OnKeypadWillOpen(Tizen::Ui::Control& source)
 {
-       //SetAddressbarMode(ADDRESSBAR_MODE_EDIT);
-       //      SetAddressbarMode(__prevAddMode);
        if(__pListener != null)
        {
                __pListener->OnAddressBarKeypadWillOpen(*this);
@@ -776,6 +772,16 @@ Addressbar::OnKeypadWillOpen(Tizen::Ui::Control& source)
 }
 
 void
+Addressbar::OnKeypadBoundsChanged(Tizen::Ui::Control &source)
+{
+       AppLog("Coming here");
+       if(__pListener != null)
+               {
+                       __pListener->OnAddressBarKeypadBoundsChanged(*this);
+               }
+}
+
+void
 Addressbar::OrientationChanged(void)
 {
        Bitmap *pBitmap = CommonUtil::GetNinepatchedBitmapN(IDB_SEARCH_INPUT_FIELD_BG, __pAddressbarBg->GetWidth(), __pAddressbarBg->GetHeight());
@@ -830,6 +836,7 @@ Addressbar::OnFocusGained(const Control& source)
 {
        //SetAddressbarMode(ADDRESSBAR_MODE_EDIT);
        //      SetAddressbarMode(__prevAddMode);
+       __pAddressbarUrlField->SetCursorPosition(__pAddressbarUrlField->GetTextLength());
        if (__pListener != null)
        {
                __pListener->OnAddressBarKeypadWillOpen(*this);
@@ -844,19 +851,11 @@ Addressbar::OnTextValueChanged(const Control& source)
        {
                if(__pAddressbarUrlField->GetTextLength() == 0)
                {
-                       if(__pAddressbarUrlField->IsKeypadActionEnabled() == true)
-                       {
-                               __pAddressbarUrlField->SetKeypadActionEnabled(false);
-                               GetParent()->GetParent()->Invalidate(true);
-                       }
+                       __pAddressbarUrlField->SetKeypadActionEnabled(false);
                }
                else
                {
-                       if(__pAddressbarUrlField->IsKeypadActionEnabled() == false)
-                       {
-                               __pAddressbarUrlField->SetKeypadActionEnabled(true);
-                               GetParent()->GetParent()->Invalidate(true);
-                       }
+                       __pAddressbarUrlField->SetKeypadActionEnabled(true);
                }
        }
 
index f8132e4..3e48116 100644 (file)
@@ -36,6 +36,8 @@ BookmarkData::BookmarkData(void)
        , __iconPath("")
     , __faviconId("")
        , __pFavIconData(null)
+       , __favIconWidth(0)
+       , __favIconHeight(0)
 {
        __createdTime.SetValue(0, 0, 0);
        __modifiedTime.SetValue(0, 0, 0);
index fb8d68b..868c156 100644 (file)
@@ -79,6 +79,7 @@ BookmarkListForm::BookmarkListForm(void)
        __noBookmarks = true;
        __selectedindex = 0;
        __searchText = L"";
+       __previousSceneId = L"";
 }
 
 BookmarkListForm::~BookmarkListForm(void)
@@ -358,10 +359,23 @@ BookmarkListForm::OnActionPerformed(const Tizen::Ui::Control& source, int action
 
                if (pSceneManager != null)
                {
-                       if(pSceneManager->GoForward(ForwardSceneTransition(IDSCN_HISTORY_LIST, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)) != E_SUCCESS)
+                       if(__previousSceneId.CompareTo(IDSCN_HISTORY_LIST) != 0)
                        {
-                               AppLogDebug("BookmarkListForm::OnActionPerformed GoForward failed");
-                               return;
+                               if(pSceneManager->GoForward(ForwardSceneTransition(IDSCN_HISTORY_LIST, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)) != E_SUCCESS)
+                               {
+                                       AppLogDebug("BookmarkListForm::OnActionPerformed GoForward failed");
+                                       return;
+                               }
+                       }
+                       else
+                       {
+
+                               if(pSceneManager->GoBackward(BackwardSceneTransition())!= E_SUCCESS)
+                               {
+                                       AppLogDebug("BookmarkListForm::OnActionPerformed GoBackward failed");
+                                       return;
+                               }
+
                        }
                }
        }
@@ -507,7 +521,14 @@ BookmarkListForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
                SceneManager* pSceneManager = SceneManager::GetInstance();
                if (pSceneManager != null)
                {
-                       pSceneManager->GoBackward(BackwardSceneTransition());
+                       if(__previousSceneId.CompareTo(IDSCN_HISTORY_LIST) != 0)
+                       {
+                               pSceneManager->GoBackward(BackwardSceneTransition());
+                       }
+                       else
+                       {
+                               pSceneManager->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_LEFT));
+                       }
                }
        }
 
@@ -1037,6 +1058,7 @@ BookmarkListForm::OnKeypadClosed(Tizen::Ui::Control& source)
        __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()));
        Invalidate(true);
 }
@@ -1075,6 +1097,9 @@ void
 BookmarkListForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
 {
        AppLogDebug("BookmarkListForm::OnSceneActivatedN called");
+       ArrayListT<String> * pList = dynamic_cast<ArrayListT<String>* >(SceneManager::GetInstance()->GetSceneHistoryN());
+
+       pList->GetAt(pList->GetCount()-1,__previousSceneId);
 
        __searchBookmark = false;
        GetFooter()->SetShowState(true);
@@ -1130,7 +1155,7 @@ BookmarkListForm::OnOrientationChanged (const Tizen::Ui::Control &source, Tizen:
                        __pSearchBar->Invalidate(true);
                }
 
-               __pSearchBar->SetContentAreaSize(Dimension(__pSearchListView->GetWidth(), GetClientAreaBounds().width));
+               __pSearchBar->SetContentAreaSize(Dimension(__pSearchListView->GetWidth(), GetClientAreaBounds().height));
        }
 
 
index d1cd4cc..20bf177 100644 (file)
@@ -230,7 +230,7 @@ BookmarkPresentationModel::SaveBookmark(BookmarkData& bookmark)
                columnNames.Append(L"ADDRESS, ");
                columnNames.Append(L"TITLE, ");
                columnNames.Append(L"CREATIONDATE, ");
-               columnNames.Append(L"UPDATEDATE");
+               columnNames.Append(L"UPDATEDATE");
                columnNames.Append(L"FAVICON, ");
                //      columnNames.Append(L"FAVICON_LENGTH, ");
                columnNames.Append(L"FAVICON_W, ");
index 390a5db..9f6a22f 100644 (file)
@@ -270,7 +270,7 @@ CreateBookmarkFolderForm::OnActionPerformed(const Control& source, int actionId)
                        __pFolderTitle->HideKeypad();
                }
 
-               r = pSceneManager->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT));
+               r = pSceneManager->GoBackward(BackwardSceneTransition());
                AppLogDebug("SCENE_ADD_BOOKMARK error = %s",GetErrorMessage(r));
                TryCatch(!IsFailed(r),L"BookmarkPresentationModel::GetFolderCount failed %s",GetErrorMessage(r));
 
@@ -319,7 +319,7 @@ CreateBookmarkFolderForm::OnActionPerformed(const Control& source, int actionId)
                        if(__pBookmark && (__pBookmark->GetBookmarkTitle() == folderTitle ))
                        {
                                SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT));
-                               folderList.RemoveAll(true);
+                               folderList.RemoveAll(false);
                                return;
                        }
                }
@@ -357,7 +357,7 @@ CreateBookmarkFolderForm::OnActionPerformed(const Control& source, int actionId)
                                AppLogDebug("SCENE_ADD_BOOKMARK error = %s",GetErrorMessage(r));
                                if (pArgList != null)
                                {
-                                       pArgList->RemoveAll(true);
+                                       pArgList->RemoveAll(false);
                                        delete pArgList;
                                }
                                TryCatch( !IsFailed(r),L"BookmarkPresentationModel::GetFolder failed %s",GetErrorMessage(r));
@@ -365,7 +365,7 @@ CreateBookmarkFolderForm::OnActionPerformed(const Control& source, int actionId)
 
                }
 
-               folderList.RemoveAll(true);
+               folderList.RemoveAll(false);
        }
        break;
 
index 26e1a4c..e3c9af7 100644 (file)
@@ -168,7 +168,7 @@ DropDownCustomItem::Make()
                        pDropperBitmapPressed = pAppResource->GetBitmapN(IDB_LIST_EXPAND_OPENED_PRESS, BITMAP_PIXEL_FORMAT_ARGB8888);
                }
 
-               AddElement(Rectangle(__width - 98, (__height - 74) / 2, 74, 74), IDA_FORMAT_DROPPER, *pDropperBitmapNormal, pDropperBitmapNormal, pDropperBitmapNormal);
+               AddElement(Rectangle(__width - pDropperBitmapNormal->GetWidth() - 12, (__height - 74) / 2, 74, 74), IDA_FORMAT_DROPPER, *pDropperBitmapNormal, pDropperBitmapNormal, pDropperBitmapNormal);
                delete pDropperBitmapNormal;
                delete pDropperBitmapPressed;
        }
index 09e2a59..5d60475 100644 (file)
@@ -892,10 +892,12 @@ void EditBookmarkListForm::OnOrientationChanged(const Tizen::Ui::Control &source
                }
                else
                {
+                       AppLog("EditBookmarkListForm::OnOrientationChanged 1");
                        __pCheckButton->SetShowState(true);
                        __pInfoPanel->SetShowState(true);
                        __pListview->SetBounds(__pListview->GetX(), __pListview->GetY(), __pListview->GetWidth(), GetClientAreaBounds().height - __pCheckButton->GetHeight() - __pInfoPanel->GetHeight());
-
+                       __pInfoLabel->SetBounds(__pInfoLabel->GetX(),__pInfoLabel->GetY(), GetClientAreaBounds().width,__pInfoLabel->GetHeight());
+                       __pInfoLabel->Invalidate(true);
                }
                __pCheckButton->Invalidate(true);
 
index 02a5bd0..bacf564 100644 (file)
@@ -643,7 +643,7 @@ EditHistoryListForm::GetItemCount(int groupIndex)
 
        if (pGroupItemClass->__pData != null)
        {
-               pGroupItemClass->__pData->RemoveAll(true);
+               pGroupItemClass->__pData->RemoveAll(false);
                delete pGroupItemClass->__pData;
        }
        pGroupItemClass->__pData = new(std::nothrow) Collection::ArrayList();
index ec4d014..8932e49 100644 (file)
@@ -67,6 +67,7 @@ HistoryListForm::HistoryListForm(void)
        __searchHistory = false;
        __isNoHistoryPresent = true;
        __searchText = L"";
+       __previousSceneId = L"";
 }
 
 HistoryListForm::~HistoryListForm(void)
@@ -248,7 +249,33 @@ HistoryListForm::OnActionPerformed(const Control& source, int actionId)
                result r = GetHeader()->SetItemSelected(1);
                AppLog("SetItemSelected result %s",GetErrorMessage(r));
                GetHeader()->Invalidate(true);
-               r = pSceneManager->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT));
+
+               if (pSceneManager != null)
+               {
+                       if(__previousSceneId.CompareTo(IDSCN_BOOKMARK_VIEW) != 0)
+                       {
+                               if(pSceneManager->GoForward(ForwardSceneTransition(IDSCN_BOOKMARK_VIEW, SCENE_TRANSITION_ANIMATION_TYPE_LEFT)) != E_SUCCESS)
+                               {
+                                       AppLogDebug("BookmarkListForm::OnActionPerformed GoForward failed");
+                                       return;
+                               }
+                       }
+                       else
+                       {
+
+                               if(pSceneManager->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT))!= E_SUCCESS)
+                               {
+                                       AppLogDebug("BookmarkListForm::OnActionPerformed GoBackward failed");
+                                       return;
+                               }
+
+                       }
+               }
+
+
+
+
+//             r = pSceneManager->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT));
                if (IsFailed(r))
                {
                        return;
@@ -268,7 +295,15 @@ HistoryListForm::OnFormBackRequested(Form& source)
        {
                return;
        }
-       result r = pSceneManager->GoBackward(BackwardSceneTransition());
+       result r = E_FAILURE;
+       if(__previousSceneId.CompareTo(IDSCN_BOOKMARK_VIEW) != 0)
+       {
+                       r = pSceneManager->GoBackward(BackwardSceneTransition());
+       }
+       else
+       {
+               r = pSceneManager->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT));
+       }
        if(IsFailed(r))
        {
                AppLogDebug("HistoryListForm::OnFormBackRequested GoForward failed %s",GetErrorMessage(r));
@@ -463,6 +498,11 @@ HistoryListForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
                delete pItem;
                return null;
        }
+       if (pGroupItemClass->GetHistoryData() == null)
+       {
+               delete pItem;
+               return null;
+       }
        pHistory = dynamic_cast< History* >(pGroupItemClass->GetHistoryData()->GetAt(itemIndex));
        if (pHistory == null)
        {
@@ -691,6 +731,10 @@ HistoryListForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId
 {
 
        GetHeader()->SetItemSelected(1);
+//     __previousSceneId = previousSceneId;
+       ArrayListT<String> * pList = dynamic_cast<ArrayListT<String>* >(SceneManager::GetInstance()->GetSceneHistoryN());
+
+       pList->GetAt(pList->GetCount()-1,__previousSceneId);
 
        AppLog("HistoryListForm::OnSceneActivatedN called");
        //GetHeader()->Invalidate(true);
@@ -1188,10 +1232,10 @@ HistoryListForm::OnKeypadClosed(Control& source)
                __pSearchListView->SetEnabled(true);
 
        }
+       GetFooter()->SetShowState(true);
        __pSearchListView->SetBounds(__pSearchListView->GetX(), __pSearchListView->GetY(), __pSearchListView->GetWidth(), GetClientAreaBounds().height - __pSearchBar->GetHeight());
        __pSearchListView->Invalidate(false);
        __pSearchBar->SetContentAreaSize(Dimension(__pSearchListView->GetWidth(), GetClientAreaBounds().height - __pSearchBar->GetHeight()));
-       GetFooter()->SetShowState(true);
        Invalidate(true);
 }
 
index ef939a7..6ac04d1 100644 (file)
@@ -663,8 +663,15 @@ HistoryPresentationModel::GetHistoryCountWithTimeRange(Tizen::Base::DateTime& st
 {
        int count = 0;
        result r = E_SUCCESS;
-       if(__pDataList == null)
+
+       if(__pDataList != null)
        {
+               delete __pDataList;
+               __pDataList = null;
+       }
+
+       //if(__pDataList == null)
+       //{
                __pDataList = new(std::nothrow) ArrayList();
                __pDataList->Construct();
 
@@ -676,16 +683,16 @@ HistoryPresentationModel::GetHistoryCountWithTimeRange(Tizen::Base::DateTime& st
                if(count > 0)
                {
                        r = GetHistory(0, count, *__pDataList);
-                       if(IsFailed(r))
+                       if (IsFailed(r))
                        {
                                return r;
                        }
                }
-       }
-       else
-       {
+       //}
+       //else
+       //{
                count = __pDataList->GetCount();
-       }
+       //}
 
        for (int counter = 0 ; counter < count; counter++)
        {
index fc2c9e1..a5868d8 100644 (file)
@@ -129,6 +129,7 @@ static const int HEIGHT_CONTEXT_MENU_BUTTON = 72;
 
 MainForm::MainForm(void)
 {
+       __isLongPressedDone = false;
        __pAddressbar = null;
        //      __pMostVisitedSitesPanel = null;
        __pMostVisitedListView = null;
@@ -429,7 +430,7 @@ MainForm::InitWebControl()
        if (__pAddressbar == null || __pFooterPanel == null)
                return E_FAILURE;
 
-       const int Y_WEBCONTROL_POSITION = __pAddressbar->GetY() + __pAddressbar->GetHeight() - 12;
+       const int Y_WEBCONTROL_POSITION = 0;
        __webControlHeight = GetClientAreaBounds().height - __pFooterPanel->GetHeight();
        if (__pMostVisitedListView)
        {
@@ -480,7 +481,6 @@ MainForm::InitWebControl()
                __pWebViewer->SetTextSearchListener(this);
        }
 
-       __pWebViewer->SetBounds(Rectangle(0,__webControlPosition.y,GetClientAreaBounds().width,__webControlHeight));
        AppLogDebug("MainForm :before return");
        Invalidate(true);
        AppLogDebug("MainForm::InitWebControl Exit");
@@ -607,7 +607,6 @@ MainForm::InitFooter(void)
        __pFooterUrlField =  static_cast<EditField*> (GetControl(L"IDC_URL_EDIT_FIELD",true));
        if (__pFooterUrlField == NULL)
        {
-               AppLogDebug("__pFooterUrlField Control not found returning E_INVALID_KEY");
                return E_INVALID_KEY;
        }
 
@@ -1193,16 +1192,7 @@ MainForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
                __pMenu->SetShowState(false);
                __pMenu->Invalidate(false);
 
-               /*__adressPanelPosition.y = 0 ;
-
-               if (__pAddressbar != null && __pWebViewer != NULL)
-               {
-                       __webControlPosition.y = __pAddressbar->GetHeight();
-                       //__pAddressbar->SetBounds(0,__adressPanelPosition.y,GetClientAreaBounds().width,__pAddressbar->GetHeight());
-                       //__pAddressbar->Invalidate(true);
-                       __pWebViewer->SetBounds(Rectangle(0,__webControlPosition.y,GetClientAreaBounds().width,__webControlHeight));
-                       __pWebViewer->Invalidate(true);
-               }*/
+               __pFindWordEditField->SetFocus();
                if (__pWebViewer != null)
                {
                        // releasing the set block
@@ -1428,7 +1418,7 @@ MainForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
                        }
                        AppLogDebug("ONACTION_PERFORMED:IDA_MOREBTN_CLICKED 3");
 
-                       if (__pMenu->GetItemCount() == 12)
+                       if (__pMenu->GetItemCount() == 9)
                        {
                                r = __pMenu->SetItemAt(1,L"Add to Bookmarks"/*CommonUtil::GetString(L"IDS_BR_OPT_BOOKMARK")*/, IDA_ADDTOBOOKMARK_CLICKED,*pBitmap);
                        }
@@ -1444,7 +1434,7 @@ MainForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
                                return ;
                        }
                        AppLogDebug("ONACTION_PERFORMED:IDA_MOREBTN_CLICKED 4");
-                       if (__pMenu->GetItemCount() != 12)
+                       if (__pMenu->GetItemCount() != 9)
                        {
                                __pMenu->InsertItemAt(1,L"Add to Bookmarks"/*CommonUtil::GetString(L"IDS_BR_OPT_SHARE")*/, IDA_ADDTOBOOKMARK_CLICKED);
 
@@ -1599,6 +1589,7 @@ MainForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
                __pFindWordEditField->SetText(L"");
                __currentSearchStr = L"aaaaaabbbbbbccccccc";
                StartWordSearch();
+               __currentSearchStr = L"";
                __pFindWordNext->SetEnabled(false);
                __pFindWordPrev->SetEnabled(false);
                __pFindWordPanel->Invalidate(true);
@@ -1757,12 +1748,12 @@ MainForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
                if (__pAddressbar != null && __pWebViewer != NULL)
                {
                        __webControlPosition.y = __pAddressbar->GetHeight() - 12;
-                       __pAddressbar->SetBounds(0,__adressPanelPosition.y,GetClientAreaBounds().width,__pAddressbar->GetHeight());
-                       __pAddressbar->Invalidate(true);
-                       __webControlHeight = GetClientAreaBounds().height - __pFooterPanel->GetHeight() - ( __pAddressbar->GetY() + __pAddressbar->GetHeight() - 12);
+                       //__pAddressbar->SetBounds(0,__adressPanelPosition.y,GetClientAreaBounds().width,__pAddressbar->GetHeight());
+                       //__pAddressbar->Invalidate(true);
+                       __webControlHeight = GetClientAreaBounds().height - __pFooterPanel->GetHeight() - ( /*__pAddressbar->GetY() +*/ __pAddressbar->GetHeight() - 12);
 
-                       if(__pFooterPanel->GetShowState() == false)
-                               __pWebViewer->SetBounds(Rectangle(0,__webControlPosition.y,GetClientAreaBounds().width, GetClientAreaBounds().height - ( __pAddressbar->GetY() + __pAddressbar->GetHeight() - 12)));
+                       if (__pFooterPanel->GetShowState() == false)
+                               __pWebViewer->SetBounds(Rectangle(0,__webControlPosition.y,GetClientAreaBounds().width, GetClientAreaBounds().height - ( /*__pAddressbar->GetY() +*/ __pAddressbar->GetHeight() - 12)));
                        else
                                __pWebViewer->SetBounds(Rectangle(0,__webControlPosition.y,GetClientAreaBounds().width, __webControlHeight));
                        //                      __pWebViewer->SetBounds(Rectangle(0,__webControlPosition.y,GetClientAreaBounds().width,__webControlHeight));
@@ -2209,7 +2200,10 @@ MainForm::OnLoadingStarted(void)
                }
        }
        Bitmap* pBitmap = FaviconManager::GetInstance()->GetDefaultFaviconN();
-       __pAddressbar->SetFaviconBitmap(*pBitmap);
+       if(pBitmap != null)
+       {
+               __pAddressbar->SetFaviconBitmap(*pBitmap);
+       }
        delete pBitmap;
        if (__adressPanelPosition.y < (0 - __pAddressbar->GetHeight() + 12))
        {
@@ -2248,11 +2242,9 @@ MainForm::OnKeypadWillOpen(Tizen::Ui::Control& source)
        AppLog("MainForm::OnKeypadWillOpen");
        if (__pAddressbar != null)
        {
-               OnAddressBarKeypadOpened(*__pAddressbar);
+               OnAddressBarKeypadWillOpen(*__pAddressbar);
        }
 
-       //__pAddressbar->SetAddressbarURLFocus();
-
 }
 
 void
@@ -2260,7 +2252,7 @@ MainForm::OnKeypadOpened(Tizen::Ui::Control& source)
 {
        if(__pAddressbar != null)
        {
-               OnAddressBarKeypadClosed(*__pAddressbar, false);
+               OnAddressBarKeypadOpened(*__pAddressbar);
        }
 }
 
@@ -2275,6 +2267,13 @@ MainForm::OnKeypadClosed(Tizen::Ui::Control& source)
 }
 
 void
+MainForm::OnKeypadBoundsChanged(Tizen::Ui::Control &source)
+{
+       AppLog("KeypadBoundsChanged");
+       RelayoutControls(false);
+}
+
+void
 MainForm::OnLoadingErrorOccurred(LoadingErrorType error,
                const Tizen::Base::String& reason)
 {
@@ -2423,10 +2422,10 @@ MainForm::OnUrlSubmitted(Addressbar& addBar)
        String url = addBar.GetUrl();
        AppLog("MainForm::OnUrlSubmitted url is %ls", url.GetPointer());
 
-       LoadUrl(url);
        __pFooterPanel->SetShowState(true);
-       __pFooterPanel->Invalidate(true);
-       RequestRedraw(true);
+//     __pAddressbar->SetShowState(false);
+//     RelayoutControls(false);
+       LoadUrl(url);
 }
 
 void
@@ -2435,14 +2434,14 @@ MainForm::LoadUrl(String& url)
        String encodedUrl;
 //     UrlEncoder::Encode(url, L"UTF-8", encodedUrl);
        AppLogDebug("MainForm::LoadUrl enter");
-       encodedUrl = url;
+
        if (__pWebViewer != null)
        {
                __pWebViewer->SetShowState(true);
                __pWebViewer->Invalidate(true);
        }
 
-       if (encodedUrl.CompareTo(L"") == 0)
+       if (url.CompareTo(L"") == 0)
        {
                return;
        }
@@ -2466,17 +2465,17 @@ MainForm::LoadUrl(String& url)
        secondRegex.Construct(secondPattern, REGEX_CASELESS);
 
        // Match
-       ret = firstRegex.Match(encodedUrl, false); // This returns true value
-       flag = secondRegex.Match(encodedUrl, false);  // Checks whether URL typed is of type  abc.com (i.e without protocol in front of it)
+       ret = firstRegex.Match(url, false); // This returns true value
+       flag = secondRegex.Match(url, false);  // Checks whether URL typed is of type  abc.com (i.e without protocol in front of it)
 
        if (ret == true && __pWebViewer != null)
        {
-               __pWebViewer->LoadUrl(encodedUrl);
+               __pWebViewer->LoadUrl(url);
        }
        else if(__pWebViewer != null)
        {
                String tempUrl = L"http://";
-               tempUrl.Append(encodedUrl);
+               tempUrl.Append(url);
 
                if (flag == true)
                {
@@ -2484,6 +2483,7 @@ MainForm::LoadUrl(String& url)
                }
                else
                {
+                               UrlEncoder::Encode(url, L"UTF-8", encodedUrl);
                        __pWebViewer->LoadUrl(SettingPresentationModel::GetInstance()->GetSearchUrl(encodedUrl));
                }
        }
@@ -2643,7 +2643,7 @@ MainForm::OnAddressCancelledClicked(const Addressbar& addBar)
        {
                AppLog("MainForm::OnAddressCancelledClicked 1");
                if (__pMostVisitedListView != null && __pAddressbar != null && __pFooterPanel != null)
-                       __pMostVisitedListView->SetBounds(Tizen::Graphics::Rectangle(0,__pAddressbar->GetBounds().y + __pAddressbar->GetHeight()-12 , GetClientAreaBounds().width, __pMostVisitedListView->GetHeight()/*GetClientAreaBounds().height - __pAddressbar->GetHeight() - __pFooterPanel->GetHeight() + 14*/));
+                       __pMostVisitedListView->SetBounds(Tizen::Graphics::Rectangle(0,__pAddressbar->GetBounds().y + __pAddressbar->GetHeight()-12 , GetClientAreaBounds().width, GetClientAreaBounds().height - __pFooterPanel->GetHeight()));
 
                if (__pMostVisitedListView != null)
                        __pMostVisitedListView->Invalidate(true);
@@ -2660,7 +2660,6 @@ MainForm::OnAddressBarModeChanged(/*const Addressbar& addBar*/)
 
        if (__pAddressbar != null)
        {
-               //__curAddressBarMode = __pAddressbar->GetAddressbarMode();
                __curAddressBarMode = GetAddressbarMode();
        }
 
@@ -2683,130 +2682,51 @@ MainForm::OnAddressBarModeChanged(/*const Addressbar& addBar*/)
                __adressPanelPosition.y = 0;
                if (__pAddressbar != null)
                {
-
-                       __webControlPosition.y = 0;//__pAddressbar->GetHeight() - 12;
-                       __pAddressbar->SetBounds(Rectangle(0,__pAddressbar->GetY() - __pAddressbar->GetHeight(),GetClientAreaBounds().width,__pAddressbar->GetHeight()));
+                       __webControlPosition.y = 0;
+                       __pAddressbar->SetBounds(Rectangle(0, __pAddressbar->GetY() - __pAddressbar->GetHeight(), GetClientAreaBounds().width, __pAddressbar->GetHeight()));
                        __pAddressbar->Invalidate(true);
                }
        }
-       if (__pWebViewer != null)
-       {
-               if(__pFooterPanel->GetShowState() == false)
-                       __pWebViewer->SetBounds(Rectangle(0,__webControlPosition.y,GetClientAreaBounds().width, GetClientAreaBounds().height - ( __pAddressbar->GetY() + __pAddressbar->GetHeight() - 12)));
-               else
-                       __pWebViewer->SetBounds(Rectangle(0,__webControlPosition.y,GetClientAreaBounds().width, __webControlHeight));
-               __pWebViewer->Invalidate(true);
-       }
 }
 
 void
 MainForm::OnAddressBarKeypadClosed(const Addressbar& addBar, bool footerState)
 {
-
-       if(__pFooterPanel != null)
-       {
-               String homePage = SettingPresentationModel::GetInstance()->GetHomepage();
-               if (homePage.CompareTo((L"IDS_BR_BODY_MOST_VISITED_SITES")) == 0)
-               {
-                       InitMostVisitedSitesView(GetOrientationStatus());
-               }
-               __pFooterPanel->SetBounds(0, GetClientAreaBounds().height - __pFooterPanel->GetHeight(), __pFooterPanel->GetWidth(), __pFooterPanel->GetHeight());
-               __pFooterPanel->SetShowState(footerState);
-               __pFooterPanel->Invalidate(false);
-       }
-
-
-
-       //AppLogDebug("MainForm::OnAddressBarKeypadClosed enterd");
-
-       if (__pWebViewer != null && __pFooterPanel != null)
-       {
-               AppLog("MainForm::OnAddressBarKeypadClosed GetClientAreaBounds().height %d ", GetClientAreaBounds().height);
-               __webControlHeight = GetClientAreaBounds().height - __pFooterPanel->GetHeight();
-
-               if(__pFooterPanel->GetShowState() == false)
-                       __pWebViewer->SetBounds(Rectangle(0,__webControlPosition.y,GetClientAreaBounds().width, GetClientAreaBounds().height));
-               else
-                       __pWebViewer->SetBounds(Rectangle(0,__webControlPosition.y,GetClientAreaBounds().width, __webControlHeight));
-               __pWebViewer->Invalidate(false);
-               //__pWebViewer->SetBounds(Rectangle(0, 82, GetClientAreaBounds().width,webControlHeight));
-       }
-       if(__pMostVisitedListView != null && __pAddressbar != null && __pFooterPanel != null)
-               __pMostVisitedListView->SetBounds(Tizen::Graphics::Rectangle(0,__pAddressbar->GetBounds().y + __pAddressbar->GetHeight()-12 , GetClientAreaBounds().width, GetClientAreaBounds().height - __pAddressbar->GetHeight() - __pFooterPanel->GetHeight() + 14));
-
+       __pFooterPanel->SetShowState(true);
+       RelayoutControls(false);
 }
 
 void
 MainForm::OnAddressBarKeypadOpened(const Addressbar& addBar)
 {
-       AppLog("MainForm::OnAddressBarKeypadOpened");
-
        if (__pFindWordPanel && __pFindWordPanel->GetShowState() == true)
        {
                __pAddressbar->SetShowState(false);
-               __pAddressbar->Invalidate(true);
        }
        else
        {
                if (__pAddressbar != null && __pAddressbar->GetShowState() == false)
                {
                        __pAddressbar->SetShowState(true);
-                       __pAddressbar->Invalidate(true);
                        __pAddressbar->SetBounds(Rectangle(0,0,GetClientAreaBounds().width,__pAddressbar->GetHeight()));
                        __pAddressbar->SetAddressbarURLFocus();
                }
        }
 
-       // setting the
-       //__pAddressbar->SetBounds(__pAddressbar->GetX(), 0, __pAddressbar->GetWidth(), __pAddressbar->GetHeight());
-
-
-       if (__pMostVisitedListView && __pMostVisitedListView->GetShowState() == true)
-       {
-               AppLog("MainForm::OnAddressBarKeypadOpened 1");
-               if (__pMostVisitedListView != null && __pAddressbar != null && __pFooterPanel != null)
-                       __pMostVisitedListView->SetBounds(Tizen::Graphics::Rectangle(0,__pAddressbar->GetBounds().y + __pAddressbar->GetHeight()-12 , GetClientAreaBounds().width, /*__pMostVisitedListView->GetHeight()*/GetClientAreaBounds().height - __pAddressbar->GetHeight() - __pFooterPanel->GetHeight() + 14));
-
-               if(__pMostVisitedListView != null)
-                       __pMostVisitedListView->Invalidate(true);
-       }
-       else if (__pWebViewer != null && __pWebViewer->GetShowState() == true)
-       {
-               AppLog("MainForm::OnAddressBarKeypadOpened 2");
-               if (__pWebViewer != null && __pAddressbar != null && __pFooterPanel != null)
-                       __pWebViewer->SetBounds(Tizen::Graphics::Rectangle(0,__pAddressbar->GetBounds().y + __pAddressbar->GetHeight()-12 , GetClientAreaBounds().width, /*__pWebViewer->GetHeight()*/GetClientAreaBounds().height - __pAddressbar->GetHeight() - __pFooterPanel->GetHeight() + 14));
-
-               if(__pWebViewer != null)
-                       __pWebViewer->Invalidate(true);
-       }
-
-       /*else
-               {
-                       if (__pWebViewer != null)
-                       {
-                               __pWebViewer->SetShowState(false);
-                               __pWebViewer->Invalidate(true);
-                       }
-
-                       __pMostVisitedListView->SetShowState(true);
-                       if (__pMostVisitedListView != null && __pAddressbar != null && __pFooterPanel != null)
-                               __pMostVisitedListView->SetBounds(Tizen::Graphics::Rectangle(0,__pAddressbar->GetBounds().y + __pAddressbar->GetHeight()-12 , GetClientAreaBounds().width, __pMostVisitedListView->GetHeight()GetClientAreaBounds().height - __pAddressbar->GetHeight() - __pFooterPanel->GetHeight() + 14));
-
-                       if(__pMostVisitedListView != null)
-                               __pMostVisitedListView->Invalidate(true);
-
-               }*/
-
-
-       __pFooterPanel->SetShowState(false);
-       __pFooterPanel->Invalidate(true);
+       RelayoutControls(false);
 }
 
 void
 MainForm::OnAddressBarKeypadWillOpen(const Addressbar& addBar)
 {
        __pFooterPanel->SetShowState(false);
-       __pFooterPanel->Invalidate(false);
+}
+
+void
+MainForm::OnAddressBarKeypadBoundsChanged(const Addressbar& addBar)
+{
+       AppLog("KeypadBoundsChanged");
+       RelayoutControls(false);
 }
 
 void
@@ -2823,11 +2743,8 @@ MainForm::OnPageTitleReceived(const Tizen::Base::String& title)
        if (__pAddressbar != null && __pWebViewer != null)
        {
                SetUrl(__pWebViewer->GetUrl());
-               //__pAddressbar->SetUrl(__pWebViewer->GetUrl());
-               //__pAddressbar->UpdateFaviconBitmap(SettingPresentationModel::GetInstance()->GetPrivateOn());
                __pAddressbar->Invalidate(true);
        }
-
 }
 
 void
@@ -2868,12 +2785,10 @@ MainForm::UpdateFavicon(void)
                        {
                                if (__pWindowInfo->pFavicon != NULL)
                                {
-                                       //                      delete __pWindowInfo->pFavicon;
                                        __pWindowInfo->pFavicon = null;
                                }
                                __pWindowInfo->pFavicon = new(std::nothrow) Bitmap();
                                __pWindowInfo->pFavicon->Construct(*pBitmap,Rectangle(0,0,pBitmap->GetWidth(),pBitmap->GetHeight()));
-                               //bool isPrivateBrowsing = __pWebViewer->IsPrivateBrowsingEnabled();
 
                                __pAddressbar->SetFaviconBitmap(*__pWindowInfo->pFavicon);
 
@@ -2885,10 +2800,12 @@ MainForm::UpdateFavicon(void)
                        }
                        else
                        {
-                               __pAddressbar->SetFaviconBitmap(*FaviconManager::GetInstance()->GetDefaultFaviconN());
+                               Bitmap *pDefaultBmp = FaviconManager::GetInstance()->GetDefaultFaviconN();
+                               if(pDefaultBmp != null)
+                               {
+                                       __pAddressbar->SetFaviconBitmap(*pDefaultBmp);
+                               }
                        }
-
-                       AppLogDebug("Favicon download requested: url: %ls", url.ToString().GetPointer());
                }
                delete tempPath;
        }
@@ -2960,9 +2877,7 @@ MainForm::OnLoadingRequested(const Tizen::Base::String& url,
                        pAppControl = dynamic_cast<AppControl*>(AppManager::FindAppControlN(appId, operationId));
                        if(pAppControl)
                        {
-                               AppLog("Starting AppControl");
                                result r = pAppControl->Start(null, null, pMap, null);
-                               AppLog("Result of Start %s", GetErrorMessage(r));
                        }
                        else
                        {
@@ -3039,7 +2954,7 @@ MainForm::OnWebPageBlockSelected(Tizen::Web::Controls::Web& source, Tizen::Graph
                __currentSelectedStr = __pWebViewer->GetTextFromBlock();
                AppLog("__currentSelectedStr after GetTextFromBlock %ls",__currentSelectedStr.GetPointer());
 
-               if ((tagName.CompareTo(L"INPUT") == 0)  || tagName.CompareTo(L"TEXTAREA") == 0)
+               if (((tagName.CompareTo(L"INPUT") == 0)  || tagName.CompareTo(L"TEXTAREA") == 0) && __isLongPressedDone == true)
                {
                        AppLog("MainForm::OnWebPageBlockSelected show paste option");
 
@@ -3048,7 +2963,7 @@ MainForm::OnWebPageBlockSelected(Tizen::Web::Controls::Web& source, Tizen::Graph
                        __pImageMenu->Show();
                        __pImageMenu->Invalidate(true);
                }
-               else /*if (__pHitElementResult->HasUrl() == true )*/
+               else if(__isLongPressedDone == true)
                {
                        AppLog("MainForm::OnWebPageBlockSelected no paste option");
 
@@ -3118,19 +3033,34 @@ MainForm::OnWebWindowCreateRequested(void)
 void
 MainForm::RelayoutControls(bool showAddressbar)
 {
-       if (showAddressbar == false)
+       __webControlPosition.y = 0;
+       __webControlHeight = GetClientAreaBounds().height;
+
+       AppLog("Client area height: %d", __webControlHeight);
+       if(__pAddressbar != null && __pAddressbar->GetShowState() == true)
        {
-               __pAddressbar->SetShowState(false);
-               __pWebViewer->SetBounds(__pWebViewer->GetX(), 0, __pWebViewer->GetWidth(), __webControlHeight);
-               __pFooterPanel->SetBounds(__pFooterPanel->GetX(), GetClientAreaBounds().height - __pFooterPanel->GetHeight(), __pFooterPanel->GetWidth(), __pFooterPanel->GetHeight());
+               __webControlPosition.y += __pAddressbar->GetHeight();
+               __webControlHeight -= __pAddressbar->GetHeight();
        }
-       else
+       else if(__pFindWordPanel != null && __pFindWordPanel->GetShowState() == true)
        {
-               __pAddressbar->SetShowState(true);
-               __pWebViewer->SetBounds(__pWebViewer->GetX(), __pWebViewer->GetY(), __pWebViewer->GetWidth(), __webControlHeight);
-               __pFooterPanel->SetBounds(__pFooterPanel->GetX(), GetClientAreaBounds().height - __pFooterPanel->GetHeight(), __pFooterPanel->GetWidth(), __pFooterPanel->GetHeight());
+               __webControlPosition.y += __pFindWordPanel->GetHeight();
+               __webControlHeight -= __pFindWordPanel->GetHeight();
        }
-       RequestRedraw(true);
+
+       if(__pFooterPanel != null && __pFooterPanel->GetShowState() == true)
+       {
+               __webControlHeight -= __pFooterPanel->GetHeight();
+       }
+       if (__pWebViewer != null && __pWebViewer->GetShowState() == true)
+       {
+               __pWebViewer->SetBounds(0, __webControlPosition.y, GetClientAreaBounds().width, __webControlHeight);
+               __pWebViewer->Invalidate(false);
+       }
+       if(__pMostVisitedListView != null && __pAddressbar != null && __pFooterPanel != null)
+               __pMostVisitedListView->SetBounds(Tizen::Graphics::Rectangle(0,__webControlPosition.y , GetClientAreaBounds().width, __webControlHeight));
+
+       Invalidate(true);
 }
 
 void MainForm::ShowFindWordPanel(bool show , bool isTouchPressed)
@@ -3145,6 +3075,14 @@ void MainForm::ShowFindWordPanel(bool show , bool isTouchPressed)
                __pFindWordEditField->SetText(__currentSearchStr);
                //__pFindWordCountLabel->SetText(L"");
                __pFindWordCountLabel->SetText(L"0/0");
+               __pFindWordPanel->SetShowState(true);
+       }
+       else
+       {
+               if(__pFindWordPanel != null)
+               {
+                       __pFindWordPanel->SetShowState(false);
+               }
        }
 
        AppLog("MainForm::ShowFindWordPanel %d",show);
@@ -3162,18 +3100,7 @@ void MainForm::ShowFindWordPanel(bool show , bool isTouchPressed)
                        __pFindWordEditField->HideKeypad();
        }
 
-       if (__pAddressbar != null)
-       {
-               __pAddressbar->SetBounds(__pAddressbar->GetX(), 0 - __pAddressbar->GetHeight(), __pAddressbar->GetWidth(), __pAddressbar->GetHeight());
-               __pAddressbar->SetShowState(false);
-               __pAddressbar->Invalidate(true);
-       }
-       if (__pFindWordPanel != null)
-       {
-               __pFindWordPanel->SetShowState(show);
-               __pFindWordPanel->Invalidate(true);
-       }
-       Invalidate(true);
+       RelayoutControls(false);
 }
 
 void
@@ -3205,9 +3132,9 @@ void MainForm::OnTextFound(int totalCount, int currentOrdinal)
 
        if(totalCount == -1 || totalCount == 0)
        {
-               __pFindWordCountLabel->SetBounds(__pFindWordCountLabel->GetX(),__pFindWordCountLabel->GetY(),4,__pFindWordCountLabel->GetHeight());
+               __pFindWordCountLabel->SetBounds(__pFindWordCountLabel->GetX(),__pFindWordCountLabel->GetY(),64,__pFindWordCountLabel->GetHeight());
                __pFindWordEditField->SetBounds(__pFindWordEditField->GetX(),__pFindWordEditField->GetY(),214+80,__pFindWordEditField->GetHeight());
-               return;
+//             return;
        }
        else if(totalCount > 100)
        {
@@ -3454,6 +3381,7 @@ void MainForm::OnTouchLongPressed(const Tizen::Ui::Control& source, const Tizen:
                        __pImageMenu->Show();
                        __pImageMenu->Invalidate(true);
                }
+               __isLongPressedDone = true;
                __pWebViewer->SetBlockSelectionPosition(currentPosition);
 
 
@@ -3485,11 +3413,9 @@ MainForm::OnOrientationChanged (const Tizen::Ui::Control &source, Tizen::Ui::Ori
        AppLog("MainForm::OnOrientationChanged GetClientAreaBounds %d, %d",GetClientAreaBounds().width,GetClientAreaBounds().height);
        int widthContextItem = 0;
 
-       Bitmap *pBitmap = null;
-
+       Bitmap *pBitmap = CommonUtil::GetNinepatchedBitmapN(IDB_SEARCH_INPUT_FIELD_BG, __pFooterLabel->GetWidth(), __pFooterLabel->GetHeight());
        if (pBitmap != null && __pFooterLabel != null)
        {
-               pBitmap = CommonUtil::GetNinepatchedBitmapN(IDB_SEARCH_INPUT_FIELD_BG, __pFooterLabel->GetWidth(), __pFooterLabel->GetHeight());
                __pFooterLabel->SetBackgroundBitmap(*pBitmap);
                delete pBitmap;
        }
@@ -3505,44 +3431,6 @@ MainForm::OnOrientationChanged (const Tizen::Ui::Control &source, Tizen::Ui::Ori
                widthContextItem = WIDTH_CONTEXT_MENU_BUTTON_PORTRAIT;
        }
 
-       if (__pFindWordPanel != null && __pFindWordPanel->GetShowState() == true)
-       {
-               __pFindWordPanel->SetBounds(0,0,GetClientAreaBounds().width,__pFindWordPanel->GetHeight());
-               __pFindWordControl->SetBounds(0,0, __pFindWordPanel->GetWidth(), __pFindWordPanel->GetHeight());
-               __pFindWordControl->SetShowState(true);
-               __pFindWordControl->Invalidate(true);
-               __pFindWordPanel->SetShowState(true);
-               __pFindWordPanel->Invalidate(true);
-       }
-
-       if (__pWebViewer != null && __pFooterPanel != null)
-       {
-               AppLog("MainForm::OnOrientationChanged GetClientAreaBounds().height %d ", GetClientAreaBounds().height);
-               __webControlHeight = GetClientAreaBounds().height - __pFooterPanel->GetHeight();
-
-               if(__pFooterPanel->GetShowState() == false)
-                       __pWebViewer->SetBounds(Rectangle(0,__webControlPosition.y,GetClientAreaBounds().width, GetClientAreaBounds().height));
-               else
-                       __pWebViewer->SetBounds(Rectangle(0,__webControlPosition.y,GetClientAreaBounds().width, __webControlHeight));
-               __pWebViewer->Invalidate(true);
-
-               //__pWebViewer->SetBounds(Rectangle(0, 82, GetClientAreaBounds().width,webControlHeight));
-       }
-       if (__pAddressbar != null)
-       {
-               if(__pAddressbar->GetShowState() == false)
-               {
-                       __pAddressbar->SetBounds(__pAddressbar->GetX(), 0 - __pAddressbar->GetHeight(), __pAddressbar->GetWidth(), __pAddressbar->GetHeight());
-               }
-               else
-               {
-                       __pAddressbar->SetBounds(__pAddressbar->GetX(), 0, __pAddressbar->GetWidth(), __pAddressbar->GetHeight());
-               }
-               //__pAddressbar->SetBounds(Rectangle(0,0,GetClientAreaBounds().width,__pAddressbar->GetHeight()));
-               //__pAddressbar->SetAddressbarMode(__pAddressbar->GetAddressbarMode());
-               SetAddressbarMode(GetAddressbarMode());
-               //      __pAddressbar->UpdateFaviconBitmap(SettingPresentationModel::GetInstance()->GetPrivateOn());
-       }
        if (__pFindWordBgLabel != null)
        {
                //              __pFindWordBgLabel->SetSize(GetClientAreaBounds().width,GetClientAreaBounds().height);
@@ -3553,7 +3441,7 @@ MainForm::OnOrientationChanged (const Tizen::Ui::Control &source, Tizen::Ui::Ori
                        delete pBitmap;
                }
        }
-       if (__pFooterPanel /*&& __pFooterPanel->GetShowState() == true*/)
+       if (__pFooterPanel)
        {
                AppLog("__pFooterPanel->GetShowState() is true");
                InitFooter();
@@ -3569,27 +3457,13 @@ MainForm::OnOrientationChanged (const Tizen::Ui::Control &source, Tizen::Ui::Ori
                __pMenu->Invalidate(true);
        }
 
-       if (__pFooterPanel)
-       {
-               __pFooterPanel->Invalidate(true);
-       }
        String homePage = SettingPresentationModel::GetInstance()->GetHomepage();
        if (homePage.CompareTo((L"IDS_BR_BODY_MOST_VISITED_SITES")) == 0)
        {
                InitMostVisitedSitesView(orientationStatus);
        }
 
-       if(__pMostVisitedListView != null && __pAddressbar != null && __pFooterPanel != null)
-       {
-               if(__pAddressbar != null && __pAddressbar->GetShowState() == true)
-               {
-                       __pMostVisitedListView->SetBounds(__pAddressbar->GetX(),__pAddressbar->GetY()+__pAddressbar->GetHeight(),GetClientAreaBounds().width,GetClientAreaBounds().height - __pAddressbar->GetHeight()- __pFooterPanel->GetHeight());
-               }
-               else if(__pAddressbar != null && __pAddressbar->GetShowState() == false)
-               {
-                       __pMostVisitedListView->SetBounds(__pAddressbar->GetX(),__pAddressbar->GetY()+__pAddressbar->GetHeight(),GetClientAreaBounds().width,GetClientAreaBounds().height - __pFooterPanel->GetHeight());
-               }
-       }
+       RelayoutControls(false);
        if (__pArticleReaderPanel != null)
        {
                if (__pArticleReaderPanel->GetShowState() == true)
@@ -3785,6 +3659,7 @@ MainForm::OnTouchPressed(const Tizen::Ui::Control& source, const Tizen::Graphics
                AppLog("MainForm::OnTouchPressed %d",__pFindWordPanel->GetShowState());
                ShowFindWordPanel(__pFindWordPanel->GetShowState(), true);
        }
+       __isLongPressedDone = false;
 
        Touch touch;
        IList* pList = null;
@@ -3842,104 +3717,8 @@ MainForm::OnTouchPressed(const Tizen::Ui::Control& source, const Tizen::Graphics
 void
 MainForm::OnTouchMoved(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo)
 {
-       __pWebViewer->ReleaseBlock();
        __currentWordIndex = 0;
-       AppLog("Start MainForm::OnTouchMoved MoveUiControls");
-       if(__pFindWordPanel)
-       {
-               AppLog("MainForm::OnTouchPressed %d",__pFindWordPanel->GetShowState());
-               ShowFindWordPanel(__pFindWordPanel->GetShowState(), true);
-       }
-
-       if (__pFindWordEditField != null)
-       {
-               __pFindWordEditField->HideKeypad();
-       }
-
-       /*if (__pAddressbar->GetAddressbarMode() == ADDRESSBAR_MODE_EDIT)
-       {
-               return;
-       }*/
-       if (GetAddressbarMode() == ADDRESSBAR_MODE_EDIT)
-       {
-               return;
-       }
-       static int Count=0;
-       Touch touch;
-       IList* pList = null;
-       pList = touch.GetTouchInfoListN(source);
-
-       if (pList != null)
-       {
-               int count = pList->GetCount();
-               if (count == 1)
-               {
-                       AppLogDebug("MainForm::OnTouchMoved count 1");
-                       TouchInfo* pTouchInfo = static_cast<TouchInfo*>(pList->GetAt(0));
-
-                       if( pTouchInfo == NULL )
-                       {
-                               return;
-                       }
-                       pTouchInfo->position.y += __pWebViewer->GetY();
-                       AppLog("MainForm::OnTouchMoved MoveUiControls %d,%d",pTouchInfo->position.x,pTouchInfo->position.y);
-
-                       if (__isLoaded == false)
-                               return;
-
-                       __distanceMoved = pTouchInfo->position.y - __touchPoint1.y;
-                       __touchPoint1 = pTouchInfo->position;
-
-                       // move the address bar and web control according to distance moved
-                       MoveUiControls();
-               }
-               else if (count == 2)
-               {
-                       AppLogDebug("MainForm::OnTouchMoved count 2");
-
-                       if(Count == 10)
-                       {
-                               TouchInfo* pTouchInfo = static_cast<TouchInfo*>(pList->GetAt(0));
-
-                               if( pTouchInfo == NULL )
-                               {
-                                       return;
-                               }
-                               Point firstPoint = pTouchInfo->position;
-
-                               pTouchInfo = static_cast<TouchInfo*>(pList->GetAt(1));
-                               if( pTouchInfo == NULL )
-                               {
-                                       return;
-                               }
-                               Point secondPoint = pTouchInfo->position;
-
-                               if (__touchPoint1 == Point(-1,-1) || __touchPoint2 == Point(-1,-1))
-                               {
-                                       __touchPoint1 = firstPoint;
-                                       __touchPoint2 = secondPoint;
-                                       delete pList;
-                                       return;
-                               }
-
-                               int currX1 = firstPoint.x;
-                               int currY1 = firstPoint.y;
-                               int currX2 = secondPoint.x;
-                               int currY2 = secondPoint.y;
-
-                               double prevDist = findDistance(__touchPoint1.x,__touchPoint1.y,__touchPoint2.x,__touchPoint2.y);
-                               double dist = findDistance(currX1, currY1, currX2, currY2);
-                               __distanceMoved = prevDist - dist;
-
-                               __touchPoint1 = firstPoint;
-                               __touchPoint2 = secondPoint;
-                               MoveUiControls();
-                               Count = 0;
-                       }
-               }
-               Count++;
-               delete pList;
-       }
+       __isLongPressedDone = false;
 
 }
 
@@ -4020,15 +3799,20 @@ MainForm::InitMostVisitedSitesView(Tizen::Ui::OrientationStatus orientationStatu
 
        __webControlHeight = GetClientAreaBounds().height - __pFooterPanel->GetHeight();
        __pMostVisitedListView = new(std::nothrow) ListView();
-       if(__pFooterPanel->GetShowState() == false)
+
+       int height = GetClientAreaBounds().height;
+
+       if(__pFooterPanel->GetShowState() == true)
        {
-               r = __pMostVisitedListView->Construct(Tizen::Graphics::Rectangle(0,0 , GetClientAreaBounds().width, GetClientAreaBounds().height),true,false);
+               height = height - __pFooterPanel->GetHeight();
        }
-       else
+       if(__pAddressbar->GetShowState() == true)
        {
-               r = __pMostVisitedListView->Construct(Tizen::Graphics::Rectangle(0,__pAddressbar->GetBounds().y + __pAddressbar->GetHeight() , GetClientAreaBounds().width, __webControlHeight),true,false);
+               height -= __pAddressbar->GetHeight();
        }
 
+       r = __pMostVisitedListView->Construct(Tizen::Graphics::Rectangle(0,0 , GetClientAreaBounds().width, height),true,false);
+
        if (r != E_SUCCESS)
        {
                delete __pMostVisitedListView;
@@ -4039,12 +3823,6 @@ MainForm::InitMostVisitedSitesView(Tizen::Ui::OrientationStatus orientationStatu
        __pMostVisitedListView->AddListViewItemEventListener(*this);
        __pMostVisitedListView->SetTextOfEmptyList(CommonUtil::GetString(L"IDS_BR_BODY_NO_RECENTLY_VISITED_SITES"));
        AddControl(*__pMostVisitedListView);
-       AppLog("__pMostVisitedSitesPanel addcontrol %s",GetErrorMessage(r));
-       if(__pFooterPanel->GetShowState() == false)
-               __pMostVisitedListView->SetBounds(Tizen::Graphics::Rectangle(0,0, GetClientAreaBounds().width, GetClientAreaBounds().height - __pAddressbar->GetHeight() + 14));
-       else
-               __pMostVisitedListView->SetBounds(Tizen::Graphics::Rectangle(0,0, GetClientAreaBounds().width, GetClientAreaBounds().height - __pAddressbar->GetHeight() - __pFooterPanel->GetHeight() + 14));
-
        __pMostVisitedListView->UpdateList();
 
        return E_SUCCESS;
@@ -4259,7 +4037,7 @@ void MainForm::SetAddressbarMode(AddressBarMode addMode)
        break;
        case ADDRESSBAR_MODE_LOADING_COMPLETE:
        {
-               SetUrl(__pAddressbar->GetUrl());
+//             SetUrl(__pAddressbar->GetUrl());
 
                __pRefreshBtn->SetShowState(true);
                __pStopBtn->SetShowState(false);
index 047c5cd..fdb944b 100644 (file)
@@ -549,12 +549,15 @@ MultipleWindowForm::CreateItem(int index, int itemWidth)
 
                __pListIconImage = pAppResource->GetBitmapN(L"I01_icon_default_favicon.png");
        }
-       AppLog("deleteimg %d %d",__pListDeleteImage->GetWidth(),__pListDeleteImage->GetHeight());
+
 
        listImageRect.SetBounds(screenBounds.x + 16, screenBounds.y + 28,width, 72);
-       pagetTitleRect.SetBounds(listImageRect.x + width + 16,10, screenBounds.width - 2 * width - 64, 60);
+       pagetTitleRect.SetBounds(listImageRect.x + width + 16,10, screenBounds.width - 2 * width - 24 - 64, 60);
        pageURLRect.SetBounds(pagetTitleRect.x, pagetTitleRect.y + pagetTitleRect.height, screenBounds.width - 2 * width - 120, 48);
-       deleteImageRect.SetBounds(screenBounds.width - __pListDeleteImage->GetWidth() - 24, (128 - __pListDeleteImage->GetHeight() - 8)/2, __pListDeleteImage->GetWidth() + 8, __pListDeleteImage->GetHeight() + 8);
+       if(__pListDeleteImage != null)
+       {
+               deleteImageRect.SetBounds(screenBounds.width - __pListDeleteImage->GetWidth() - 24, (128 - __pListDeleteImage->GetHeight() - 8)/2, __pListDeleteImage->GetWidth() + 8, __pListDeleteImage->GetHeight() + 8);
+       }
        pItem->AddElement(listImageRect, IDA_FORMAT_BITMAP, *__pListIconImage, null, null);
 
        if (pageTitle.CompareTo(L"") != 0)
index e932877..176f971 100644 (file)
@@ -955,46 +955,58 @@ void
 SettingForm::ClearHistory(void)
 {
        String message = CommonUtil::GetString(L"IDS_BR_BODY_DELETE_BROWSER_HISTORY_Q");
-       __pConfirmationPopup = new(std::nothrow) ConfirmationPopup();
-       __pConfirmationPopup->Initialize();
-       __pConfirmationPopup->RemoveActionListener(*this);
-       __pConfirmationPopup->AddActionListener(*this);
-       __pConfirmationPopup->setMessage(message);
-       __pConfirmationPopup->Show();
+       if(!__pConfirmationPopup)
+       {
+               __pConfirmationPopup = new(std::nothrow) ConfirmationPopup();
+               __pConfirmationPopup->Initialize();
+               __pConfirmationPopup->RemoveActionListener(*this);
+               __pConfirmationPopup->AddActionListener(*this);
+               __pConfirmationPopup->setMessage(message);
+               __pConfirmationPopup->Show();
+       }
 }
 
 void
 SettingForm::ClearCache(void)
 {
        String message = CommonUtil::GetString(L"IDS_BR_POP_DELETE_LOCALLY_CACHED_CONTENT_AND_DATABASES_Q");
-       __pConfirmationPopup = new(std::nothrow) ConfirmationPopup();
-       __pConfirmationPopup->Initialize();
-       __pConfirmationPopup->RemoveActionListener(*this);
-       __pConfirmationPopup->AddActionListener(*this);
-       __pConfirmationPopup->setMessage(message);
-       __pConfirmationPopup->Show();
+       if(!__pConfirmationPopup)
+       {
+               __pConfirmationPopup = new(std::nothrow) ConfirmationPopup();
+               __pConfirmationPopup->Initialize();
+               __pConfirmationPopup->RemoveActionListener(*this);
+               __pConfirmationPopup->AddActionListener(*this);
+               __pConfirmationPopup->setMessage(message);
+               __pConfirmationPopup->Show();
+       }
 }
 
 void
 SettingForm::ClearCookie(void)
 {
        String message = CommonUtil::GetString(L"IDS_BR_POP_EMPTY_COOKIE_POPUP_BNO");
-       __pConfirmationPopup = new(std::nothrow) ConfirmationPopup();
-       __pConfirmationPopup->Initialize();
-       __pConfirmationPopup->RemoveActionListener(*this);
-       __pConfirmationPopup->AddActionListener(*this);
-       __pConfirmationPopup->setMessage(message);
-       __pConfirmationPopup->Show();
+       if(!__pConfirmationPopup)
+       {
+               __pConfirmationPopup = new(std::nothrow) ConfirmationPopup();
+               __pConfirmationPopup->Initialize();
+               __pConfirmationPopup->RemoveActionListener(*this);
+               __pConfirmationPopup->AddActionListener(*this);
+               __pConfirmationPopup->setMessage(message);
+               __pConfirmationPopup->Show();
+       }
 }
 
 void
 SettingForm::ResetToDefault()
 {
        String message = CommonUtil::GetString(L"IDS_BR_POP_RESET_ALL_SETTINGS_TO_DEFAULT_Q");
-       __pConfirmationPopup = new(std::nothrow) ConfirmationPopup();
-       __pConfirmationPopup->Initialize();
-       __pConfirmationPopup->RemoveActionListener(*this);
-       __pConfirmationPopup->AddActionListener(*this);
-       __pConfirmationPopup->setMessage(message);
-       __pConfirmationPopup->Show();
+       if(!__pConfirmationPopup)
+       {
+               __pConfirmationPopup = new(std::nothrow) ConfirmationPopup();
+               __pConfirmationPopup->Initialize();
+               __pConfirmationPopup->RemoveActionListener(*this);
+               __pConfirmationPopup->AddActionListener(*this);
+               __pConfirmationPopup->setMessage(message);
+               __pConfirmationPopup->Show();
+       }
 }