[Tizen] Add codes for Dali Windows Backend
[platform/core/uifw/dali-adaptor.git] / dali / internal / input / windows / input-method-context-impl-win.cpp
index c09823f..7c09270 100755 (executable)
@@ -135,16 +135,16 @@ InputMethodContextPtr InputMethodContextWin::New()
     Adaptor& adaptorImpl( Adaptor::GetImplementation( Adaptor::Get() ) );\r
     Any nativeWindow = adaptorImpl.GetNativeWindowHandle();\r
 \r
-    // The Ecore_X_Window needs to use the InputMethodContext.\r
-    // Only when the render surface is window, we can get the Ecore_X_Window.\r
-    Ecore_X_Window ecoreXwin( AnyCast<Ecore_X_Window>(nativeWindow) );\r
-    if (ecoreXwin)\r
+    // The Win_Window_Handle needs to use the InputMethodContext.\r
+    // Only when the render surface is window, we can get the Win_Window_Handle.\r
+    Win_Window_Handle winWindow( AnyCast<Win_Window_Handle>(nativeWindow) );\r
+    if ( winWindow )\r
     {\r
-      // If we fail to get Ecore_X_Window, we can't use the InputMethodContext correctly.\r
+      // If we fail to get Win_Window_Handle, we can't use the InputMethodContext correctly.\r
       // Thus you have to call "ecore_imf_context_client_window_set" somewhere.\r
       // In EvasPlugIn, this function is called in EvasPlugin::ConnectEcoreEvent().\r
 \r
-      manager = new InputMethodContextWin( ecoreXwin );\r
+      manager = new InputMethodContextWin( winWindow );\r
     }\r
     else\r
     {\r
@@ -163,9 +163,8 @@ void InputMethodContextWin::Finalize()
   //DeleteContext();\r
 }\r
 \r
-InputMethodContextWin::InputMethodContextWin( Ecore_X_Window ecoreXwin )\r
-//: mIMFContext(),\r
-:  mEcoreXwin( ecoreXwin ),\r
+InputMethodContextWin::InputMethodContextWin( Win_Window_Handle winWindow )\r
+: mWin32Window( winWindow ),\r
   mIMFCursorPosition( 0 ),\r
   mSurroundingText(),\r
   mRestoreAfterFocusLost( false ),\r
@@ -182,12 +181,12 @@ InputMethodContextWin::~InputMethodContextWin()
 \r
 void InputMethodContextWin::Initialize()\r
 {\r
-  CreateContext( mEcoreXwin );\r
+  CreateContext( mWin32Window );\r
   ConnectCallbacks();\r
   //VirtualKeyboard::ConnectCallbacks( mIMFContext );\r
 }\r
 \r
-void InputMethodContextWin::CreateContext( Ecore_X_Window ecoreXwin )\r
+void InputMethodContextWin::CreateContext( Win_Window_Handle ecoreXwin )\r
 {\r
   DALI_LOG_INFO( gLogFilter, Debug::General, "InputMethodContextWin::CreateContext\n" );\r
 \r