X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fwindow-system%2Ftizen-wayland%2Fecore-wl%2Fwindow-base-ecore-wl.cpp;h=509ddd4d9efb3c7aba0dc7f845369276db055b52;hb=8786ea8fbb26a9cb555a613518cf108017467c69;hp=06490d27a3e66f8f2da1f6af1dcddb79a76ef2dc;hpb=a8d9196bfbc4817b11f1c50ea5fb7b40356a002b;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/window-system/tizen-wayland/ecore-wl/window-base-ecore-wl.cpp b/dali/internal/window-system/tizen-wayland/ecore-wl/window-base-ecore-wl.cpp index 06490d2..509ddd4 100644 --- a/dali/internal/window-system/tizen-wayland/ecore-wl/window-base-ecore-wl.cpp +++ b/dali/internal/window-system/tizen-wayland/ecore-wl/window-base-ecore-wl.cpp @@ -268,6 +268,7 @@ static Eina_Bool EcoreEventRotate( void* data, int type, void* event ) 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; @@ -809,7 +810,7 @@ void WindowBaseEcoreWl::OnRotation( void* data, int type, void* event ) 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; @@ -1360,19 +1361,21 @@ void WindowBaseEcoreWl::Activate() 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 ) @@ -2132,6 +2135,17 @@ void WindowBaseEcoreWl::CreateWindow( PositionSize positionSize ) } } +void WindowBaseEcoreWl::SetParent( WindowBase* parentWinBase ) +{ + Ecore_Wl_Window* ecoreParent = NULL; + if( parentWinBase ) + { + WindowBaseEcoreWl* winBaseEcore = static_cast( parentWinBase ); + ecoreParent = winBaseEcore->mEcoreWindow; + } + ecore_wl_window_parent_set( mEcoreWindow, ecoreParent ); +} + } // namespace Adaptor } // namespace Internal