[3.0] Notify multiline hint to IMF context 12/84912/3
authorsuhyung Eom <suhyung.eom@samsung.com>
Tue, 9 Aug 2016 00:23:15 +0000 (09:23 +0900)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Wed, 24 Aug 2016 18:12:59 +0000 (11:12 -0700)
Signed-off-by: suhyung Eom <suhyung.eom@samsung.com>
Change-Id: Ia570d16fb92ffb8a2e864c710f45a1a6230fe296

adaptors/devel-api/adaptor-framework/imf-manager.cpp
adaptors/devel-api/adaptor-framework/imf-manager.h
adaptors/ecore/wayland/imf-manager-impl-ecore-wl.cpp
adaptors/ecore/wayland/imf-manager-impl.h
adaptors/integration-api/x11/imf-manager-impl.h
adaptors/wayland/input/text/imf/imf-manager-impl-wl.cpp
adaptors/wayland/input/text/imf/imf-manager-impl.h
adaptors/x11/imf-manager-impl-x.cpp

index f083c8b1f2f81e5f1d8b8cbf09a084468c31d594..4410609288235364cb0dd18b11c5c21825d400f1 100644 (file)
@@ -88,6 +88,11 @@ const std::string& ImfManager::GetSurroundingText() const
   return Internal::Adaptor::ImfManager::GetImplementation(*this).GetSurroundingText();
 }
 
+void ImfManager::NotifyTextInputMultiLine( bool multiLine )
+{
+  Internal::Adaptor::ImfManager::GetImplementation(*this).NotifyTextInputMultiLine( multiLine );
+}
+
 ImfManager::ImfManagerSignalType& ImfManager::ActivatedSignal()
 {
   return Internal::Adaptor::ImfManager::GetImplementation(*this).ActivatedSignal();
index a674ce777d43489e0b7d5d304dc8d8878bbfdeb0..dcc9e0c10d4beaaa6cb88c80548b755f0cbb44c2 100644 (file)
@@ -211,6 +211,13 @@ public:
    */
   const std::string& GetSurroundingText() const;
 
+  /**
+ * @brief Notifies IMF context that text input is set to multi line or not
+ *
+ * @param[in] true if multiline text input is used
+ */
+  void NotifyTextInputMultiLine( bool multiLine );
+
 public:
 
   // Signals
index 825b44471b6f05ff749eb210103090937628f461..e88e30aed6aaa76e187d37e897e1a973d32727d5 100644 (file)
@@ -516,6 +516,14 @@ const std::string& ImfManager::GetSurroundingText() const
   return mSurroundingText;
 }
 
+void ImfManager::NotifyTextInputMultiLine( bool multiLine )
+{
+  Ecore_IMF_Input_Hints currentHint = ecore_imf_context_input_hint_get(mIMFContext);
+  ecore_imf_context_input_hint_set(mIMFContext, (Ecore_IMF_Input_Hints)(multiLine ?
+    (currentHint | ECORE_IMF_INPUT_HINT_MULTILINE) :
+    (currentHint & ~ECORE_IMF_INPUT_HINT_MULTILINE)));
+}
+
 } // Adaptor
 
 } // Internal
index 1fd8e161305cdf6df51a0dc65d0d77ca92737f18..391c56d505d8fb8c879f85926519d12086583a2f 100644 (file)
@@ -151,6 +151,11 @@ public:
    */
   const std::string& GetSurroundingText() const;
 
+  /**
+  * @copydoc Dali::ImfManager::NotifyTextInputMultiLine()
+  */
+  void NotifyTextInputMultiLine( bool multiLine );
+
 public:  // Signals
 
   /**
index 1791792bfe9ae6b65611f2f485fa5a0bbad3f337..ea7fe87c08c971d0befcba4fecf3d383311e0662 100644 (file)
@@ -154,6 +154,11 @@ public:
    */
   const std::string& GetSurroundingText() const;
 
+  /**
+  * @copydoc Dali::ImfManager::NotifyTextInputMultiLine()
+  */
+  void NotifyTextInputMultiLine( bool multiLine );
+
 public:  // Signals
 
   /**
index ad95ac5d7d48a4f1236ccb5fec3175556507f2fe..731763e9afc2000bca4466b4df66e94d644891c9 100644 (file)
@@ -303,6 +303,10 @@ const std::string& ImfManager::GetSurroundingText() const
   return mSurroundingText;
 }
 
+void ImfManager::NotifyTextInputMultiLine( bool multiLine )
+{
+}
+
 } // Adaptor
 
 } // Internal
index 7a0d2872b10416f6d62ac5f6a7f9f22742abdee4..1af41bcb6384c743b65a5a80f318b49d9397c4d5 100644 (file)
@@ -148,6 +148,11 @@ public:
    */
   const std::string& GetSurroundingText() const;
 
+  /**
+  * @copydoc Dali::ImfManager::NotifyTextInputMultiLine()
+  */
+  void NotifyTextInputMultiLine( bool multiLine );
+
 public:  // Signals
 
   /**
index 57ffb35ba6406b9e06f12b54c4d85c5cc43e57bc..14dc3854c31bca3d5dfa9a1bd9005e26c8291d9b 100644 (file)
@@ -516,6 +516,10 @@ const std::string& ImfManager::GetSurroundingText() const
   return mSurroundingText;
 }
 
+void ImfManager::NotifyTextInputMultiLine( bool multiLine )
+{
+}
+
 } // Adaptor
 
 } // Internal