X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fwindow-system%2Fcommon%2Fwindow-impl.h;h=ff922c28b1cbc5e8df10013aefd5ce88df551f01;hb=refs%2Fchanges%2F99%2F273199%2F7;hp=761bb0e27cd559a817546acc434539e6e2ac6e5d;hpb=4ded4ba1ec5166951f41921c7e1eff458bf2755a;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/window-system/common/window-impl.h b/dali/internal/window-system/common/window-impl.h index 761bb0e..ff922c2 100644 --- a/dali/internal/window-system/common/window-impl.h +++ b/dali/internal/window-system/common/window-impl.h @@ -64,6 +64,7 @@ public: typedef Dali::DevelWindow::VisibilityChangedSignalType VisibilityChangedSignalType; typedef Dali::DevelWindow::TransitionEffectEventSignalType TransitionEffectEventSignalType; typedef Dali::DevelWindow::KeyboardRepeatSettingsChangedSignalType KeyboardRepeatSettingsChangedSignalType; + typedef Dali::DevelWindow::AuxiliaryMessageSignalType AuxiliaryMessageSignalType; typedef Signal SignalType; /** @@ -116,6 +117,26 @@ public: void Activate(); /** + * @copydoc Dali::DevelWindow::Maximize() + */ + void Maximize(bool maximize); + + /** + * @copydoc Dali::DevelWindow::IsMaximized() + */ + bool IsMaximized() const; + + /** + * @copydoc Dali::DevelWindow::Minimize() + */ + void Minimize(bool minimize); + + /** + * @copydoc Dali::DevelWindow::IsMinimized() + */ + bool IsMinimized() const; + + /** * @copydoc Dali::Window::GetLayerCount() */ uint32_t GetLayerCount() const; @@ -326,11 +347,16 @@ public: static Dali::Window Get(Dali::Actor actor); /** - * @copydoc Dali::DevelWindow::SetParent() + * @copydoc Dali::DevelWindow::SetParent(Window window, Window parent) */ void SetParent(Dali::Window& parent); /** + * @copydoc Dali::DevelWindow::SetParent(Window window, Window parent, bool belowParent) + */ + void SetParent(Dali::Window& parent, bool belowParent); + + /** * @copydoc Dali::DevelWindow::Unparent() */ void Unparent(); @@ -401,6 +427,16 @@ public: // Dali::Internal::Adaptor::SceneHolder */ void ExcludeInputRegion(const Rect& inputRegion); + /** + * @copydoc Dali::DevelWindow::SetNeedsRotationCompletedAcknowledgement() + */ + void SetNeedsRotationCompletedAcknowledgement(bool needAcknowledgement); + + /** + * @copydoc Dali::DevelWindow::SendRotationCompletedAcknowledgement() + */ + void SendRotationCompletedAcknowledgement(); + private: /** * @brief Enumeration for orietation mode. @@ -468,11 +504,34 @@ private: /** * @brief Called when the window is resized or moved by display server. * - * @param positionSize the updated window's position and size. + * @param[in] positionSize the updated window's position and size. */ void OnUpdatePositionSize(Dali::PositionSize& positionSize); /** + * @brief Called when display server sent the auxiliary message. + * + * @param[in] key the auxiliary message's key. + * @param[in] value the auxiliary message's value. + * @param[in] options the auxiliary message's options. This is the list of string. + */ + void OnAuxiliaryMessage(const std::string& key, const std::string& value, const Property::Array& options); + + /** + * @brief Called when Accessibility is enabled. + * + * This method is to register the window to accessibility bridge. + */ + void OnAccessibilityEnabled(); + + /** + * @brief Called when Accessibility is disabled. + * + * This method is to remove the window from accessibility bridge. + */ + void OnAccessibilityDisabled(); + + /** * @brief Set available orientation to window base. */ void SetAvailableAnlges(const std::vector& angles); @@ -492,6 +551,20 @@ private: */ bool IsOrientationAvailable(WindowOrientation orientation) const; + /** + * @brief Return the rect value to recalulate with the default system coordinates. + * + * Some native window APIs work the geometry value based on the default system coordinates. + * IncludeInputRegion() and ExcludeInputRegion() are one of them. + * When the window is rotated, current window's geometry already were set with the rotated angle. + * If IncludeInputRegion() or ExcludeInputRegion() are called with rotated angle by application, + * the rect's area should be re-calcuated on the default system coordinates. + * + * @param[in] rect the window's current position and size with current window rotation angle. + * @return the re-calculated rect on the default system coordinates. + */ + Rect RecalculateRect(const Rect& rect); + private: // Dali::Internal::Adaptor::SceneHolder /** * @copydoc Dali::Internal::Adaptor::SceneHolder::OnAdaptorSet @@ -596,6 +669,14 @@ public: // Signals return mKeyboardRepeatSettingsChangedSignal; } + /** + * @copydoc Dali::DevelWindow::AuxiliaryMessageSignal() + */ + AuxiliaryMessageSignalType& AuxiliaryMessageSignal() + { + return mAuxiliaryMessageSignal; + } + private: WindowRenderSurface* mWindowSurface; ///< The window rendering surface WindowBase* mWindowBase; @@ -605,6 +686,8 @@ private: bool mIsFocusAcceptable : 1; bool mIconified : 1; bool mOpaqueState : 1; + bool mWindowRotationAcknowledgement : 1; + bool mFocused : 1; Dali::Window mParentWindow; OrientationPtr mOrientation; @@ -628,6 +711,7 @@ private: VisibilityChangedSignalType mVisibilityChangedSignal; TransitionEffectEventSignalType mTransitionEffectEventSignal; KeyboardRepeatSettingsChangedSignalType mKeyboardRepeatSettingsChangedSignal; + AuxiliaryMessageSignalType mAuxiliaryMessageSignal; }; } // namespace Adaptor