[Tizen] Add screen and client rotation itself function
[platform/core/uifw/dali-adaptor.git] / dali / internal / window-system / common / window-base.h
index ec4f805..a9e340f 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTERNAL_WINDOWSYSTEM_COMMON_WINDOW_BASE_H
 
 /*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  *
  */
 
-// INTERNAL INCLUDES
-#include <dali/public-api/adaptor-framework/window.h>
-#include <dali/public-api/adaptor-framework/key-grab.h>
-#include <dali/public-api/adaptor-framework/style-change.h>
-#include <dali/internal/window-system/common/indicator-interface.h>
-#include <dali/internal/window-system/common/damage-observer.h>
-#include <dali/internal/window-system/common/rotation-observer.h>
-#include <dali/internal/graphics/gles20/egl-implementation.h>
-
 // EXTERNAL INCLUDES
 #include <dali/integration-api/events/key-event-integ.h>
 #include <dali/integration-api/events/point.h>
 #include <dali/public-api/events/wheel-event.h>
 #include <string>
 #include <vector>
+#include <cstdint>
+
+// INTERNAL INCLUDES
+#include <dali/public-api/adaptor-framework/window.h>
+#include <dali/public-api/adaptor-framework/key-grab.h>
+#include <dali/public-api/adaptor-framework/style-change.h>
+#include <dali/internal/window-system/common/damage-observer.h>
+#include <dali/internal/window-system/common/rotation-event.h>
+#include <dali/internal/graphics/gles/egl-implementation.h>
 
 namespace Dali
 {
@@ -71,7 +71,7 @@ public:
   typedef Signal< void ( const RotationEvent& ) > RotationSignalType;
 
   // Input events
-  typedef Signal< void ( Integration::Point&, unsigned long ) > TouchEventSignalType;
+  typedef Signal< void ( Integration::Point&, uint32_t ) > TouchEventSignalType;
   typedef Signal< void ( WheelEvent& ) > WheelEventSignalType;
   typedef Signal< void( Integration::KeyEvent& ) > KeyEventSignalType;
 
@@ -82,9 +82,6 @@ public:
   typedef Signal< void ( StyleChange::Type ) > StyleSignalType;
   typedef Signal< void ( const AccessibilityInfo& ) > AccessibilitySignalType;
 
-  // Indicator
-  typedef Signal< void ( ) > IndicatorSignalType;
-
   /**
    * @brief Default constructor
    */
@@ -160,21 +157,6 @@ public:
   virtual void MoveResize( Dali::PositionSize positionSize ) = 0;
 
   /**
-   * @copydoc Dali::Window::ShowIndicator()
-   */
-  virtual void ShowIndicator( Dali::Window::IndicatorVisibleMode visibleMode, Dali::Window::IndicatorBgOpacity opacityMode ) = 0;
-
-  /**
-   * Set the indicator properties on the window
-   */
-  virtual void SetIndicatorProperties( bool isShow, Dali::Window::WindowOrientation lastOrientation ) = 0;
-
-  /**
-   * @copydoc Dali::Internal::Adaptor::IndicatorInterface::Observer::IndicatorTypeChanged()
-   */
-  virtual void IndicatorTypeChanged( IndicatorInterface::Type type ) = 0;
-
-  /**
    * @copydoc Dali::Window::SetClass()
    */
   virtual void SetClass( const std::string& name, const std::string& className ) = 0;
@@ -327,10 +309,10 @@ public:
   virtual void GetDpi( unsigned int& dpiHorizontal, unsigned int& dpiVertical ) = 0;
 
   /**
-   * @brief Set the stereoscopic 3D view mode
-   * @param[in] viewMode The new view mode
+   * @brief Return the orientation of the surface.
+   * @return The orientation
    */
-  virtual void SetViewMode( ViewMode viewMode ) = 0;
+  virtual int GetOrientation() const = 0;
 
   /**
    * @brief Get the screen rotation angle of the window
@@ -342,6 +324,11 @@ public:
    */
   virtual void SetWindowRotationAngle( int degree ) = 0;
 
+    /**
+   * @brief Get the rotation angle of the window
+   */
+  virtual int GetWindowRotationAngle() = 0;
+
   /**
    * @brief Inform the window rotation is completed
    */
@@ -352,6 +339,17 @@ public:
    */
   virtual void SetTransparency( bool transparent ) = 0;
 
+  /**
+   * @copydoc Dali::Window::SetParent()
+   */
+  virtual void SetParent( Any parent ) = 0;
+
+  /**
+   * @brief Check whether the window is matched or not.
+   * @return The result of matched.
+   */
+  virtual bool IsMatchedWindow( Any window ) = 0;
+
   // Signals
 
   /**
@@ -419,11 +417,6 @@ public:
    */
   AccessibilitySignalType& AccessibilitySignal();
 
-  /**
-   * @brief This signal is emitted when an indicator is flicked.
-   */
-  IndicatorSignalType& IndicatorFlickedSignal();
-
 protected:
 
   // Undefined
@@ -447,7 +440,6 @@ protected:
   SelectionSignalType                  mSelectionDataReceivedSignal;
   StyleSignalType                      mStyleChangedSignal;
   AccessibilitySignalType              mAccessibilitySignal;
-  IndicatorSignalType                  mIndicatorFlickedSignal;
 };
 
 } // namespace Adaptor