X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fwindow-system%2Fubuntu-x11%2Fwindow-base-ecore-x.cpp;h=07d6ea4bfe7a834777e7a657f581354ef9e52e20;hb=876381bc4dcb9933f72e095eea596c3136028436;hp=0c36b1d88ef6d11f7c0d816d7724fad0dd33f22a;hpb=a97ff5b79c424e4a2e9f41ae4a8b918e4530cd09;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/window-system/ubuntu-x11/window-base-ecore-x.cpp b/dali/internal/window-system/ubuntu-x11/window-base-ecore-x.cpp index 0c36b1d..07d6ea4 100755 --- a/dali/internal/window-system/ubuntu-x11/window-base-ecore-x.cpp +++ b/dali/internal/window-system/ubuntu-x11/window-base-ecore-x.cpp @@ -701,11 +701,11 @@ void WindowBaseEcoreX::Activate() ecore_x_netwm_client_active_request( ecore_x_window_root_get( mEcoreWindow ), mEcoreWindow, 1 /* request type, 1:application, 2:pager */, 0 ); } -void WindowBaseEcoreX::SetAvailableOrientations( const std::vector< Dali::Window::WindowOrientation >& orientations ) +void WindowBaseEcoreX::SetAvailableAnlges( const std::vector< int >& angles ) { } -void WindowBaseEcoreX::SetPreferredOrientation( Dali::Window::WindowOrientation orientation ) +void WindowBaseEcoreX::SetPreferredAngle( int angle ) { } @@ -888,48 +888,22 @@ void WindowBaseEcoreX::CreateWindow( PositionSize positionSize, bool isTranspare } } -void WindowBaseEcoreX::SetParent( Any parent ) +void WindowBaseEcoreX::SetParent( WindowBase* parentWinBase ) { - Ecore_X_Window mEcoreParent; - if ( parent.Empty() == false ) + Ecore_X_Window ecoreParent = 0; + if( parentWinBase ) { - // check we have a valid type - DALI_ASSERT_ALWAYS( ( (parent.GetType() == typeid (Ecore_X_Window) ) ) - && "Surface type is invalid" ); - - if ( parent.GetType() == typeid (Ecore_X_Window) ) - { - mEcoreParent = AnyCast< Ecore_X_Window >( parent ); - ecore_x_icccm_transient_for_set( mEcoreWindow, mEcoreParent ); - } - else - { - mEcoreParent = 0; - ecore_x_icccm_transient_for_unset( mEcoreWindow ); - } + WindowBaseEcoreX* winBaseEcoreX = static_cast( parentWinBase ); + ecoreParent = winBaseEcoreX->mEcoreWindow; + ecore_x_icccm_transient_for_set( mEcoreWindow, ecoreParent ); } else { - mEcoreParent = 0; + ecoreParent = 0; ecore_x_icccm_transient_for_unset( mEcoreWindow ); } } -bool WindowBaseEcoreX::IsMatchedWindow( Any window ) -{ - bool ret = false; - if ( window.Empty() == false ) - { - // check we have a valid type - DALI_ASSERT_ALWAYS( ( (window.GetType() == typeid (Ecore_X_Window) ) ) && "Surface type is invalid" ); - if ( AnyCast< Ecore_X_Window >( window ) == mEcoreWindow ) - { - ret = true; - } - } - return ret; -} - } // namespace Adaptor } // namespace Internal