Sync with the private repository
[platform/framework/web/livebox-viewer.git] / include / livebox_internal.h
index a55934c..d5c39ab 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2012  Samsung Electronics Co., Ltd
+ * Copyright 2013  Samsung Electronics Co., Ltd
  *
  * Licensed under the Flora License, Version 1.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 extern int lb_set_group(struct livebox *handler, const char *cluster, const char *category);
 extern void lb_set_size(struct livebox *handler, int w, int h);
 extern void lb_set_pdsize(struct livebox *handler, int w, int h);
+extern void lb_set_default_pdsize(struct livebox *handler, int w, int h);
 extern void lb_invoke_event_handler(struct livebox *handler, enum livebox_event_type event);
 extern void lb_invoke_fault_handler(enum livebox_fault_type type, const char *pkgname, const char *filename, const char *function);
 extern int lb_set_content(struct livebox *handler, const char *content);
@@ -39,6 +40,7 @@ extern void lb_set_text_pd(struct livebox *handler);
 extern int lb_text_lb(struct livebox *handler);
 extern int lb_text_pd(struct livebox *handler);
 extern void lb_set_period(struct livebox *handler, double period);
+extern void lb_set_update_mode(struct livebox *handler, int active_mode);
 extern struct livebox *lb_ref(struct livebox *handler);
 extern struct livebox *lb_unref(struct livebox *handler);
 extern int lb_send_delete(struct livebox *handler, ret_cb_t cb, void *data);
@@ -83,6 +85,7 @@ struct livebox {
        int is_user;
        int is_pd_created;
        int is_pinned_up;
+       int is_active_update;
 
        struct {
                enum lb_type type;
@@ -117,6 +120,9 @@ struct livebox {
                int width;
                int height;
 
+               int default_width;
+               int default_height;
+
                /* For the filtering event */
                double x;
                double y;
@@ -149,6 +155,12 @@ struct livebox {
 
        ret_cb_t pd_destroyed_cb;
        void *pd_destroyed_cbdata;
+
+       ret_cb_t update_mode_cb;
+       void *update_mode_cbdata;
+
+       ret_cb_t access_event_cb;
+       void *access_event_cbdata;
 };
 
 /* End of a file */