2 * Copyright (c) 2014, TOYOTA MOTOR CORPORATION.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
14 #ifndef __CICO_ON_SCREEN_H__
15 #define __CICO_ON_SCREEN_H__
30 #include <Ecore_Evas.h>
35 #include <CicoNotification.h>
36 #include <CicoNotificationService.h>
38 #include "ico_syc_common.h"
39 #include "ico_syc_privilege.h"
43 /*============================================================================*/
44 /* Define fixed parameters */
45 /*============================================================================*/
47 #define STATUS_BAR_HEIGHT 64
48 #define CTRL_BAR_HEIGHT 128
50 #define HEIGHT (1920 - STATUS_BAR_HEIGHT - CTRL_BAR_HEIGHT)
53 #define POPUP_WIDTH 640
54 #define POPUP_HEIGHT 300
56 /* Popup Frame Size */
57 #define POPUP_FRAME_THICK 10
58 #define POPUP_FRAME_WIDTH (POPUP_WIDTH+POPUP_FRAME_THICK)
59 #define POPUP_FRAME_HEIGHT (POPUP_HEIGHT+POPUP_FRAME_THICK)
62 #define POPUP_ST_X ((WIDTH-POPUP_WIDTH)/2)
63 #define POPUP_ST_Y ((HEIGHT-POPUP_HEIGHT)/2)
65 /* Popup Frame Size */
66 #define POPUP_FRAME_THICK 10
67 #define POPUP_FRAME_WIDTH (POPUP_WIDTH+POPUP_FRAME_THICK)
68 #define POPUP_FRAME_HEIGHT (POPUP_HEIGHT+POPUP_FRAME_THICK)
69 #define POPUP_FRAME_ST_X (POPUP_ST_X-POPUP_FRAME_THICK/2)
70 #define POPUP_FRAME_ST_Y (POPUP_ST_Y-POPUP_FRAME_THICK/2)
73 #define POPUP_ICON_WIDTH 50
74 #define POPUP_ICON_HEIGHT 50
75 #define POPUP_ICON_ST_X POPUP_ST_X
76 #define POPUP_ICON_ST_Y POPUP_ST_Y
78 /* Popup Title Size */
79 #define POPUP_TITLE_WIDTH (POPUP_WIDTH-POPUP_ICON_WIDTH)
80 #define POPUP_TITLE_HEIGHT POPUP_ICON_HEIGHT
81 #define POPUP_TITLE_ST_X (POPUP_ST_X+POPUP_ICON_WIDTH)
82 #define POPUP_TITLE_ST_Y POPUP_ST_Y
84 /* Popup Content BG Size */
85 #define POPUP_CONTENT_BG_WIDTH POPUP_WIDTH
86 #define POPUP_CONTENT_BG_HEIGHT (POPUP_HEIGHT-POPUP_TITLE_HEIGHT)
87 #define POPUP_CONTENT_BG_ST_X POPUP_ST_X
88 #define POPUP_CONTENT_BG_ST_Y (POPUP_ST_Y+POPUP_TITLE_HEIGHT)
90 /* Popup Content Size */
91 #define POPUP_CONTENT_WIDTH POPUP_WIDTH
92 #define POPUP_CONTENT_HEIGHT POPUP_TITLE_HEIGHT
93 #define POPUP_CONTENT_ST_X POPUP_ST_X
94 #define POPUP_CONTENT_ST_Y (POPUP_ST_Y+POPUP_TITLE_HEIGHT+(POPUP_HEIGHT-POPUP_CONTENT_HEIGHT)/2)
96 #define ICO_ORIENTATION_VERTICAL (1)
97 #define ICO_ORIENTATION_HORIZONTAL (2)
99 #define LEMOLO_PKGNAME "org.tizen.dialer"
106 #define ICON_PATH (char *)"/usr/share/icons/default/small/org.tizen.dialer.png"
109 /*============================================================================*/
110 /* Define data types */
111 /*============================================================================*/
118 CicoNotification *noti;
121 /*============================================================================*/
123 /*============================================================================*/
129 bool StartOnScreen(void);
132 void HidePopup(void);
133 static void NotificationCallback(void *data,
134 notification_type_e type,
135 notification_op *op_list,
139 void ShowPopup(CicoNotification ¬i);
140 void InitializePopup(void);
141 void InitializePopupData(void);
143 static void evasMouseUpCB(void *data,
148 static void EventCallBack(const ico_syc_ev_e event,
152 static CicoOnScreen *os_instance;
153 static struct popup_data ico_appdata;
156 CicoNotificationService notiservice_;
158 #endif // __CICO_ON_SCREEN_H__
159 // vim:set expandtab ts=4 sw=4: