From a604472622bcc2f14e125786f4fccb356ae629d1 Mon Sep 17 00:00:00 2001 From: "minho.sun" Date: Wed, 7 Jun 2017 14:52:15 +0900 Subject: [PATCH] [Tizen] keygrab & ecore-wl-window-handle c# binding This reverts commit b8717fff4b396dfecadbfa99d4afed7c7e5bfeec. Change-Id: I10b50a76de8e68ce6ac788cbb4b94753c39d59e2 --- 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 09a754113..d7442b359 --- 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 b6f977c06..eb830fd4d --- 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 6d07c7134..c8a4a26ee --- 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 d0dbdb7c9..f300e7740 --- 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 631681fe0..da26dafcd --- 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 710d9fbdb..c8ce7a6db --- 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.34.1