Fix InputMethodContext to work well in multi-window env
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / dali-toolkit-test-utils / toolkit-input-method-context.h
index cb4e085..cf174cf 100755 (executable)
@@ -1,8 +1,8 @@
-#ifndef __DALI_TOOLKIT_TOOLKIT_INPUT_METHOD_CONTEXT_H__
-#define __DALI_TOOLKIT_TOOLKIT_INPUT_METHOD_CONTEXT_H__
+#ifndef DALI_TOOLKIT_TOOLKIT_INPUT_METHOD_CONTEXT_H
+#define DALI_TOOLKIT_TOOLKIT_INPUT_METHOD_CONTEXT_H
 
 /*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,7 +19,8 @@
  */
 
 // EXTERNAL INCLUDES
-#define __DALI_INPUT_METHOD_CONTEXT_H__
+#define DALI_INPUT_METHOD_CONTEXT_H
+#include <dali/public-api/actors/actor.h>
 #include <dali/public-api/object/base-handle.h>
 #include <dali/public-api/signals/dali-signal.h>
 #include <dali/devel-api/adaptor-framework/input-method-options.h>
@@ -148,6 +149,14 @@ public:
   static InputMethodContext New();
 
   /**
+   * @brief Create a handle to the instance of InputMethodContext.
+   *
+   * @param[in] actor The actor that uses the new InputMethodContext instance.
+   * @return A handle to the InputMethodContext.
+   */
+  static InputMethodContext New( Actor actor );
+
+  /**
    * @brief Finalize the InputMethodContext.
    *
    * It means that the context will be deleted.
@@ -306,4 +315,4 @@ public:
 
 } // namespace Dali
 
-#endif // __DALI_TOOLKIT_TOOLKIT_INPUT_METHOD_CONTEXT_H__
+#endif // DALI_TOOLKIT_TOOLKIT_INPUT_METHOD_CONTEXT_H