Remove RotationObserver from toolkit orientaiton implementation 40/206340/1
authorRichard Huang <r.huang@samsung.com>
Thu, 16 May 2019 13:10:38 +0000 (14:10 +0100)
committerRichard Huang <r.huang@samsung.com>
Thu, 16 May 2019 13:47:06 +0000 (14:47 +0100)
Change-Id: Id67a0e6b711c6b65fa8981b837fd909b796bf73c

automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-orientation.cpp

index 4018f37..b959638 100644 (file)
@@ -42,21 +42,7 @@ struct RotationEvent
   int height;    ///< new window height
 };
 
   int height;    ///< new window height
 };
 
-/**
- * The RotationObserver can be overridden in order to listen to rotation events.
- */
-class RotationObserver
-{
-public:
-  virtual void OnRotationPrepare( const RotationEvent& rotation ) = 0;
-  virtual void OnRotationRequest( ) = 0;
-
-protected:
-  RotationObserver(){}
-  virtual ~RotationObserver(){}
-};
-
-class Orientation : public BaseObject, public RotationObserver
+class Orientation : public BaseObject
 {
 public:
   typedef Dali::Orientation::OrientationSignalType OrientationSignalType;
 {
 public:
   typedef Dali::Orientation::OrientationSignalType OrientationSignalType;
@@ -75,9 +61,6 @@ protected:
   {
   }
 public:
   {
   }
 public:
-  void SetAdaptor(Dali::Adaptor& adaptor)
-  {
-  }
   int GetDegrees() const
   {
     return 0;
   int GetDegrees() const
   {
     return 0;
@@ -86,16 +69,13 @@ public:
   {
     return 0.0f;
   }
   {
     return 0.0f;
   }
+  void OnOrientationChanged( const RotationEvent& rotation )
+  {
+  }
   OrientationSignalType& ChangedSignal()
   {
     return mChangedSignal;
   }
   OrientationSignalType& ChangedSignal()
   {
     return mChangedSignal;
   }
-  virtual void OnRotationPrepare( const RotationEvent& rotation )
-  {
-  };
-  virtual void OnRotationRequest( )
-  {
-  };
 
 private:
   Orientation(const Orientation&);
 
 private:
   Orientation(const Orientation&);