Fix build errors for MS-Windows after KeyEvent class pimpling patch.
[platform/core/uifw/dali-adaptor.git] / dali / internal / input / windows / input-method-context-impl-win.h
index e1c1e33..58b91b3 100755 (executable)
@@ -37,21 +37,22 @@ namespace Internal
 namespace Adaptor\r
 {\r
 \r
-class InputMethodContextWin : public Dali::Internal::Adaptor::InputMethodContext\r
+class InputMethodContextWin : public Dali::Internal::Adaptor::InputMethodContext, public Dali::ConnectionTracker\r
 {\r
 public:\r
   /**\r
    * @brief Creates a new InputMethodContext handle\r
    *\r
+   * @param[in] actor The actor that uses the new InputMethodContext instance.\r
    * @return InputMethodContext pointer\r
    */\r
-  static InputMethodContextPtr New();\r
+  static InputMethodContextPtr New( Dali::Actor actor );\r
 \r
   /**\r
    * Constructor\r
    * @param[in] win32Window, The window is created by application.\r
    */\r
-  explicit InputMethodContextWin( WinWindowHandle win32Window );\r
+  explicit InputMethodContextWin( Dali::Actor actor );\r
 \r
 public:\r
 \r
@@ -250,6 +251,16 @@ public:
    */\r
   Dali::InputMethodContext::InputPanelLanguage GetInputPanelLanguage() const override;\r
 \r
+  /**\r
+   * @copydoc Dali::InputMethodContext::SetInputPanelPosition()\r
+   */\r
+  void SetInputPanelPosition( unsigned int x, unsigned int y ) override;\r
+\r
+  /**\r
+   * @copydoc Dali::InputMethodContext::GetPreeditStyle()\r
+   */\r
+  void GetPreeditStyle( Dali::InputMethodContext::PreEditAttributeDataContainer& attrs ) const override;\r
+\r
 private:\r
   /**\r
    * Context created the first time and kept until deleted.\r
@@ -270,7 +281,7 @@ private:
    * @param[in] keyEvent The event key to be handled.\r
    * @return Whether the event key is handled.\r
    */\r
-  bool ProcessEventKeyDown( const KeyEvent& keyEvent );\r
+  bool ProcessEventKeyDown( const Dali::KeyEvent& keyEvent );\r
 \r
   /**\r
    * @brief Process event key up, whether filter a key to isf.\r
@@ -278,7 +289,12 @@ private:
    * @param[in] keyEvent The event key to be handled.\r
    * @return Whether the event key is handled.\r
    */\r
-  bool ProcessEventKeyUp( const KeyEvent& keyEvent );\r
+  bool ProcessEventKeyUp( const Dali::KeyEvent& keyEvent );\r
+\r
+  /**\r
+   * Called when the binded actor is added to a window.\r
+   */\r
+  void OnStaged( Dali::Actor actor );\r
 \r
 public:\r
 \r
@@ -303,6 +319,7 @@ private:
   bool mRestoreAfterFocusLost:1;             ///< Whether the keyboard needs to be restored (activated ) after focus regained.\r
   bool mIdleCallbackConnected:1;             ///< Whether the idle callback is already connected.\r
   InputMethodOptions        mOptions;\r
+  Dali::InputMethodContext::PreEditAttributeDataContainer mPreeditAttrs; ///< Stores preedit attribute data\r
 };\r
 \r
 } // namespace Adaptor\r