Sync with the latest tizen 2.x
[apps/native/widget/widget.git] / include / binder.h
index d211f62..b93e675 100644 (file)
@@ -33,19 +33,33 @@ typedef struct virtual_window_info {
        } type;
        Ecore_Evas *ee;
        Evas *e;
-       int is_gbar;
-       int deleted;
        int w;
        int h;
        unsigned int *resource_array;
        int resource_cnt;
 
-       int pressed;
+       int pressed;    /* Bit mask (32 bits for 32 devices) */
 
        int orientation;
 
        Ecore_Timer *pended_events_consumer;
        Eina_List *pended_events_list;
+
+       struct _vwin_ctrl_mode {
+               int dump_to_file;
+       } ctrl_mode;
+
+       union _flags {
+               unsigned int mask;
+               struct _field {
+                       unsigned int deleted: 1;
+                       unsigned int is_gbar: 1;
+                       unsigned int on_hold_before_down: 1;
+                       unsigned int on_scroll_before_down: 1;
+
+                       unsigned int reserved: 28;
+               } field;
+       } flags;
 } *vwin_info_t;
 
 extern int binder_widget_send_updated(const char *pkgname, const char *id, widget_buffer_h handle, int idx, int x, int y, int w, int h, int gbar, const char *descfile);