2 * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Flora License, Version 1.1 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://floralicense.org/license/
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 * @file AppBoxRenderBuffer.h
18 * @author Yunchan Cho (yunchan.cho@samsung.com)
20 #ifndef APP_BOX_RENDER_BUFFER_H
21 #define APP_BOX_RENDER_BUFFER_H
24 #include <Core/Buffer/BoxRenderBuffer.h>
27 typedef _Ecore_Timer Ecore_Timer;
29 class AppBoxRenderBuffer: public BoxRenderBuffer {
31 static IRenderBufferPtr create(
32 std::string boxId, std::string instanceId,
33 int width, int height, std::string data)
35 return IRenderBufferPtr(new AppBoxRenderBuffer(
36 boxId, instanceId, width, height, data));
38 ~AppBoxRenderBuffer();
41 void didHandleTouchEvent(
42 TouchType type, double timestamp, double x, double y);
43 void deleteTouchTimer();
44 static Eina_Bool fireTouchTimerCallback(void* data);
47 std::string boxId, std::string instanceId,
48 int width, int height, std::string data);
52 std::string m_instanceId;
53 bool m_mouseEventRecievable;
54 Ecore_Timer* m_touchTimer;
55 AppBoxRenderView* m_renderView;
57 friend class AppBoxRenderView;
60 #endif // APP_BOX_RENDER_BUFFER_H