X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Flivebox_internal.h;h=cbbefbc1a9ecbe26d958e36db2be1d719e24d74a;hb=386ead03793ce5570fc2a0f1d38f61d69b2a908c;hp=a5e88d371c5b3f77a9a0fdfdfe9eb4ecd39260f3;hpb=4d74367f70160f9ef31a6e8f1bf2769fa19fdf1f;p=platform%2Fframework%2Fweb%2Flivebox-viewer.git diff --git a/include/livebox_internal.h b/include/livebox_internal.h index a5e88d3..cbbefbc 100644 --- a/include/livebox_internal.h +++ b/include/livebox_internal.h @@ -1,11 +1,11 @@ /* - * Copyright 2012 Samsung Electronics Co., Ltd + * Copyright 2013 Samsung Electronics Co., Ltd * - * Licensed under the Flora License, Version 1.0 (the "License"); + * Licensed under the Flora License, Version 1.1 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.tizenopensource.org/license + * http://floralicense.org/license/ * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -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,24 +40,26 @@ 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); extern int lb_delete_all(void); +extern void lb_set_filename(struct livebox *handler, const char *filename); enum lb_type { /*!< Must have to be sync with data-provider-master */ _LB_TYPE_NONE = 0x0, _LB_TYPE_SCRIPT, _LB_TYPE_FILE, _LB_TYPE_TEXT, - _LB_TYPE_BUFFER, + _LB_TYPE_BUFFER }; enum pd_type { /*!< Must have to be sync with data-provider-master */ _PD_TYPE_NONE = 0x0, _PD_TYPE_SCRIPT, _PD_TYPE_TEXT, - _PD_TYPE_BUFFER, + _PD_TYPE_BUFFER }; struct livebox { @@ -64,7 +67,7 @@ struct livebox { enum { CREATE = 0xBEEFbeef, DELETE = 0xDEADdead, /* Delete only for this client */ - DESTROYED = 0x00DEAD00, + DESTROYED = 0x00DEAD00 } state; char *cluster; @@ -83,6 +86,7 @@ struct livebox { int is_user; int is_pd_created; int is_pinned_up; + int is_active_update; struct { enum lb_type type; @@ -100,6 +104,7 @@ struct livebox { char *auto_launch; double period; int pinup_supported; + int mouse_event; /* For the filtering event */ double x; @@ -116,6 +121,9 @@ struct livebox { int width; int height; + int default_width; + int default_height; + /* For the filtering event */ double x; double y; @@ -140,11 +148,20 @@ struct livebox { ret_cb_t period_changed_cb; void *period_cbdata; + ret_cb_t size_changed_cb; + void *size_cbdata; + ret_cb_t pd_created_cb; void *pd_created_cbdata; 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 */