Revert "Change window rotaton policy"
authorWonsik Jung <sidein@samsung.com>
Tue, 3 Dec 2019 05:54:09 +0000 (14:54 +0900)
committerWonsik Jung <sidein@samsung.com>
Tue, 3 Dec 2019 05:54:28 +0000 (14:54 +0900)
This reverts commit 1fc1a37d04407c0cb746d0de381c68637821c376.

15 files changed:
dali/internal/window-system/android/window-base-android.cpp
dali/internal/window-system/android/window-base-android.h
dali/internal/window-system/common/window-base.h
dali/internal/window-system/common/window-impl.cpp
dali/internal/window-system/common/window-impl.h
dali/internal/window-system/common/window-render-surface.cpp
dali/internal/window-system/tizen-wayland/ecore-wl/window-base-ecore-wl.cpp
dali/internal/window-system/tizen-wayland/ecore-wl/window-base-ecore-wl.h
dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp
dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.h
dali/internal/window-system/ubuntu-x11/window-base-ecore-x.cpp
dali/internal/window-system/ubuntu-x11/window-base-ecore-x.h
dali/internal/window-system/windows/window-base-win.cpp
dali/internal/window-system/windows/window-base-win.h
dali/public-api/adaptor-framework/window.cpp

index b894fa0..86680f6 100644 (file)
@@ -190,11 +190,11 @@ void WindowBaseAndroid::Activate()
 {
 }
 
-void WindowBaseAndroid::SetAvailableAnlges( const std::vector< int >& angles )
+void WindowBaseAndroid::SetAvailableOrientations( const std::vector< Dali::Window::WindowOrientation >& orientations )
 {
 }
 
-void WindowBaseAndroid::SetPreferredAngle( int angle )
+void WindowBaseAndroid::SetPreferredOrientation( Dali::Window::WindowOrientation orientation )
 {
 }
 
index 86e8ddc..239605d 100644 (file)
@@ -198,14 +198,14 @@ public:
   virtual void Activate() override;
 
   /**
-   * @copydoc Dali::Internal::Adaptor::WindowBase::SetAvailableAnlges()
+   * @copydoc Dali::Internal::Adaptor::WindowBase::SetAvailableOrientations()
    */
-  virtual void SetAvailableAnlges( const std::vector< int >& angles  ) override;
+  virtual void SetAvailableOrientations( const std::vector< Dali::Window::WindowOrientation >& orientations ) override;
 
   /**
-   * @copydoc Dali::Internal::Adaptor::WindowBase::SetPreferredAngle()
+   * @copydoc Dali::Internal::Adaptor::WindowBase::SetPreferredOrientation()
    */
-  virtual void SetPreferredAngle( int angle ) override;
+  virtual void SetPreferredOrientation( Dali::Window::WindowOrientation orientation ) override;
 
   /**
    * @copydoc Dali::Internal::Adaptor::WindowBase::SetAcceptFocus()
index 1be77f9..86cb25b 100644 (file)
@@ -181,12 +181,12 @@ public:
   /**
    * @copydoc Dali::Window::SetAvailableOrientations()
    */
-  virtual void SetAvailableAnlges( const std::vector< int >& angles ) = 0;
+  virtual void SetAvailableOrientations( const std::vector< Dali::Window::WindowOrientation >& orientations ) = 0;
 
   /**
    * @copydoc Dali::Window::SetPreferredOrientation()
    */
-  virtual void SetPreferredAngle( int angle ) = 0;
+  virtual void SetPreferredOrientation( Dali::Window::WindowOrientation orientation ) = 0;
 
   /**
    * @copydoc Dali::Window::SetAcceptFocus()
index cb19c0b..7e9a4fd 100644 (file)
@@ -36,7 +36,6 @@
 #include <dali/internal/window-system/common/render-surface-factory.h>
 #include <dali/internal/window-system/common/window-factory.h>
 #include <dali/internal/window-system/common/window-base.h>
-#include <dali/internal/window-system/common/window-system.h>
 #include <dali/internal/window-system/common/window-render-surface.h>
 #include <dali/internal/window-system/common/window-visibility-observer.h>
 
@@ -74,11 +73,10 @@ Window::Window()
   mResizeEnabled( false ),
   mType( Dali::Window::NORMAL ),
   mParentWindow( NULL ),
-  mPreferredAngle( 0 ),
+  mPreferredOrientation( Dali::Window::PORTRAIT ),
   mRotationAngle( 0 ),
   mWindowWidth( 0 ),
   mWindowHeight( 0 ),
-  mOrientationMode( Internal::Adaptor::Window::OrientationMode::PORTRAIT ),
   mFocusChangedSignal(),
   mResizedSignal(),
   mDeleteRequestSignal(),
@@ -127,18 +125,6 @@ void Window::Initialize(const PositionSize& positionSize, const std::string& nam
   mWindowSurface->Map();
 
   mOrientation = Orientation::New( this );
-
-  // Get OrientationMode
-  int screenWidth, screenHeight;
-  WindowSystem::GetScreenSize( screenWidth, screenHeight );
-  if( screenWidth > screenHeight )
-  {
-    mOrientationMode = Internal::Adaptor::Window::OrientationMode::LANDSCAPE;
-  }
-  else
-  {
-    mOrientationMode = Internal::Adaptor::Window::OrientationMode::PORTRAIT;
-  }
 }
 
 void Window::OnAdaptorSet(Dali::Adaptor& adaptor)
@@ -212,12 +198,12 @@ Dali::RenderTaskList Window::GetRenderTaskList() const
 void Window::AddAvailableOrientation( Dali::Window::WindowOrientation orientation )
 {
   bool found = false;
+
   if( orientation <= Dali::Window::LANDSCAPE_INVERSE )
   {
-    int convertedAngle = ConvertToAngle( orientation );
-    for( std::size_t i = 0; i < mAvailableAngles.size(); i++ )
+    for( std::size_t i = 0; i < mAvailableOrientations.size(); i++ )
     {
-      if( mAvailableAngles[i] == convertedAngle )
+      if( mAvailableOrientations[i] == orientation )
       {
         found = true;
         break;
@@ -226,113 +212,54 @@ void Window::AddAvailableOrientation( Dali::Window::WindowOrientation orientatio
 
     if( !found )
     {
-      mAvailableAngles.push_back( convertedAngle );
-      SetAvailableAnlges( mAvailableAngles );
+      mAvailableOrientations.push_back( orientation );
+      SetAvailableOrientations( mAvailableOrientations );
     }
   }
 }
 
 void Window::RemoveAvailableOrientation( Dali::Window::WindowOrientation orientation )
 {
-  int convertedAngle = ConvertToAngle( orientation );
-  for( std::vector< int >::iterator iter = mAvailableAngles.begin();
-       iter != mAvailableAngles.end(); ++iter )
+  for( std::vector<Dali::Window::WindowOrientation>::iterator iter = mAvailableOrientations.begin();
+       iter != mAvailableOrientations.end(); ++iter )
   {
-    if( *iter == convertedAngle )
+    if( *iter == orientation )
     {
-      mAvailableAngles.erase( iter );
+      mAvailableOrientations.erase( iter );
       break;
     }
   }
-
-  SetAvailableAnlges( mAvailableAngles );
-}
-
-void Window::SetPreferredOrientation( Dali::Window::WindowOrientation orientation )
-{
-  mPreferredAngle = ConvertToAngle( orientation );
-  mWindowBase->SetPreferredAngle( mPreferredAngle );
-}
-
-Dali::Window::WindowOrientation Window::GetPreferredOrientation()
-{
-  Dali::Window::WindowOrientation preferredOrientation = ConvertToOrientation( mPreferredAngle );
-  return preferredOrientation;
+  SetAvailableOrientations( mAvailableOrientations );
 }
 
-void Window::SetAvailableAnlges( const std::vector< int >& angles )
+void Window::SetAvailableOrientations( const std::vector< Dali::Window::WindowOrientation >& orientations )
 {
-  if( angles.size() > 4 )
+  if( orientations.size() > 4 )
   {
-    DALI_LOG_INFO( gWindowLogFilter, Debug::Verbose, "Window::SetAvailableAnlges: Invalid vector size! [%d]\n", angles.size() );
+    DALI_LOG_INFO( gWindowLogFilter, Debug::Verbose, "Window::SetAvailableOrientations: Invalid vector size! [%d]\n", orientations.size() );
     return;
   }
 
-  mWindowBase->SetAvailableAnlges( angles );
+  mAvailableOrientations = orientations;
+
+  mWindowBase->SetAvailableOrientations( mAvailableOrientations );
 }
 
-int Window::ConvertToAngle( Dali::Window::WindowOrientation orientation )
+const std::vector< Dali::Window::WindowOrientation >& Window::GetAvailableOrientations()
 {
-  int convertAngle = static_cast< int >( orientation );
-  if( mOrientationMode == Internal::Adaptor::Window::OrientationMode::LANDSCAPE )
-  {
-    switch( orientation )
-    {
-      case Dali::Window::LANDSCAPE:
-      {
-        convertAngle = 0;
-        break;
-      }
-      case Dali::Window::PORTRAIT:
-      {
-        convertAngle = 90;
-        break;
-      }
-      case Dali::Window::LANDSCAPE_INVERSE:
-      {
-        convertAngle = 180;
-        break;
-      }
-      case Dali::Window::PORTRAIT_INVERSE:
-      {
-        convertAngle = 270;
-        break;
-      }
-    }
-  }
-  return convertAngle;
+  return mAvailableOrientations;
 }
 
-Dali::Window::WindowOrientation Window::ConvertToOrientation( int angle )
+void Window::SetPreferredOrientation( Dali::Window::WindowOrientation orientation )
 {
-  Dali::Window::WindowOrientation orientation = static_cast< Dali::Window::WindowOrientation >( angle );
-  if( mOrientationMode == Internal::Adaptor::Window::OrientationMode::LANDSCAPE )
-  {
-    switch( angle )
-    {
-      case 0:
-      {
-        orientation = Dali::Window::LANDSCAPE;
-        break;
-      }
-      case 90:
-      {
-        orientation = Dali::Window::PORTRAIT;
-        break;
-      }
-      case 180:
-      {
-        orientation = Dali::Window::LANDSCAPE_INVERSE;
-        break;
-      }
-      case 270:
-      {
-        orientation = Dali::Window::PORTRAIT_INVERSE;
-        break;
-      }
-    }
-  }
-  return orientation;
+  mPreferredOrientation = orientation;
+
+  mWindowBase->SetPreferredOrientation( mPreferredOrientation );
+}
+
+Dali::Window::WindowOrientation Window::GetPreferredOrientation()
+{
+  return mPreferredOrientation;
 }
 
 Dali::Any Window::GetNativeHandle() const
index 229d091..be1a640 100644 (file)
@@ -143,6 +143,16 @@ public:
   void RemoveAvailableOrientation(Dali::Window::WindowOrientation orientation);
 
   /**
+   * @copydoc Dali::Window::SetAvailableOrientations()
+   */
+  void SetAvailableOrientations(const std::vector<Dali::Window::WindowOrientation>& orientations);
+
+  /**
+   * @copydoc Dali::Window::GetAvailableOrientations()
+   */
+  const std::vector<Dali::Window::WindowOrientation>& GetAvailableOrientations();
+
+  /**
    * @copydoc Dali::Window::SetPreferredOrientation()
    */
   void SetPreferredOrientation(Dali::Window::WindowOrientation orientation);
@@ -352,18 +362,6 @@ public: // Dali::Internal::Adaptor::SceneHolder
 private:
 
   /**
-   * @brief Enumeration for orietation mode.
-   * The Orientation Mode is related to screen size.
-   * If screen width is longer than height, the Orientation Mode will have LANDSCAPE.
-   * Otherwise screen width is shorter than height or same, the Orientation Mode will have PORTRAIT.
-   */
-  enum class OrientationMode
-  {
-    PORTRAIT = 0,
-    LANDSCAPE
-  };
-
-  /**
    * Private constructor.
    * @sa Window::New()
    */
@@ -404,21 +402,6 @@ private:
    */
   void OnTransitionEffectEvent( DevelWindow::EffectState state, DevelWindow::EffectType type );
 
-  /**
-   * @brief Set available orientation to window base.
-   */
-  void SetAvailableAnlges( const std::vector< int >& angles );
-
-  /**
-   * @brief Convert from window orientation to angle using OrientationMode.
-   */
-  int ConvertToAngle( Dali::Window::WindowOrientation orientation );
-
-  /**
-   * @brief Convert from angle to window orientation using OrientationMode.
-   */
-  Dali::Window::WindowOrientation ConvertToOrientation( int angle );
-
 private: // Dali::Internal::Adaptor::SceneHolder
 
   /**
@@ -528,9 +511,9 @@ private:
   Dali::Window::Type                    mType;
   Dali::Window                          mParentWindow;
 
-  OrientationPtr                        mOrientation;
-  std::vector< int >                    mAvailableAngles;
-  int                                   mPreferredAngle;
+  OrientationPtr                               mOrientation;
+  std::vector<Dali::Window::WindowOrientation> mAvailableOrientations;
+  Dali::Window::WindowOrientation              mPreferredOrientation;
 
   int                                   mRotationAngle;     ///< The angle of the rotation
   int                                   mWindowWidth;       ///< The width of the window
@@ -538,8 +521,6 @@ private:
 
   EventHandlerPtr                       mEventHandler;      ///< The window events handler
 
-  OrientationMode                       mOrientationMode;
-
   // Signals
   IndicatorSignalType                   mIndicatorVisibilityChangedSignal;
   FocusSignalType                       mFocusChangedSignal;
index 3c1544d..e9288ca 100755 (executable)
@@ -104,6 +104,7 @@ void WindowRenderSurface::Initialize( Any surface )
     // Default window size == screen size
     mPositionSize.x = 0;
     mPositionSize.y = 0;
+
     WindowSystem::GetScreenSize( mPositionSize.width, mPositionSize.height );
   }
 
index 8a38dee..5495b17 100644 (file)
@@ -268,7 +268,6 @@ 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;
@@ -813,7 +812,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_RELEASE_INFO( "WindowBaseEcoreWl::OnRotation, angle: %d, width: %d, height: %d\n", ev->angle, ev->w, ev->h );
+    DALI_LOG_INFO( gWindowBaseLogFilter, Debug::Concise, "WindowBaseEcoreWl::OnRotation\n" );
 
     RotationEvent rotationEvent;
     rotationEvent.angle = ev->angle;
@@ -1365,22 +1364,19 @@ void WindowBaseEcoreWl::Activate()
   ecore_wl_window_activate( mEcoreWindow );
 }
 
-void WindowBaseEcoreWl::SetAvailableAnlges( const std::vector< int >& angles )
+void WindowBaseEcoreWl::SetAvailableOrientations( const std::vector< Dali::Window::WindowOrientation >& orientations )
 {
   int rotations[4] = { 0 };
-  DALI_LOG_RELEASE_INFO( "WindowBaseEcoreWl::SetAvailableAnlges, angle's count: %d\n", angles.size() );
-  for( std::size_t i = 0; i < angles.size(); ++i )
+  for( std::size_t i = 0; i < orientations.size(); ++i )
   {
-    rotations[i] = static_cast< int >( angles[i] );
-    DALI_LOG_RELEASE_INFO( "%d ", rotations[i] );
+    rotations[i] = static_cast< int >( orientations[i] );
   }
-  ecore_wl_window_rotation_available_rotations_set( mEcoreWindow, rotations, angles.size() );
+  ecore_wl_window_rotation_available_rotations_set( mEcoreWindow, rotations, orientations.size() );
 }
 
-void WindowBaseEcoreWl::SetPreferredAngle( int angle )
+void WindowBaseEcoreWl::SetPreferredOrientation( Dali::Window::WindowOrientation orientation )
 {
-  DALI_LOG_RELEASE_INFO( "WindowBaseEcoreWl::SetPreferredAngle, angle: %d\n", angle );
-  ecore_wl_window_rotation_preferred_rotation_set( mEcoreWindow, angle );
+  ecore_wl_window_rotation_preferred_rotation_set( mEcoreWindow, orientation );
 }
 
 void WindowBaseEcoreWl::SetAcceptFocus( bool accept )
index 2d0a4ce..de04a33 100644 (file)
@@ -265,14 +265,14 @@ public:
   virtual void Activate() override;
 
   /**
-   * @copydoc Dali::Internal::Adaptor::WindowBase::SetAvailableAnlges()
+   * @copydoc Dali::Internal::Adaptor::WindowBase::SetAvailableOrientations()
    */
-  virtual void SetAvailableAnlges( const std::vector< int >& angles ) override;
+  virtual void SetAvailableOrientations( const std::vector< Dali::Window::WindowOrientation >& orientations ) override;
 
   /**
-   * @copydoc Dali::Internal::Adaptor::WindowBase::SetPreferredAngle()
+   * @copydoc Dali::Internal::Adaptor::WindowBase::SetPreferredOrientation()
    */
-  virtual void SetPreferredAngle( int angle ) override;
+  virtual void SetPreferredOrientation( Dali::Window::WindowOrientation orientation ) override;
 
   /**
    * @copydoc Dali::Internal::Adaptor::WindowBase::SetAcceptFocus()
index a79a684..e7eb680 100755 (executable)
@@ -338,7 +338,6 @@ static Eina_Bool EcoreEventRotate( void* data, int type, void* event )
   WindowBaseEcoreWl2* windowBase = static_cast< WindowBaseEcoreWl2* >( data );
   if( windowBase )
   {
-    DALI_LOG_RELEASE_INFO( "WindowBaseEcoreWl2::EcoreEventRotate\n" );
     windowBase->OnRotation( data, type, event );
   }
   return ECORE_CALLBACK_PASS_ON;
@@ -946,7 +945,7 @@ void WindowBaseEcoreWl2::OnRotation( void* data, int type, void* event )
 
   if( ev->win == static_cast< unsigned int >( ecore_wl2_window_id_get( mEcoreWindow ) ) )
   {
-    DALI_LOG_RELEASE_INFO( "WindowBaseEcoreWl2::OnRotation, angle: %d, width: %d, height: %d\n", ev->angle, ev->w, ev->h );
+    DALI_LOG_INFO( gWindowBaseLogFilter, Debug::Concise, "WindowBaseEcoreWl::OnRotation\n" );
 
     RotationEvent rotationEvent;
     rotationEvent.angle = ev->angle;
@@ -1540,22 +1539,19 @@ void WindowBaseEcoreWl2::Activate()
   ecore_wl2_window_activate( mEcoreWindow );
 }
 
-void WindowBaseEcoreWl2::SetAvailableAnlges( const std::vector< int >& angles )
+void WindowBaseEcoreWl2::SetAvailableOrientations( const std::vector< Dali::Window::WindowOrientation >& orientations )
 {
   int rotations[4] = { 0 };
-  DALI_LOG_RELEASE_INFO( "WindowBaseEcoreWl2::SetAvailableAnlges, angle's count: %d\n", angles.size() );
-  for( std::size_t i = 0; i < angles.size(); ++i )
+  for( std::size_t i = 0; i < orientations.size(); ++i )
   {
-    rotations[i] = static_cast< int >( angles[i] );
-    DALI_LOG_RELEASE_INFO( "%d ", rotations[i] );
+    rotations[i] = static_cast< int >( orientations[i] );
   }
-  ecore_wl2_window_available_rotations_set( mEcoreWindow, rotations, angles.size() );
+  ecore_wl2_window_available_rotations_set( mEcoreWindow, rotations, orientations.size() );
 }
 
-void WindowBaseEcoreWl2::SetPreferredAngle( int angle )
+void WindowBaseEcoreWl2::SetPreferredOrientation( Dali::Window::WindowOrientation orientation )
 {
-  DALI_LOG_RELEASE_INFO( "WindowBaseEcoreWl2::SetPreferredAngle, angle: %d\n", angle );
-  ecore_wl2_window_preferred_rotation_set( mEcoreWindow, angle );
+  ecore_wl2_window_preferred_rotation_set( mEcoreWindow, orientation );
 }
 
 void WindowBaseEcoreWl2::SetAcceptFocus( bool accept )
index 668d1a5..e176399 100644 (file)
@@ -276,14 +276,14 @@ public:
   virtual void Activate() override;
 
   /**
-   * @copydoc Dali::Internal::Adaptor::WindowBase::SetAvailableAnlges()
+   * @copydoc Dali::Internal::Adaptor::WindowBase::SetAvailableOrientations()
    */
-  virtual void SetAvailableAnlges( const std::vector< int >& angles ) override;
+  virtual void SetAvailableOrientations( const std::vector< Dali::Window::WindowOrientation >& orientations ) override;
 
   /**
-   * @copydoc Dali::Internal::Adaptor::WindowBase::SetPreferredAngle()
+   * @copydoc Dali::Internal::Adaptor::WindowBase::SetPreferredOrientation()
    */
-  virtual void SetPreferredAngle( int angle ) override;
+  virtual void SetPreferredOrientation( Dali::Window::WindowOrientation orientation ) override;
 
   /**
    * @copydoc Dali::Internal::Adaptor::WindowBase::SetAcceptFocus()
index fd0f23f..d71e7df 100755 (executable)
@@ -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::SetAvailableAnlges( const std::vector< int >& angles )
+void WindowBaseEcoreX::SetAvailableOrientations( const std::vector< Dali::Window::WindowOrientation >& orientations )
 {
 }
 
-void WindowBaseEcoreX::SetPreferredAngle( int angle )
+void WindowBaseEcoreX::SetPreferredOrientation( Dali::Window::WindowOrientation orientation )
 {
 }
 
index f01d32d..2d3346f 100644 (file)
@@ -199,14 +199,14 @@ public:
   virtual void Activate() override;
 
   /**
-   * @copydoc Dali::Internal::Adaptor::WindowBase::SetAvailableAnlges()
+   * @copydoc Dali::Internal::Adaptor::WindowBase::SetAvailableOrientations()
    */
-  virtual void SetAvailableAnlges( const std::vector< int >& angles ) override;
+  virtual void SetAvailableOrientations( const std::vector< Dali::Window::WindowOrientation >& orientations ) override;
 
   /**
-   * @copydoc Dali::Internal::Adaptor::WindowBase::SetPreferredAngle()
+   * @copydoc Dali::Internal::Adaptor::WindowBase::SetPreferredOrientation()
    */
-  virtual void SetPreferredAngle( int angle ) override;
+  virtual void SetPreferredOrientation( Dali::Window::WindowOrientation orientation ) override;
 
   /**
    * @copydoc Dali::Internal::Adaptor::WindowBase::SetAcceptFocus()
index d5cbe7b..47c1180 100755 (executable)
@@ -314,11 +314,11 @@ void WindowBaseWin::Activate()
 {
 }
 
-void WindowBaseWin::SetAvailableAnlges( const std::vector< int >& angles )
+void WindowBaseWin::SetAvailableOrientations( const std::vector< Dali::Window::WindowOrientation >& orientations )
 {
 }
 
-void WindowBaseWin::SetPreferredAngle( int angle )
+void WindowBaseWin::SetPreferredOrientation( Dali::Window::WindowOrientation orientation )
 {
 }
 
index fd6d2af..60e028e 100755 (executable)
@@ -187,14 +187,14 @@ public:
   virtual void Activate() override;
 
   /**
-   * @copydoc Dali::Internal::Adaptor::WindowBase::SetAvailableAnlges()
+   * @copydoc Dali::Internal::Adaptor::WindowBase::SetAvailableOrientations()
    */
-  virtual void SetAvailableAnlges( const std::vector< int >& angles ) override;
+  virtual void SetAvailableOrientations( const std::vector< Dali::Window::WindowOrientation >& orientations ) override;
 
   /**
-   * @copydoc Dali::Internal::Adaptor::WindowBase::SetPreferredAngle()
+   * @copydoc Dali::Internal::Adaptor::WindowBase::SetPreferredOrientation()
    */
-  virtual void SetPreferredAngle( int angle ) override;
+  virtual void SetPreferredOrientation( Dali::Window::WindowOrientation orientation ) override;
 
   /**
    * @copydoc Dali::Internal::Adaptor::WindowBase::SetAcceptFocus()
index 2edfae3..14e8c04 100644 (file)
@@ -165,7 +165,7 @@ void Window::RemoveAvailableOrientation( WindowOrientation orientation )
   GetImplementation(*this).RemoveAvailableOrientation( orientation );
 }
 
-void Window::SetPreferredOrientation( WindowOrientation orientation )
+void Window::SetPreferredOrientation( Dali::Window::WindowOrientation orientation )
 {
   GetImplementation(*this).SetPreferredOrientation( orientation );
 }