2 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
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.
18 * @file FShell_AppWidgetPopupContext.h
19 * @brief This is the header file for the %_AppWidgetPopupContext class.
21 * This header file contains the declarations of the %_AppWidgetPopupContext class.
24 #ifndef _FSHELL_INTERNAL_APPWIDGET_POPUP_CONTEXT_H_
25 #define _FSHELL_INTERNAL_APPWIDGET_POPUP_CONTEXT_H_
27 #include "FShell_AppWidgetRemoteBuffer.h"
29 namespace Tizen { namespace Base { namespace Collection
34 namespace Tizen { namespace Shell { namespace App
37 class _AppWidgetPopupContext;
40 * @class _AppWidgetContext
41 * @brief Context of a AppWidgetPopupProvider and it's AppWidgetPopup
43 class _AppWidgetPopupContext
44 :public Tizen::Base::Object
45 , public _IAppWidgetRemoteBufferEventListener
48 _AppWidgetPopupContext(const _AppWidgetContext* pParent);
49 virtual ~_AppWidgetPopupContext(void);
52 void OnPopupCreated(double x, double y, int width, int height);
55 result SyncRemoteBuffer(void);
56 int AcquireRemoteBuffer(int w, int h) const;
59 result SendPopupCreateRequest(double x, double y, int width, int height);
60 result SendPopupDestroyRequest(void);
63 // int GetClientId(void) const;
64 void OnPopupDestoyed(void);
65 virtual void OnTouchEventReceived(buffer_event event, double timestamp, double x, double y);
68 const _AppWidgetContext* __pParent;
69 _AppWidgetRemoteBuffer* __pAppWidgetRemoteBuffer;
71 }; // class _AppWidgetPopupContext
73 }}} // Tizen::Shell::App
75 #endif // _FSHELL_INTERNAL_APPWIDGET_POPUP_CONTEXT_H_