Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ozone / ui / events / event_factory_ozone_wayland.cc
index e10811c..a7dc10a 100644 (file)
@@ -14,6 +14,7 @@ EventFactoryOzoneWayland* EventFactoryOzoneWayland::impl_ = NULL;
 EventFactoryOzoneWayland::EventFactoryOzoneWayland()
     : event_converter_(NULL),
       observer_(NULL),
+      ime_observer_(NULL),
       output_observer_(NULL) {
   EventFactoryOzoneWayland::SetInstance(this);
 }
@@ -38,6 +39,18 @@ void EventFactoryOzoneWayland::SetWindowChangeObserver(
     event_converter_->SetWindowChangeObserver(observer_);
 }
 
+void EventFactoryOzoneWayland::SetIMEChangeObserver(
+    IMEChangeObserver* observer) {
+  ime_observer_ = observer;
+  if (event_converter_)
+    event_converter_->SetIMEChangeObserver(ime_observer_);
+}
+
+IMEChangeObserver*
+EventFactoryOzoneWayland::GetIMEChangeObserver() const {
+  return ime_observer_;
+}
+
 WindowChangeObserver*
 EventFactoryOzoneWayland::GetWindowChangeObserver() const {
   return observer_;