&HWBackKeyCallback, this);
eext_object_event_callback_add(web_view_, EEXT_CALLBACK_MORE,
&HWMoreKeyCallback, this);
+
+ if (elm_win_wm_rotation_supported_get(window_)) {
+ int rots[4] = {0, 90, 180, 270};
+ elm_win_wm_rotation_available_rotations_set(window_,
+ (const int *)(&rots), 4);
+
+ // Registering nullptr as Callback, but window will rotate without error.
+ // Is it right action?
+ evas_object_smart_callback_add(window_,
+ "wm,rotation,changed",
+ nullptr,
+ this);
+ } else {
+ LOG(ERROR) << __func__ << " Window does not support rotation";
+ }
#endif
#if defined(OS_TIZEN_TV_PRODUCT)