Web page url issue
authorManoj Das <m.das@samsung.com>
Thu, 4 Apr 2013 08:29:01 +0000 (13:59 +0530)
committerManoj Das <m.das@samsung.com>
Thu, 4 Apr 2013 08:29:01 +0000 (13:59 +0530)
Change-Id: I3fe00003aa63079df0141e83d9d7eb71dfc1bd6e

src/IntMainForm.cpp

index b3f6d2f..fc2c9e1 100644 (file)
@@ -547,20 +547,6 @@ MainForm::InitFooter(void)
                return E_FAILURE;
        }
 
-       /*pBackButton = static_cast< Button* >(GetControl(L"IDC_PAGEBACK_BUTTON", true));
-
-       if ( pBackButton == NULL )
-       {
-               return E_FAILURE;
-       }
-
-       pBookmarkButton = static_cast< Button* >(GetControl(L"IDC_BOOKMARK_BUTTON", true));
-
-       if ( pBookmarkButton == NULL )
-       {
-               return E_FAILURE;
-       }*/
-
        __pMoreButton = static_cast<Button*>(GetControl(L"IDC_MORE_BUTTON",true));
 
        if ( __pMoreButton == NULL )
@@ -568,13 +554,6 @@ MainForm::InitFooter(void)
                return E_FAILURE;
        }
 
-       /*__pNewWindowButton = static_cast< Button* >(GetControl(L"IDC_NEW_WINDOW",true));
-
-       if ( __pNewWindowButton == NULL )
-       {
-               return E_FAILURE;
-       }*/
-
        if (__pMultiWindowButton != null)
        {
                Bitmap* pBitmap = null;
@@ -2428,12 +2407,16 @@ void MainForm::OnFaviconReceived(const Tizen::Graphics::Bitmap& favicon)
        {
                pFavIconBitmap->GetWidth();
                pFavIconBitmap->GetHeight();
-               AppLog("MainForm::OnFaviconReceived width = %d",pFavIconBitmap->GetWidth());
-               AppLog("MainForm::OnFaviconReceived height = %d",pFavIconBitmap->GetHeight());
        }
 }
 
 void
+MainForm::OnUrlValueChanged(Addressbar&)
+{
+       Invalidate(true);
+}
+
+void
 MainForm::OnUrlSubmitted(Addressbar& addBar)
 {
        AppLog("MainForm::OnUrlSubmitted");
@@ -2450,9 +2433,9 @@ void
 MainForm::LoadUrl(String& url)
 {
        String encodedUrl;
-       UrlEncoder::Encode(url, L"UTF-8", encodedUrl);
+//     UrlEncoder::Encode(url, L"UTF-8", encodedUrl);
        AppLogDebug("MainForm::LoadUrl enter");
-
+       encodedUrl = url;
        if (__pWebViewer != null)
        {
                __pWebViewer->SetShowState(true);
@@ -3502,9 +3485,11 @@ 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 = CommonUtil::GetNinepatchedBitmapN(IDB_SEARCH_INPUT_FIELD_BG, __pFooterLabel->GetWidth(), __pFooterLabel->GetHeight());
+       Bitmap *pBitmap = null;
+
        if (pBitmap != null && __pFooterLabel != null)
        {
+               pBitmap = CommonUtil::GetNinepatchedBitmapN(IDB_SEARCH_INPUT_FIELD_BG, __pFooterLabel->GetWidth(), __pFooterLabel->GetHeight());
                __pFooterLabel->SetBackgroundBitmap(*pBitmap);
                delete pBitmap;
        }
@@ -3513,7 +3498,6 @@ MainForm::OnOrientationChanged (const Tizen::Ui::Control &source, Tizen::Ui::Ori
                __pMenu->SetShowState(false);
        if( GetOrientationStatus() == ORIENTATION_STATUS_LANDSCAPE || GetOrientationStatus() == ORIENTATION_STATUS_LANDSCAPE_REVERSE)
        {
-
                widthContextItem = WIDTH_CONTEXT_MENU_BUTTON_LANDSCAPE;
        }
        else