add to resume event tizen_2.1 submit/tizen_2.1/20130515.030319
authorahram.suh <ahram.suh@samsung.com>
Tue, 14 May 2013 11:12:28 +0000 (20:12 +0900)
committerahram.suh <ahram.suh@samsung.com>
Tue, 14 May 2013 11:12:28 +0000 (20:12 +0900)
Change-Id: I7b2f9d47beef24812562ce6d923996696e3b0f4a

inc/IntTypes.h
src/IntInternetApp.cpp
src/IntMainForm.cpp

index 3b6c423..7e61506 100644 (file)
@@ -35,6 +35,7 @@ static const int MAX_NOTEBOOK_TABLE_COLUMN = 8;
 static const int IDA_BUTTON_NO = 1000;
 static const int IDA_BUTTON_YES = 1001;
 
+const int FORE_GROUND_APP_EVENT = 998;
 const int BACK_GROUND_APP_EVENT = 999;
 static const unsigned int CUSTOM_COLOR_GREY = Tizen::Graphics::Color32<124,124,124>::Value;
 static const unsigned int CUSTOM_COLOR_TRANSPARENT = Tizen::Graphics::Color32<0,0,0>::Value;
index 0798b46..a864d7f 100644 (file)
@@ -195,8 +195,11 @@ InternetApp::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
 void
 InternetApp::OnForeground(void)
 {
-
-
+       Form* pCurrentForm = (SceneManager::GetInstance()->GetCurrentScene()->GetForm());
+       if (pCurrentForm)
+       {
+               pCurrentForm->SendUserEvent(FORE_GROUND_APP_EVENT, NULL);
+       }
 }
 
 void
index 6426ba5..caab5ef 100644 (file)
@@ -4786,4 +4786,11 @@ void MainForm::OnUserEventReceivedN (RequestId requestId, Tizen::Base::Collectio
                        __pWebViewer->Pause();
                }
        }
+       else if(requestId == FORE_GROUND_APP_EVENT)
+       {
+               if(__pWebViewer != null)
+               {
+                       __pWebViewer->Resume();
+               }
+       }
 }