X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fwindow-system%2Fcommon%2Fevent-handler.h;h=be46842ef6d314eff5fc4ebac76e5645f565a3bb;hb=e8e185f7d90010214890c2cb78bdd52c732f63ba;hp=af30e8a2e4425ef877beda8b38ca26a384fadaa1;hpb=761f75cd51351b7a4e072130f4a2ad0b3e3231bb;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/window-system/common/event-handler.h b/dali/internal/window-system/common/event-handler.h old mode 100644 new mode 100755 index af30e8a..be46842 --- a/dali/internal/window-system/common/event-handler.h +++ b/dali/internal/window-system/common/event-handler.h @@ -2,7 +2,7 @@ #define __DALI_INTERNAL_EVENT_HANDLER_H__ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -29,14 +29,19 @@ #include #include #include -#include #include +#include namespace Dali { +namespace Integration +{ + class RenderSurface; +} + namespace Internal { @@ -53,7 +58,7 @@ class StyleMonitor; * * These TouchEvents are then passed on to Core. */ -class EventHandler +class EventHandler : public ConnectionTracker { public: @@ -65,7 +70,7 @@ public: * @param[in] damageObserver The damage observer (to pass damage events to). * @param[in] dndDetector The Drag & Drop listener (to pass DnD events to). */ - EventHandler( RenderSurface* surface, CoreEventInterface& coreEventInterface, GestureManager& gestureManager, DamageObserver& damageObserver, DragAndDropDetectorPtr dndDetector ); + EventHandler( Integration::RenderSurface* surface, CoreEventInterface& coreEventInterface, GestureManager& gestureManager, DamageObserver& damageObserver, DragAndDropDetectorPtr dndDetector ); /** * Destructor. @@ -168,6 +173,58 @@ private: */ void Reset(); + /** + * Called when a touch event is received. + */ + void OnTouchEvent( Integration::Point& point, unsigned long timeStamp ); + + /** + * Called when a mouse wheel is received. + */ + void OnWheelEvent( WheelEvent& wheelEvent ); + + /** + * Called when a key event is received. + */ + void OnKeyEvent( Integration::KeyEvent& keyEvent ); + + /** + * Called when the window focus is changed. + */ + void OnFocusChanged( bool focusIn ); + + /** + * Called when the window is damaged. + */ + void OnWindowDamaged( const DamageArea& area ); + + /** + * Called when the source window notifies us the content in clipboard is selected. + */ + void OnSelectionDataSend( void* event ); + + /** + * Called when the source window sends us about the selected content. + */ + void OnSelectionDataReceived( void* event ); + + /** + * Called when the style is changed. + */ + void OnStyleChanged( StyleChange::Type styleChange ); + + /** + * Called when Ecore ElDBus accessibility event is received. + */ + void OnAccessibilityNotification( const WindowBase::AccessibilityInfo& info ); + +private: + + /** + * Convert touch event position + */ + void ConvertTouchPosition( Integration::Point& point ); + private: // Undefined @@ -190,8 +247,9 @@ private: Dali::ClipboardEventNotifier mClipboardEventNotifier; ///< Pointer to the clipboard event notifier Dali::Clipboard mClipboard;///< Pointer to the clipboard - struct Impl; ///< Implementation - Impl* mImpl; ///< Created on construction and destroyed on destruction. + int mRotationAngle; + int mWindowWidth; + int mWindowHeight; bool mPaused; ///< The paused state of the adaptor. };