Revert "[Tizen] Import Extension::Capture to support backward compatibility"
[platform/core/uifw/dali-extension.git] / dali-extension / internal / evas-plugin / ecore-wl-event-handler.h
1 #ifndef __DALI_EXTENSION_INTERNAL_ECORE_X_EVENT_HANDLER__
2 #define __DALI_EXTENSION_INTERNAL_ECORE_X_EVENT_HANDLER__
3
4 /*
5  * Copyright (c) 2019 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <Ecore.h>
23 #include <Ecore_Evas.h>
24 #include <Ecore_Wl2.h>
25 #include <vector>
26 #include <dali/integration-api/debug.h>
27
28 // INTERNAL INCLUDES
29 #include "evas-plugin-visibility-interface.h"
30
31 namespace Dali
32 {
33
34 namespace Extension
35 {
36
37 namespace Internal
38 {
39
40 class EvasPluginVisibilityInterface;
41
42 class EcoreWlEventHandler
43 {
44 public:
45   /**
46    * @brief Constructor
47    *
48    * @param[in] window is id of ecore wayland window.
49    * @param[in] evasPluginVisibilityInterface Used to send ecore wayland event to evas plugin
50    */
51   EcoreWlEventHandler(Ecore_Wl2_Window* window, EvasPluginVisibilityInterface& evasPluginVisibilityInterface);
52
53   /**
54    * @brief Destructor
55    */
56   ~EcoreWlEventHandler();
57
58   /**
59    * @brief Send the ecore wayland visibility.
60    *
61    * @param[in] visibility True is that ecore wayland window is show up and false is not
62    */
63   void SendEcoreWlVisibility(bool visibility);
64
65 private:
66   EvasPluginVisibilityInterface& mEvasPluginVisibilityInterface;
67
68   struct Impl;
69   Impl* mImpl;
70 };
71
72 }  // namespace Internal
73
74 }  // namespace Extension
75
76 }  // namespace Dali
77
78 #endif