[Tizen] Add screen and client rotation itself function
[platform/core/uifw/dali-adaptor.git] / dali / internal / window-system / common / orientation-impl.h
index 47c058d..28d4f98 100644 (file)
 
 // INTERNAL INCLUDES
 #include <dali/devel-api/adaptor-framework/orientation.h>
-#include <dali/internal/window-system/common/rotation-observer.h>
+#include <dali/internal/window-system/common/rotation-event.h>
 
 namespace Dali
 {
-class Adaptor;
 
 namespace Internal
 {
 
 namespace Adaptor
 {
-class Adaptor;
 class Window;
 class Orientation;
 
 typedef IntrusivePtr<Orientation> OrientationPtr;
 
-class Orientation : public BaseObject, public RotationObserver
+class Orientation : public BaseObject
 {
 public:
 
@@ -59,20 +57,9 @@ protected:
   /**
    * Destructor
    */
-  virtual ~Orientation();
+  ~Orientation() override;
 
 public:
-  /**
-   * Set the adaptor for basic setup
-   * @param[in] adaptor The adaptor
-   */
-  void SetAdaptor(Dali::Adaptor& adaptor);
-
-  /**
-   * Set the adaptor for basic setup
-   * @param[in] adaptor The adaptor
-   */
-  void SetAdaptor(Adaptor& adaptor);
 
   /**
    * Returns the actual orientation in degrees
@@ -86,6 +73,12 @@ public:
    */
   float GetRadians() const;
 
+  /**
+   * Called by the Window when orientation is changed
+   * @param[in] rotation The rotation event
+   */
+  void OnOrientationChange( const RotationEvent& rotation );
+
 public: // Signals
 
   /**
@@ -94,27 +87,12 @@ public: // Signals
   OrientationSignalType& ChangedSignal();
 
 private:
-  /**
-   * @copydoc Dali::Internal::Adaptor::RotationObserver::OnRotationPrepare()
-   */
-  virtual void OnRotationPrepare( const RotationEvent& rotation );
-
-  /**
-   * @copydoc Dali::Internal::Adaptor::RotationObserver::OnRotationRequest()
-   */
-  virtual void OnRotationRequest( );
 
   // Undefined
   Orientation(const Orientation&);
   Orientation& operator=(Orientation&);
 
 private:
-  /**
-   * Signals and sends event of orientation change.
-   */
-  void EmitOrientationChange();
-
-private:
 
   Window*                                  mWindow;