WindowBaseEcoreWl* windowBase = static_cast< WindowBaseEcoreWl* >( data );
if( windowBase )
{
+ DALI_LOG_RELEASE_INFO( "WindowBaseEcoreWl::EcoreEventRotate\n" );
windowBase->OnRotation( data, type, event );
}
return ECORE_CALLBACK_PASS_ON;
if( ev->win == static_cast< unsigned int >( ecore_wl_window_id_get( mEcoreWindow ) ) )
{
- DALI_LOG_INFO( gWindowBaseLogFilter, Debug::Concise, "WindowBaseEcoreWl::OnRotation\n" );
+ DALI_LOG_RELEASE_INFO( "WindowBaseEcoreWl::OnRotation, angle: %d, width: %d, height: %d\n", ev->angle, ev->w, ev->h );
RotationEvent rotationEvent;
rotationEvent.angle = ev->angle;
{
DALI_LOG_INFO( gWindowBaseLogFilter, Debug::General, "WindowBaseEcoreWl::OnKeyUp\n" );
+#if defined(ECORE_VERSION_MAJOR) && (ECORE_VERSION_MAJOR >= 1) && defined(ECORE_VERSION_MINOR) && (ECORE_VERSION_MINOR >= 23)
+ // Cancel processing flag is sent because this key event will combine with the previous key. So, the event should not actually perform anything.
+ if( keyEvent->event_flags & ECORE_EVENT_FLAG_CANCEL )
+ {
+ DALI_LOG_INFO( gWindowBaseLogFilter, Debug::General, "WindowBaseEcoreWl::OnKeyUp: This event flag indicates the event is canceled. \n" );
+ return;
+ }
+#endif // Since ecore 1.23 version
+
std::string keyName( keyEvent->keyname );
std::string logicalKey( "" );
std::string keyString( "" );
ecore_wl_window_activate( mEcoreWindow );
}
-void WindowBaseEcoreWl::SetAvailableOrientations( const std::vector< Dali::Window::WindowOrientation >& orientations )
+void WindowBaseEcoreWl::SetAvailableAnlges( const std::vector< int >& angles )
{
int rotations[4] = { 0 };
- for( std::size_t i = 0; i < orientations.size(); ++i )
+ DALI_LOG_RELEASE_INFO( "WindowBaseEcoreWl::SetAvailableAnlges, angle's count: %d\n", angles.size() );
+ for( std::size_t i = 0; i < angles.size(); ++i )
{
- rotations[i] = static_cast< int >( orientations[i] );
+ rotations[i] = static_cast< int >( angles[i] );
+ DALI_LOG_RELEASE_INFO( "%d ", rotations[i] );
}
- ecore_wl_window_rotation_available_rotations_set( mEcoreWindow, rotations, orientations.size() );
+ ecore_wl_window_rotation_available_rotations_set( mEcoreWindow, rotations, angles.size() );
}
-void WindowBaseEcoreWl::SetPreferredOrientation( Dali::Window::WindowOrientation orientation )
+void WindowBaseEcoreWl::SetPreferredAngle( int angle )
{
- ecore_wl_window_rotation_preferred_rotation_set( mEcoreWindow, orientation );
+ ecore_wl_window_rotation_preferred_rotation_set( mEcoreWindow, angle );
}
void WindowBaseEcoreWl::SetAcceptFocus( bool accept )
}
}
-void WindowBaseEcoreWl::SetParent( Any parent )
+void WindowBaseEcoreWl::SetParent( WindowBase* parentWinBase )
{
- Ecore_Wl_Window* mEcoreParent;
- if( parent.Empty() == false )
- {
- // check we have a valid type
- DALI_ASSERT_ALWAYS( ( parent.GetType() == typeid (Ecore_Wl_Window *) ) && "Parent's surface type is invalid" );
- mEcoreParent = AnyCast< Ecore_Wl_Window* >( parent );
- }
- else
+ Ecore_Wl_Window* ecoreParent = NULL;
+ if( parentWinBase )
{
- mEcoreParent = NULL;
+ WindowBaseEcoreWl* winBaseEcore = static_cast<WindowBaseEcoreWl*>( parentWinBase );
+ ecoreParent = winBaseEcore->mEcoreWindow;
}
- ecore_wl_window_parent_set( mEcoreWindow, mEcoreParent );
+ ecore_wl_window_parent_set( mEcoreWindow, ecoreParent );
}
-bool WindowBaseEcoreWl::IsMatchedWindow( Any window )
+int WindowBaseEcoreWl::CreateFrameRenderedSyncFence()
{
- bool ret = false;
- if ( window.Empty() == false )
- {
- // check we have a valid type
- DALI_ASSERT_ALWAYS( ( window.GetType() == typeid (Ecore_Wl_Window *) ) && "Window's surface type is invalid" );
- if ( AnyCast< Ecore_Wl_Window* >( window ) == mEcoreWindow )
- {
- ret = true;
- }
- }
- return ret;
+ return -1;
+}
+
+int WindowBaseEcoreWl::CreateFramePresentedSyncFence()
+{
+ return -1;
}
} // namespace Adaptor