From 3182bebfc3e7ed1716fb2995453059c75b63e0dc Mon Sep 17 00:00:00 2001 From: Seoyeon Kim Date: Tue, 13 Jun 2017 11:03:12 +0900 Subject: [PATCH] [Tizen] keygrab & ecore-wl-window-handle c# binding This reverts commit a6b0ac5016d7c6aa09d2e774529faaad10ae0ce3. Change-Id: Ia3711c083ec54e98511977940071d13238e1ec72 --- adaptors/common/window-impl.h | 4 ++++ adaptors/devel-api/adaptor-framework/window-devel.cpp | 5 +++++ adaptors/devel-api/adaptor-framework/window-devel.h | 7 +++++++ adaptors/ecore/wayland/window-impl-ecore-wl.cpp | 7 ++++++- adaptors/wayland/window-impl-wl.cpp | 6 +++++- adaptors/x11/window-impl-x.cpp | 5 +++++ 6 files changed, 32 insertions(+), 2 deletions(-) mode change 100644 => 100755 adaptors/common/window-impl.h mode change 100644 => 100755 adaptors/devel-api/adaptor-framework/window-devel.cpp mode change 100644 => 100755 adaptors/devel-api/adaptor-framework/window-devel.h mode change 100644 => 100755 adaptors/ecore/wayland/window-impl-ecore-wl.cpp mode change 100644 => 100755 adaptors/wayland/window-impl-wl.cpp mode change 100644 => 100755 adaptors/x11/window-impl-x.cpp diff --git a/adaptors/common/window-impl.h b/adaptors/common/window-impl.h old mode 100644 new mode 100755 index 09a7541..d7442b3 --- a/adaptors/common/window-impl.h +++ b/adaptors/common/window-impl.h @@ -417,6 +417,10 @@ private: IndicatorSignalType mIndicatorVisibilityChangedSignal; FocusSignalType mFocusChangedSignal; SignalType mDeleteRequestSignal; + +public: + + void* GetNativeWindowHandler(); }; } // namespace Adaptor diff --git a/adaptors/devel-api/adaptor-framework/window-devel.cpp b/adaptors/devel-api/adaptor-framework/window-devel.cpp old mode 100644 new mode 100755 index b6f977c..eb830fd --- a/adaptors/devel-api/adaptor-framework/window-devel.cpp +++ b/adaptors/devel-api/adaptor-framework/window-devel.cpp @@ -145,6 +145,11 @@ int GetBrightness( Window window ) return GetImplementation( window ).GetBrightness(); } +void * GetNativeWindowHandler( Window window ) +{ + return GetImplementation( window ).GetNativeWindowHandler(); +} + } // namespace DevelWindow } // namespace Dali diff --git a/adaptors/devel-api/adaptor-framework/window-devel.h b/adaptors/devel-api/adaptor-framework/window-devel.h old mode 100644 new mode 100755 index 6d07c71..c8a4a26 --- a/adaptors/devel-api/adaptor-framework/window-devel.h +++ b/adaptors/devel-api/adaptor-framework/window-devel.h @@ -293,6 +293,13 @@ DALI_IMPORT_API bool SetBrightness( Window window, int brightness ); */ DALI_IMPORT_API int GetBrightness( Window window ); +/** + * @brief Returns native Ecore Wayland Window handle only for c# binding + * @param[in] window The window where Ecore Wayland window handle is extracted + * @return void * of native Ecore Wayland Window + */ +DALI_IMPORT_API void * GetNativeWindowHandler( Window window ); + } // namespace DevelWindow } // namespace Dali diff --git a/adaptors/ecore/wayland/window-impl-ecore-wl.cpp b/adaptors/ecore/wayland/window-impl-ecore-wl.cpp old mode 100644 new mode 100755 index d0dbdb7..f300e77 --- a/adaptors/ecore/wayland/window-impl-ecore-wl.cpp +++ b/adaptors/ecore/wayland/window-impl-ecore-wl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. +* Copyright (c) 2017 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. @@ -1410,6 +1410,11 @@ int Window::GetBrightness() return mEventHandler->mBrightness; } +void* Window::GetNativeWindowHandler() +{ + return mEventHandler->mEcoreWindow; +} + } // Adaptor } // Internal diff --git a/adaptors/wayland/window-impl-wl.cpp b/adaptors/wayland/window-impl-wl.cpp old mode 100644 new mode 100755 index 631681f..da26daf --- a/adaptors/wayland/window-impl-wl.cpp +++ b/adaptors/wayland/window-impl-wl.cpp @@ -309,7 +309,6 @@ bool Window::IsVisible() const return mVisible; } - void Window::RotationDone( int orientation, int width, int height ) { } @@ -403,6 +402,11 @@ int Window::GetBrightness() return 0; } +void* Window::GetNativeWindowHandler() +{ + return NULL; +} + } // Adaptor } // Internal } // Dali diff --git a/adaptors/x11/window-impl-x.cpp b/adaptors/x11/window-impl-x.cpp old mode 100644 new mode 100755 index 710d9fb..c8ce7a6 --- a/adaptors/x11/window-impl-x.cpp +++ b/adaptors/x11/window-impl-x.cpp @@ -907,6 +907,11 @@ int Window::GetBrightness() return 0; } +void* Window::GetNativeWindowHandler() +{ + return &(mEventHandler->mEcoreWindow); +} + } // Adaptor } // Internal -- 2.7.4