Changeset 92473 in webkit
- Timestamp:
- Aug 5, 2011 3:16:57 AM (13 years ago)
- Location:
- trunk/Source/WebKit/efl
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/efl/ChangeLog
r92265 r92473 1 2011-08-05 Grzegorz Czajkowski <g.czajkowski@samsung.com> 2 3 [EFL] Move API documentation of ewk files to the headers 4 https://bugs.webkit.org/show_bug.cgi?id=65373 5 6 There are two arguments for this: 7 1. Developers using webkit-efl from packages probably won't have the C/CPP files with them 8 and the doxygen documentation can be generated from the headers without the need 9 for the whole source files. 10 2. It will be consistent with structures descriptions. 11 12 Reviewed by Kent Tamura. 13 14 * ewk/ewk_auth.cpp: 15 * ewk/ewk_auth.h: 16 * ewk/ewk_contextmenu.cpp: 17 * ewk/ewk_contextmenu.h: 18 * ewk/ewk_cookies.cpp: 19 * ewk/ewk_cookies.h: 20 * ewk/ewk_frame.cpp: 21 * ewk/ewk_frame.h: 22 * ewk/ewk_history.cpp: 23 * ewk/ewk_history.h: 24 * ewk/ewk_main.cpp: 25 * ewk/ewk_main.h: 26 * ewk/ewk_network.cpp: 27 * ewk/ewk_network.h: 28 * ewk/ewk_settings.cpp: 29 * ewk/ewk_settings.h: 30 * ewk/ewk_window_features.cpp: 31 * ewk/ewk_window_features.h: 32 1 33 2011-08-03 Pavel Feldman <pfeldman@chromium.org> 2 34 -
trunk/Source/WebKit/efl/ewk/ewk_auth.cpp
r91972 r92473 25 25 #endif 26 26 27 /**28 * Sets callback to be called when authentication is required.29 *30 * @param callback callback to be called.31 */32 27 void ewk_auth_show_dialog_callback_set(Ewk_Auth_Show_Dialog_Callback callback) 33 28 { -
trunk/Source/WebKit/efl/ewk/ewk_auth.h
r91972 r92473 42 42 43 43 /** 44 * Sets callback to be called when authentication is required 44 * Sets callback to be called when authentication is required. 45 * 46 * @param callback callback to be called 45 47 */ 46 48 EAPI void ewk_auth_show_dialog_callback_set(Ewk_Auth_Show_Dialog_Callback); -
trunk/Source/WebKit/efl/ewk/ewk_contextmenu.cpp
r91972 r92473 61 61 }; 62 62 63 /**64 * Increases the reference count of the given object.65 *66 * @param menu the context menu object to increase the reference count67 */68 63 void ewk_context_menu_ref(Ewk_Context_Menu *menu) 69 64 { … … 72 67 } 73 68 74 /**75 * Decreases the reference count of the given object, possibly freeing it.76 *77 * When the reference count it's reached 0, the menu with all items are freed.78 *79 * @param menu the context menu object to decrease the reference count80 */81 69 void ewk_context_menu_unref(Ewk_Context_Menu *menu) 82 70 { … … 93 81 } 94 82 95 /**96 * Destroys the context menu object.97 *98 * @param menu the context menu object to destroy99 * @return @c EINA_TRUE on success, @c EINA_FALSE on failure100 *101 * @see ewk_context_menu_item_free102 */103 83 Eina_Bool ewk_context_menu_destroy(Ewk_Context_Menu *menu) 104 84 { … … 113 93 } 114 94 115 /**116 * Gets the list of items.117 *118 * @param o the context menu object to get list of the items119 * @return the list of the items on success or @c 0 on failure120 */121 95 const Eina_List *ewk_context_menu_item_list_get(Ewk_Context_Menu *o) 122 96 { … … 126 100 } 127 101 128 /**129 * Creates a new item of the context menu.130 *131 * @param type specifies a type of the item132 * @param action specifies a action of the item133 * @param submenu specifies a submenu of the item134 * @param title specifies a title of the item135 * @param checked136 * @param enabled @c EINA_TRUE to enable the item or @c EINA_FALSE to disable137 * @return the pointer to the new item on success or @c 0 on failure138 *139 * @note The return value @b should @b be freed after use.140 */141 102 Ewk_Context_Menu_Item *ewk_context_menu_item_new(Ewk_Context_Menu_Item_Type type, 142 103 Ewk_Context_Menu_Action action, Ewk_Context_Menu *submenu, … … 157 118 } 158 119 159 /**160 * Selects the item from the context menu object.161 *162 * @param menu the context menu object163 * @param item the item is selected164 * @return @c EINA_TRUE on success or @c EINA_FALSE on failure165 */166 120 Eina_Bool ewk_context_menu_item_select(Ewk_Context_Menu *menu, Ewk_Context_Menu_Item *item) 167 121 { … … 181 135 } 182 136 183 /**184 * Destroys the item of the context menu object.185 *186 * @param item the item to destroy187 *188 * @see ewk_context_menu_destroy189 * @see ewk_context_menu_unref190 */191 137 void ewk_context_menu_item_free(Ewk_Context_Menu_Item *item) 192 138 { … … 197 143 } 198 144 199 /**200 * Gets type of the item.201 *202 * @param o the item to get the type203 * @return type of the item on success or @c EWK_ACTION_TYPE on failure204 *205 * @see ewk_context_menu_item_type_set206 */207 145 Ewk_Context_Menu_Item_Type ewk_context_menu_item_type_get(Ewk_Context_Menu_Item *o) 208 146 { … … 211 149 } 212 150 213 /**214 * Sets the type of item.215 *216 * @param o the item to set the type217 * @param type a new type for the item object218 * @return @c EINA_TRUE on success, or @c EINA_FALSE on failure219 *220 * @see ewk_context_menu_item_type_get221 */222 151 Eina_Bool ewk_context_menu_item_type_set(Ewk_Context_Menu_Item *o, Ewk_Context_Menu_Item_Type type) 223 152 { … … 227 156 } 228 157 229 /**230 * Gets an action of the item.231 *232 * @param o the item to get the action233 * @return an action of the item on success or @c EWK_CONTEXT_MENU_ITEM_TAG_NO_ACTION on failure234 *235 * @see ewk_context_menu_item_action_set236 */237 158 Ewk_Context_Menu_Action ewk_context_menu_item_action_get(Ewk_Context_Menu_Item *o) 238 159 { … … 241 162 } 242 163 243 /**244 * Sets an action of the item.245 *246 * @param o the item to set the action247 * @param action a new action for the item object248 * @return @c EINA_TRUE on success, or @c EINA_FALSE on failure249 *250 * @see ewk_context_menu_item_action_get251 */252 164 Eina_Bool ewk_context_menu_item_action_set(Ewk_Context_Menu_Item *o, Ewk_Context_Menu_Action action) 253 165 { … … 257 169 } 258 170 259 /**260 * Gets a title of the item.261 *262 * @param o the item to get the title263 * @return a title of the item on success, or @c 0 on failure264 *265 * @see ewk_context_menu_item_title_set266 */267 171 const char *ewk_context_menu_item_title_get(Ewk_Context_Menu_Item *o) 268 172 { … … 271 175 } 272 176 273 /**274 * Sets a title of the item.275 *276 * @param o the item to set the title277 * @param title a new title for the item object278 * @return a new title of the item on success or @c 0 on failure279 *280 * @see ewk_context_menu_item_title_get281 */282 177 const char *ewk_context_menu_item_title_set(Ewk_Context_Menu_Item *o, const char *title) 283 178 { … … 300 195 } 301 196 302 /**303 * Gets if the item is enabled.304 *305 * @param o the item to get enabled state306 * @return @c EINA_TRUE if it's enabled, @c EINA_FALSE if not or on failure307 *308 * @see ewk_context_menu_item_enabled_set309 */310 197 Eina_Bool ewk_context_menu_item_enabled_get(Ewk_Context_Menu_Item *o) 311 198 { … … 314 201 } 315 202 316 /**317 * Enables/disables the item.318 *319 * @param o the item to enable/disable320 * @param enabled @c EINA_TRUE to enable the item or @c EINA_FALSE to disable321 * @return @c EINA_TRUE on success, or @c EINA_FALSE on failure322 *323 * @see ewk_context_menu_item_enabled_get324 */325 203 Eina_Bool ewk_context_menu_item_enabled_set(Ewk_Context_Menu_Item *o, Eina_Bool enabled) 326 204 { -
trunk/Source/WebKit/efl/ewk/ewk_contextmenu.h
r91972 r92473 152 152 /************************** Exported functions ***********************/ 153 153 154 /** 155 * Increases the reference count of the given object. 156 * 157 * @param menu the context menu object to increase the reference count 158 */ 154 159 EAPI void ewk_context_menu_ref(Ewk_Context_Menu *menu); 160 161 /** 162 * Decreases the reference count of the given object, possibly freeing it. 163 * 164 * When the reference count it's reached 0, the menu with all items are freed. 165 * 166 * @param menu the context menu object to decrease the reference count 167 */ 155 168 EAPI void ewk_context_menu_unref(Ewk_Context_Menu *menu); 169 170 /** 171 * Destroys the context menu object. 172 * 173 * @param menu the context menu object to destroy 174 * @return @c EINA_TRUE on success, @c EINA_FALSE on failure 175 * 176 * @see ewk_context_menu_item_free 177 */ 156 178 EAPI Eina_Bool ewk_context_menu_destroy(Ewk_Context_Menu *menu); 157 179 180 /** 181 * Gets the list of items. 182 * 183 * @param o the context menu object to get list of the items 184 * @return the list of the items on success or @c 0 on failure 185 */ 158 186 EAPI const Eina_List *ewk_context_menu_item_list_get(Ewk_Context_Menu *o); 159 187 188 /** 189 * Creates a new item of the context menu. 190 * 191 * @param type specifies a type of the item 192 * @param action specifies a action of the item 193 * @param submenu specifies a submenu of the item 194 * @param title specifies a title of the item 195 * @param checked 196 * @param enabled @c EINA_TRUE to enable the item or @c EINA_FALSE to disable 197 * @return the pointer to the new item on success or @c 0 on failure 198 * 199 * @note The return value @b should @b be freed after use. 200 */ 160 201 EAPI Ewk_Context_Menu_Item *ewk_context_menu_item_new(Ewk_Context_Menu_Item_Type type, Ewk_Context_Menu_Action action, Ewk_Context_Menu *submenu, const char *title, Eina_Bool checked, Eina_Bool enabled); 202 203 /** 204 * Destroys the item of the context menu object. 205 * 206 * @param item the item to destroy 207 * 208 * @see ewk_context_menu_destroy 209 * @see ewk_context_menu_unref 210 */ 161 211 EAPI void ewk_context_menu_item_free(Ewk_Context_Menu_Item *item); 212 213 /** 214 * Selects the item from the context menu object. 215 * 216 * @param menu the context menu object 217 * @param item the item is selected 218 * @return @c EINA_TRUE on success or @c EINA_FALSE on failure 219 */ 162 220 EAPI Eina_Bool ewk_context_menu_item_select(Ewk_Context_Menu *menu, Ewk_Context_Menu_Item *item); 221 222 /** 223 * Gets type of the item. 224 * 225 * @param o the item to get the type 226 * @return type of the item on success or @c EWK_ACTION_TYPE on failure 227 * 228 * @see ewk_context_menu_item_type_set 229 */ 163 230 EAPI Ewk_Context_Menu_Item_Type ewk_context_menu_item_type_get(Ewk_Context_Menu_Item *o); 231 232 /** 233 * Sets the type of item. 234 * 235 * @param o the item to set the type 236 * @param type a new type for the item object 237 * @return @c EINA_TRUE on success, or @c EINA_FALSE on failure 238 * 239 * @see ewk_context_menu_item_type_get 240 */ 164 241 EAPI Eina_Bool ewk_context_menu_item_type_set(Ewk_Context_Menu_Item *o, Ewk_Context_Menu_Item_Type type); 242 243 /** 244 * Gets an action of the item. 245 * 246 * @param o the item to get the action 247 * @return an action of the item on success or @c EWK_CONTEXT_MENU_ITEM_TAG_NO_ACTION on failure 248 * 249 * @see ewk_context_menu_item_action_set 250 */ 165 251 EAPI Ewk_Context_Menu_Action ewk_context_menu_item_action_get(Ewk_Context_Menu_Item *o); 252 253 /** 254 * Sets an action of the item. 255 * 256 * @param o the item to set the action 257 * @param action a new action for the item object 258 * @return @c EINA_TRUE on success, or @c EINA_FALSE on failure 259 * 260 * @see ewk_context_menu_item_action_get 261 */ 166 262 EAPI Eina_Bool ewk_context_menu_item_action_set(Ewk_Context_Menu_Item *o, Ewk_Context_Menu_Action action); 263 264 /** 265 * Gets a title of the item. 266 * 267 * @param o the item to get the title 268 * @return a title of the item on success, or @c 0 on failure 269 * 270 * @see ewk_context_menu_item_title_set 271 */ 167 272 EAPI const char *ewk_context_menu_item_title_get(Ewk_Context_Menu_Item *o); 273 274 /** 275 * Sets a title of the item. 276 * 277 * @param o the item to set the title 278 * @param title a new title for the item object 279 * @return a new title of the item on success or @c 0 on failure 280 * 281 * @see ewk_context_menu_item_title_get 282 */ 168 283 EAPI const char *ewk_context_menu_item_title_set(Ewk_Context_Menu_Item *o, const char *title); 284 169 285 EAPI Eina_Bool ewk_context_menu_item_checked_get(Ewk_Context_Menu_Item *o); 170 286 EAPI Eina_Bool ewk_context_menu_item_checked_set(Ewk_Context_Menu_Item *o, Eina_Bool checked); 287 288 /** 289 * Gets if the item is enabled. 290 * 291 * @param o the item to get enabled state 292 * @return @c EINA_TRUE if it's enabled, @c EINA_FALSE if not or on failure 293 * 294 * @see ewk_context_menu_item_enabled_set 295 */ 171 296 EAPI Eina_Bool ewk_context_menu_item_enabled_get(Ewk_Context_Menu_Item *o); 297 298 /** 299 * Enables/disables the item. 300 * 301 * @param o the item to enable/disable 302 * @param enabled @c EINA_TRUE to enable the item or @c EINA_FALSE to disable 303 * @return @c EINA_TRUE on success, or @c EINA_FALSE on failure 304 * 305 * @see ewk_context_menu_item_enabled_get 306 */ 172 307 EAPI Eina_Bool ewk_context_menu_item_enabled_set(Ewk_Context_Menu_Item *o, Eina_Bool enabled); 173 308 -
trunk/Source/WebKit/efl/ewk/ewk_cookies.cpp
r91972 r92473 37 37 38 38 39 /**40 * Sets the path where the cookies are going to be stored. Use @c NULL for keep41 * them just in memory.42 *43 * @param filename path to the cookies.txt file.44 *45 * @return @c EINA_FALSE if it wasn't possible to create the cookie jar,46 * @c EINA_FALSE otherwise.47 */48 39 Eina_Bool ewk_cookies_file_set(const char *filename) 49 40 { … … 74 65 } 75 66 76 /**77 * Clears all the cookies from the cookie jar.78 */79 67 void ewk_cookies_clear(void) 80 68 { … … 92 80 } 93 81 94 /**95 * Returns a list of cookies in the cookie jar.96 *97 * @return an @c Eina_List with all the cookies in the cookie jar.98 */99 82 Eina_List *ewk_cookies_get_all(void) 100 83 { … … 124 107 } 125 108 126 /**127 * Deletes a cookie from the cookie jar.128 *129 * Note that the fields name, value, domain and path are used to match this130 * cookie in the cookie jar.131 *132 * @param cookie an @c Ewk_Cookie that has the info relative to that cookie.133 */134 109 void ewk_cookies_cookie_del(Ewk_Cookie *cookie) 135 110 { … … 156 131 } 157 132 158 /**159 * Frees the memory used by a cookie.160 *161 * @param cookie the Ewk_Cookie struct that will be freed.162 */163 133 void ewk_cookies_cookie_free(Ewk_Cookie *cookie) 164 134 { … … 173 143 } 174 144 175 /**176 * Sets the cookies accept policy.177 *178 * @param p the acceptance policy179 * @see Ewk_Cookie_Policy180 */181 145 void ewk_cookies_policy_set(Ewk_Cookie_Policy p) 182 146 { -
trunk/Source/WebKit/efl/ewk/ewk_cookies.h
r84771 r92473 75 75 /************************** Exported functions ***********************/ 76 76 77 /** 78 * Sets the path where the cookies are going to be stored. 79 * 80 * @param filename path to the cookies.txt file, use @c 0 for keep 81 * cookies just in memory. 82 * 83 * @return @c EINA_FALSE if it wasn't possible to create the cookie jar, 84 * @c EINA_TRUE otherwise. 85 */ 77 86 EAPI Eina_Bool ewk_cookies_file_set(const char *filename); 87 88 /** 89 * Clears all the cookies from the cookie jar. 90 */ 78 91 EAPI void ewk_cookies_clear(void); 92 93 /** 94 * Returns a list of cookies in the cookie jar. 95 * 96 * @return an @c Eina_List with all the cookies in the cookie jar 97 */ 79 98 EAPI Eina_List* ewk_cookies_get_all(void); 99 100 /** 101 * Deletes a cookie from the cookie jar. 102 * 103 * Note that the fields name, value, domain and path are used to match this 104 * cookie in the cookie jar. 105 * 106 * @param cookie an @c Ewk_Cookie that has the info relative to that cookie 107 */ 80 108 EAPI void ewk_cookies_cookie_del(Ewk_Cookie *cookie); 109 110 /** 111 * Frees the memory used by a cookie. 112 * 113 * @param cookie the Ewk_Cookie struct that will be freed 114 */ 81 115 EAPI void ewk_cookies_cookie_free(Ewk_Cookie *cookie); 116 117 /** 118 * Sets accept policy for the cookies. 119 * 120 * @param p the acceptance policy 121 * 122 * @see Ewk_Cookie_Policy 123 */ 82 124 EAPI void ewk_cookies_policy_set(Ewk_Cookie_Policy p); 83 125 EAPI Ewk_Cookie_Policy ewk_cookies_policy_get(void); -
trunk/Source/WebKit/efl/ewk/ewk_frame.cpp
r92039 r92473 287 287 } 288 288 289 /**290 * Retrieves the ewk_view object that owns this frame.291 *292 * @param o frame object to get view object293 *294 * @return view object or @c 0 on failure295 */296 289 Evas_Object *ewk_frame_view_get(const Evas_Object *o) 297 290 { … … 300 293 } 301 294 302 /**303 * Returns a new iterator over all direct children frames.304 *305 * Keep frame object intact while iteration happens otherwise frame306 * may be destroyed while iterated.307 *308 * Iteration results are Evas_Object*, so give eina_iterator_next() a309 * pointer to it.310 *311 * Returned iterator should be freed by eina_iterator_free().312 *313 * @param o frame object to create the iterator314 *315 * @return a newly allocated iterator on sucess, or @c 0 if not possible to316 * create the iterator317 */318 295 Eina_Iterator *ewk_frame_children_iterator_new(Evas_Object *o) 319 296 { … … 333 310 } 334 311 335 /**336 * Finds a child frame by its name, recursively.337 *338 * For pre-defined names, returns @a o if @a name is "_self" or339 * "_current", returns @a o's parent frame if @a name is "_parent",340 * and returns the main frame if @a name is "_top". Also returns @a o341 * if it is the main frame and @a name is either "_parent" or342 * "_top". For other names, this function returns the first frame that343 * matches @a name. This function searches @a o and its descendents344 * first, then @a o's parent and its children moving up the hierarchy345 * until a match is found. If no match is found in @a o's hierarchy,346 * this function will search for a matching frame in other main frame347 * hierarchies.348 *349 * @param o frame object to find a child frame350 * @param name child frame name351 *352 * @return child frame of the given frame, or @c 0 if the the child wasn't found353 */354 312 Evas_Object *ewk_frame_child_find(Evas_Object *o, const char *name) 355 313 { … … 361 319 } 362 320 363 /**364 * Asks the main frame to load the given URI.365 *366 * @param o frame object to load uri367 * @param uri uniform resource identifier to load368 *369 * @return @c EINA_TRUE on success, or @c EINA_FALSE on failure370 */371 321 Eina_Bool ewk_frame_uri_set(Evas_Object *o, const char *uri) 372 322 { … … 379 329 } 380 330 381 /**382 * Gets the uri of this frame.383 *384 * It returns an internal string and should not385 * be modified. The string is guaranteed to be stringshared.386 *387 * @param o frame object to get uri388 *389 * @return frame uri on success or @c 0 on failure390 */391 331 const char *ewk_frame_uri_get(const Evas_Object *o) 392 332 { … … 395 335 } 396 336 397 /**398 * Gets the title of this frame.399 *400 * It returns an internal string and should not401 * be modified. The string is guaranteed to be stringshared.402 *403 * @param o frame object to get title404 *405 * @return frame title on success or @c 0 on failure406 */407 337 const char *ewk_frame_title_get(const Evas_Object *o) 408 338 { … … 411 341 } 412 342 413 /**414 * Gets the name of this frame.415 *416 * It returns an internal string and should not417 * be modified. The string is guaranteed to be stringshared.418 *419 * @param o frame object to get name420 *421 * @return frame name on success or @c 0 on failure422 */423 343 const char *ewk_frame_name_get(const Evas_Object *o) 424 344 { … … 439 359 } 440 360 441 /**442 * Gets last known contents size.443 *444 * @param o frame object to get contents size445 * @param w pointer to store contents size width, may be @c 0446 * @param h pointer to store contents size height, may be @c 0447 *448 * @return @c EINA_TRUE on success or @c EINA_FALSE on failure and449 * @a w and @a h will be zeroed450 */451 361 Eina_Bool ewk_frame_contents_size_get(const Evas_Object *o, Evas_Coord *w, Evas_Coord *h) 452 362 { … … 494 404 } 495 405 496 /**497 * Requests loading the given contents in this frame.498 *499 * @param o frame object to load document500 * @param contents what to load into frame501 * @param contents_size size of @a contents (in bytes),502 * if @c 0 is given, length of @a contents is used503 * @param mime_type type of @a contents data, if @c 0 is given "text/html" is assumed504 * @param encoding encoding for @a contents data, if @c 0 is given "UTF-8" is assumed505 * @param base_uri base uri to use for relative resources, may be @c 0,506 * if provided @b must be an absolute uri507 *508 * @return @c EINA_TRUE on successful request, @c EINA_FALSE on errors509 */510 406 Eina_Bool ewk_frame_contents_set(Evas_Object *o, const char *contents, size_t contents_size, const char *mime_type, const char *encoding, const char *base_uri) 511 407 { … … 517 413 } 518 414 519 /**520 * Requests loading alternative contents for unreachable URI in this frame.521 *522 * This is similar to ewk_frame_contents_set(), but is used when some523 * URI was failed to load, using the provided content instead. The main524 * difference is that back-forward navigation list is not changed.525 *526 * @param o frame object to load alternative content527 * @param contents what to load into frame, must @b not be @c 0528 * @param contents_size size of @a contents (in bytes),529 * if @c 0 is given, length of @a contents is used530 * @param mime_type type of @a contents data, if @c 0 is given "text/html" is assumed531 * @param encoding encoding used for @a contents data, if @c 0 is given "UTF-8" is assumed532 * @param base_uri base URI to use for relative resources, may be @c 0,533 * if provided must be an absolute uri534 * @param unreachable_uri the URI that failed to load and is getting the535 * alternative representation536 *537 * @return @c EINA_TRUE on successful request, @c EINA_FALSE on errors538 */539 415 Eina_Bool ewk_frame_contents_alternate_set(Evas_Object *o, const char *contents, size_t contents_size, const char *mime_type, const char *encoding, const char *base_uri, const char *unreachable_uri) 540 416 { … … 548 424 } 549 425 550 /**551 * Requests execution of the given script.552 *553 * @param o frame object to execute script554 * @param script Java Script to execute555 *556 * @return @c EINA_TRUE if request was done, @c EINA_FALSE on errors557 */558 426 Eina_Bool ewk_frame_script_execute(Evas_Object *o, const char *script) 559 427 { … … 565 433 } 566 434 567 /**568 * Queries if the frame is editable.569 *570 * @param o the frame object to query editable state571 *572 * @return @c EINA_TRUE if the frame is editable, @c EINA_FALSE otherwise573 */574 435 Eina_Bool ewk_frame_editable_get(const Evas_Object *o) 575 436 { … … 579 440 } 580 441 581 /**582 * Sets editable state for frame.583 *584 * @param o the frame object to set editable state585 * @param editable a new state to set586 *587 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise588 */589 442 Eina_Bool ewk_frame_editable_set(Evas_Object *o, Eina_Bool editable) 590 443 { … … 599 452 } 600 453 601 /**602 * Gets the copy of the selected text.603 *604 * The returned string @b should be freed after use.605 *606 * @param o the frame object to get selected text607 *608 * @return a newly allocated string or @c 0 if nothing is selected or on failure609 */610 454 char *ewk_frame_selection_get(const Evas_Object *o) 611 455 { … … 618 462 } 619 463 620 /**621 * Searches the given string in a document.622 *623 * @param o frame object where to search the text624 * @param string reference string to search625 * @param case_sensitive if search should be case sensitive or not626 * @param forward if search is from cursor and on or backwards627 * @param wrap if search should wrap at the end628 *629 * @return @c EINA_TRUE if the given string was found, @c EINA_FALSE if not or failure630 */631 464 Eina_Bool ewk_frame_text_search(const Evas_Object *o, const char *string, Eina_Bool case_sensitive, Eina_Bool forward, Eina_Bool wrap) 632 465 { … … 638 471 } 639 472 640 /**641 * Marks matches the given string in a document.642 *643 * @param o frame object where to search text644 * @param string reference string to match645 * @param case_sensitive if match should be case sensitive or not646 * @param highlight if matches should be highlighted647 * @param limit maximum amount of matches, or zero to unlimited648 *649 * @return number of matched @a string650 */651 473 unsigned int ewk_frame_text_matches_mark(Evas_Object *o, const char *string, Eina_Bool case_sensitive, Eina_Bool highlight, unsigned int limit) 652 474 { … … 659 481 } 660 482 661 /**662 * Unmarks all marked matches in a document.663 * Reverses the effect of ewk_frame_text_matches_mark().664 *665 * @param o frame object where to unmark matches666 *667 * @return @c EINA_TRUE on success, @c EINA_FALSE on failure668 */669 483 Eina_Bool ewk_frame_text_matches_unmark_all(Evas_Object *o) 670 484 { … … 692 506 } 693 507 694 /**695 * Returns whether matches marked with ewk_frame_text_matches_mark() are highlighted.696 *697 * @param o frame object to query if matches are highlighted or not698 *699 * @return @c EINA_TRUE if matches are highlighted, @c EINA_FALSE otherwise700 */701 508 Eina_Bool ewk_frame_text_matches_highlight_get(const Evas_Object *o) 702 509 { … … 722 529 } 723 530 724 /**725 * Returns the position of the n-th matched text in the frame.726 *727 * @param o frame object where matches are marked728 * @param n index of element729 * @param x the pointer to store the horizontal position of @a n matched text, may be @c 0730 * @param y the pointer to store the vertical position of @a n matched text, may be @c 0731 *732 * @return @c EINA_TRUE on success, @c EINA_FALSE when no matches were found or733 * @a n is bigger than search results or on failure734 */735 531 Eina_Bool ewk_frame_text_matches_nth_pos_get(Evas_Object *o, size_t n, int *x, int *y) 736 532 { … … 755 551 } 756 552 757 /**758 * Asks frame to stop loading.759 *760 * @param o frame object to stop loading761 *762 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise763 */764 553 Eina_Bool ewk_frame_stop(Evas_Object *o) 765 554 { … … 770 559 } 771 560 772 /**773 * Asks frame to reload current document.774 *775 * @param o frame object to reload current document776 *777 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise778 *779 * @see ewk_frame_reload_full()780 */781 561 Eina_Bool ewk_frame_reload(Evas_Object *o) 782 562 { … … 787 567 } 788 568 789 /**790 * Asks frame to fully reload current document, using no previous caches.791 *792 * @param o frame object to reload current document793 *794 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise795 */796 569 Eina_Bool ewk_frame_reload_full(Evas_Object *o) 797 570 { … … 802 575 } 803 576 804 /**805 * Asks the frame to navigate back in the history.806 *807 * @param o frame object to navigate back808 *809 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise810 *811 * @see ewk_frame_navigate()812 */813 577 Eina_Bool ewk_frame_back(Evas_Object *o) 814 578 { … … 816 580 } 817 581 818 /**819 * Asks frame to navigate forward in the history.820 *821 * @param o frame object to navigate forward822 *823 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise824 *825 * @see ewk_frame_navigate()826 */827 582 Eina_Bool ewk_frame_forward(Evas_Object *o) 828 583 { … … 830 585 } 831 586 832 /**833 * Navigates back or forward in the history.834 *835 * @param o frame object to navigate836 * @param steps if positive navigates that amount forwards, if negative837 * does backwards838 *839 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise840 */841 587 Eina_Bool ewk_frame_navigate(Evas_Object *o, int steps) 842 588 { … … 850 596 } 851 597 852 /**853 * Queries if it's possible to navigate backwards one item in the history.854 *855 * @param o frame object to query if backward navigation is possible856 *857 * @return @c EINA_TRUE if it's possible to navigate backwards one item in the history, @c EINA_FALSE otherwise858 *859 * @see ewk_frame_navigate_possible()860 */861 598 Eina_Bool ewk_frame_back_possible(Evas_Object *o) 862 599 { … … 864 601 } 865 602 866 /**867 * Queries if it's possible to navigate forwards one item in the history.868 *869 * @param o frame object to query if forward navigation is possible870 *871 * @return @c EINA_TRUE if it's possible to navigate forwards in the history, @c EINA_FALSE otherwise872 *873 * @see ewk_frame_navigate_possible()874 */875 603 Eina_Bool ewk_frame_forward_possible(Evas_Object *o) 876 604 { … … 878 606 } 879 607 880 /**881 * Queries if it's possible to navigate given @a steps in the history.882 *883 * @param o frame object to query if is possible to navigate @a steps in the history884 * @param steps positive value navigates that amount forwards, negative value885 * does backwards886 *887 * @return @c EINA_TRUE if it's possible to navigate @a steps in the history, @c EINA_FALSE otherwise888 */889 608 Eina_Bool ewk_frame_navigate_possible(Evas_Object *o, int steps) 890 609 { … … 895 614 } 896 615 897 /**898 * Gets the current zoom level used by this frame.899 *900 * @param o frame object to get zoom level901 *902 * @return zoom level for the frame or @c -1.0 on failure903 */904 616 float ewk_frame_zoom_get(const Evas_Object *o) 905 617 { … … 912 624 } 913 625 914 /**915 * Sets the current zoom level used by this frame.916 *917 * @param o frame object to change zoom level918 * @param zoom a new zoom level919 *920 * @return @c EINA_TRUE on success or @c EINA_FALSE on failure921 *922 * @see ewk_frame_zoom_text_only_set()923 */924 626 Eina_Bool ewk_frame_zoom_set(Evas_Object *o, float zoom) 925 627 { … … 933 635 } 934 636 935 /**936 * Queries if zoom level just applies to text only and not other elements.937 *938 * @param o frame to query zoom level for text only939 *940 * @return @c EINA_TRUE if zoom level is applied to text only, @c EINA_FALSE if not or on failure941 */942 637 Eina_Bool ewk_frame_zoom_text_only_get(const Evas_Object *o) 943 638 { … … 946 641 } 947 642 948 /**949 * Sets if zoom level just applies to text only and not other elements.950 *951 * @param o frame to apply zoom level for text only952 * @param setting @c EINA_TRUE if zoom level should be applied to text only, @c EINA_FALSE if not953 *954 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise955 */956 643 Eina_Bool ewk_frame_zoom_text_only_set(Evas_Object *o, Eina_Bool setting) 957 644 { … … 970 657 } 971 658 972 /**973 * Frees hit test instance created by ewk_frame_hit_test_new().974 *975 * @param hit_test instance976 */977 659 void ewk_frame_hit_test_free(Ewk_Hit_Test *hit_test) 978 660 { … … 988 670 } 989 671 990 /**991 * Creates a new hit test for the given frame and point.992 *993 * The returned object should be freed by ewk_frame_hit_test_free().994 *995 * @param o frame object to do hit test on996 * @param x the horizontal position to query997 * @param y the vertical position to query998 *999 * @return a newly allocated hit test on success, @c 0 otherwise1000 */1001 672 Ewk_Hit_Test *ewk_frame_hit_test_new(const Evas_Object *o, int x, int y) 1002 673 { … … 1071 742 } 1072 743 1073 /**1074 * Sets a relative scroll of the given frame.1075 *1076 * This function does scroll @a dx and @a dy pixels1077 * from the current position of scroll.1078 *1079 * @param o frame object to scroll1080 * @param dx horizontal offset to scroll1081 * @param dy vertical offset to scroll1082 *1083 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise1084 */1085 744 Eina_Bool 1086 745 ewk_frame_scroll_add(Evas_Object *o, int dx, int dy) … … 1093 752 } 1094 753 1095 /**1096 * Sets an absolute scroll of the given frame.1097 *1098 * Both values are from zero to the contents size minus the viewport1099 * size. See ewk_frame_scroll_size_get().1100 *1101 * @param o frame object to scroll1102 * @param x horizontal position to scroll1103 * @param y vertical position to scroll1104 *1105 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise1106 */1107 754 Eina_Bool 1108 755 ewk_frame_scroll_set(Evas_Object *o, int x, int y) … … 1115 762 } 1116 763 1117 /**1118 * Gets the possible scroll size of the given frame.1119 *1120 * Possible scroll size is contents size minus the viewport1121 * size. It's the last allowed value for ewk_frame_scroll_set()1122 *1123 * @param o frame object to get scroll size1124 * @param w the pointer to store the horizontal size that is possible to scroll,1125 * may be @c 01126 * @param h the pointer to store the vertical size that is possible to scroll,1127 * may be @c 01128 *1129 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise and1130 * values are zeroed1131 */1132 764 Eina_Bool 1133 765 ewk_frame_scroll_size_get(const Evas_Object *o, int *w, int *h) … … 1148 780 } 1149 781 1150 /**1151 * Gets the current scroll position of given frame.1152 *1153 * @param o frame object to get the current scroll position1154 * @param x the pointer to store the horizontal position, may be @c 01155 * @param y the pointer to store the vertical position. may be @c 01156 *1157 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise and1158 * values are zeroed.1159 */1160 782 Eina_Bool 1161 783 ewk_frame_scroll_pos_get(const Evas_Object *o, int *x, int *y) … … 1176 798 } 1177 799 1178 /**1179 * Gets the visible content geometry of the frame.1180 *1181 * @param o frame object to query visible content geometry1182 * @param include_scrollbars whenever to include scrollbars size1183 * @param x the pointer to store the horizontal position, may be @c 01184 * @param y the pointer to store the vertical position, may be @c 01185 * @param w the pointer to store width, may be @c 01186 * @param h the pointer to store height, may be @c 01187 *1188 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise and1189 * values are zeroed1190 */1191 800 Eina_Bool ewk_frame_visible_content_geometry_get(const Evas_Object *o, Eina_Bool include_scrollbars, int *x, int *y, int *w, int *h) 1192 801 { … … 1214 823 } 1215 824 1216 /**1217 * Queries if the frame should be repainted completely.1218 *1219 * Function tells if dirty areas should be repainted1220 * even if they are out of the screen.1221 *1222 * @param o frame object to query if the frame should be repainted completely1223 *1224 * @return @c EINA_TRUE if any dirty areas should be repainted, @c EINA_FALSE1225 * otherwise1226 */1227 825 Eina_Bool ewk_frame_paint_full_get(const Evas_Object *o) 1228 826 { … … 1233 831 } 1234 832 1235 /**1236 * Sets if the frame should be repainted completely.1237 *1238 * Function sets if dirty areas should be repainted1239 * even if they are out of the screen.1240 *1241 * @param o frame object to set if the frame should be repainted completely1242 * @param flag @c EINA_TRUE to repaint the frame completely,1243 * @c EINA_FALSE if not1244 */1245 833 void ewk_frame_paint_full_set(Evas_Object *o, Eina_Bool flag) 1246 834 { … … 1251 839 } 1252 840 1253 /**1254 * Feeds the focus in event to the frame.1255 *1256 * @param o frame object to feed focus1257 *1258 * @return @c EINA_TRUE if the focus was handled, @c EINA_FALSE otherwise1259 */1260 841 Eina_Bool ewk_frame_feed_focus_in(Evas_Object *o) 1261 842 { … … 1267 848 } 1268 849 1269 /**1270 * Feeds the focus out event to the frame.1271 *1272 * @param o frame object to remove focus1273 *1274 * @return @c EINA_FALSE since the feature is not implemented1275 */1276 850 Eina_Bool ewk_frame_feed_focus_out(Evas_Object *o) 1277 851 { … … 1281 855 } 1282 856 1283 /**1284 * Feeds the mouse wheel event to the frame.1285 *1286 * @param o frame object to feed the mouse wheel event1287 * @param ev the mouse wheel event1288 *1289 * @return @c EINA_TRUE if the mouse wheel event was handled, @c EINA_FALSE otherwise1290 */1291 857 Eina_Bool ewk_frame_feed_mouse_wheel(Evas_Object *o, const Evas_Event_Mouse_Wheel *ev) 1292 858 { … … 1304 870 } 1305 871 1306 /**1307 * Feeds the mouse down event to the frame.1308 *1309 * @param o frame object to feed the mouse down event1310 * @param ev the mouse down event1311 *1312 * @return @c EINA_TRUE if the mouse down event was handled, @c EINA_FALSE otherwise1313 */1314 872 Eina_Bool ewk_frame_feed_mouse_down(Evas_Object *o, const Evas_Event_Mouse_Down *ev) 1315 873 { … … 1330 888 } 1331 889 1332 /**1333 * Feeds the mouse up event to the frame.1334 *1335 * @param o frame object to feed the mouse up event1336 * @param ev the mouse up event1337 *1338 * @return @c EINA_TRUE if the mouse up event was handled, @c EINA_FALSE otherwise1339 */1340 890 Eina_Bool ewk_frame_feed_mouse_up(Evas_Object *o, const Evas_Event_Mouse_Up *ev) 1341 891 { … … 1356 906 } 1357 907 1358 /**1359 * Feeds the mouse move event to the frame.1360 *1361 * @param o frame object to feed the mouse move event1362 * @param ev the mouse move event1363 *1364 * @return @c EINA_TRUE if the mouse move event was handled, @c EINA_FALSE otherwise1365 */1366 908 Eina_Bool ewk_frame_feed_mouse_move(Evas_Object *o, const Evas_Event_Mouse_Move *ev) 1367 909 { … … 1383 925 } 1384 926 1385 /**1386 * Feeds the touch event to the frame.1387 *1388 * @param o frame object to feed touch event1389 * @param action the action of touch event1390 * @param points a list of points (Ewk_Touch_Point) to process1391 * @param metaState DEPRECTAED, not supported for now1392 *1393 * @return @c EINA_TRUE if touch event was handled, @c EINA_FALSE otherwise1394 */1395 927 Eina_Bool ewk_frame_feed_touch_event(Evas_Object *o, Ewk_Touch_Event_Type action, Eina_List *points, int metaState) 1396 928 { … … 1498 1030 } 1499 1031 1500 /**1501 * Feeds the keyboard key down event to the frame.1502 *1503 * @param o frame object to feed event1504 * @param ev keyboard key down event1505 *1506 * @return @c EINA_TRUE if the key down event was handled, @c EINA_FALSE otherwise1507 */1508 1032 Eina_Bool ewk_frame_feed_key_down(Evas_Object *o, const Evas_Event_Key_Down *ev) 1509 1033 { … … 1522 1046 } 1523 1047 1524 /**1525 * Feeds the keyboard key up event to the frame.1526 *1527 * @param o frame object to feed event1528 * @param ev keyboard key up event1529 *1530 * @return @c EINA_TRUE if the key up event was handled, @c EINA_FALSE otherwise1531 */1532 1048 Eina_Bool ewk_frame_feed_key_up(Evas_Object *o, const Evas_Event_Key_Up *ev) 1533 1049 { … … 1543 1059 } 1544 1060 1545 /**1546 * Returns current text selection type.1547 *1548 * @param o a frame object to check selection type1549 * @return Current text selection type on success or no selection otherwise1550 */1551 1061 Ewk_Text_Selection_Type ewk_frame_text_selection_type_get(Evas_Object *o) 1552 1062 { -
trunk/Source/WebKit/efl/ewk/ewk_frame.h
r92039 r92473 173 173 } Ewk_Text_Selection_Type; 174 174 175 /** 176 * Retrieves the ewk_view object that owns this frame. 177 * 178 * @param o frame object to get view object 179 * 180 * @return view object or @c 0 on failure 181 */ 175 182 EAPI Evas_Object *ewk_frame_view_get(const Evas_Object *o); 176 183 184 /** 185 * Returns a new iterator over all direct children frames. 186 * 187 * Keep frame object intact while iteration happens otherwise frame 188 * may be destroyed while iterated. 189 * 190 * Iteration results are Evas_Object*, so give eina_iterator_next() a 191 * pointer to it. 192 * 193 * Returned iterator should be freed by eina_iterator_free(). 194 * 195 * @param o frame object to create the iterator 196 * 197 * @return a newly allocated iterator on sucess, or @c 0 if not possible to 198 * create the iterator 199 */ 177 200 EAPI Eina_Iterator *ewk_frame_children_iterator_new(Evas_Object *o); 201 202 /** 203 * Finds a child frame by its name, recursively. 204 * 205 * For pre-defined names, returns @a o if @a name is "_self" or 206 * "_current", returns @a o's parent frame if @a name is "_parent", 207 * and returns the main frame if @a name is "_top". Also returns @a o 208 * if it is the main frame and @a name is either "_parent" or 209 * "_top". For other names, this function returns the first frame that 210 * matches @a name. This function searches @a o and its descendents 211 * first, then @a o's parent and its children moving up the hierarchy 212 * until a match is found. If no match is found in @a o's hierarchy, 213 * this function will search for a matching frame in other main frame 214 * hierarchies. 215 * 216 * @param o frame object to find a child frame 217 * @param name child frame name 218 * 219 * @return child frame of the given frame, or @c 0 if the the child wasn't found 220 */ 178 221 EAPI Evas_Object *ewk_frame_child_find(Evas_Object *o, const char *name); 179 222 223 /** 224 * Asks the main frame to load the given URI. 225 * 226 * @param o frame object to load uri 227 * @param uri uniform resource identifier to load 228 * 229 * @return @c EINA_TRUE on success, or @c EINA_FALSE on failure 230 */ 180 231 EAPI Eina_Bool ewk_frame_uri_set(Evas_Object *o, const char *uri); 232 233 /** 234 * Gets the uri of this frame. 235 * 236 * It returns an internal string and should not 237 * be modified. The string is guaranteed to be stringshared. 238 * 239 * @param o frame object to get uri 240 * 241 * @return frame uri on success or @c 0 on failure 242 */ 181 243 EAPI const char *ewk_frame_uri_get(const Evas_Object *o); 244 245 /** 246 * Gets the title of this frame. 247 * 248 * It returns an internal string and should not 249 * be modified. The string is guaranteed to be stringshared. 250 * 251 * @param o frame object to get title 252 * 253 * @return frame title on success or @c 0 on failure 254 */ 182 255 EAPI const char *ewk_frame_title_get(const Evas_Object *o); 256 257 /** 258 * Gets the name of this frame. 259 * 260 * It returns an internal string and should not 261 * be modified. The string is guaranteed to be stringshared. 262 * 263 * @param o frame object to get name 264 * 265 * @return frame name on success or @c 0 on failure 266 */ 183 267 EAPI const char *ewk_frame_name_get(const Evas_Object *o); 268 269 /** 270 * Gets last known contents size. 271 * 272 * @param o frame object to get contents size 273 * @param w pointer to store contents size width, may be @c 0 274 * @param h pointer to store contents size height, may be @c 0 275 * 276 * @return @c EINA_TRUE on success or @c EINA_FALSE on failure and 277 * @a w and @a h will be zeroed 278 */ 184 279 EAPI Eina_Bool ewk_frame_contents_size_get(const Evas_Object *o, Evas_Coord *w, Evas_Coord *h); 185 280 281 /** 282 * Requests loading the given contents in this frame. 283 * 284 * @param o frame object to load document 285 * @param contents what to load into frame 286 * @param contents_size size of @a contents (in bytes), 287 * if @c 0 is given, length of @a contents is used 288 * @param mime_type type of @a contents data, if @c 0 is given "text/html" is assumed 289 * @param encoding encoding for @a contents data, if @c 0 is given "UTF-8" is assumed 290 * @param base_uri base uri to use for relative resources, may be @c 0, 291 * if provided @b must be an absolute uri 292 * 293 * @return @c EINA_TRUE on successful request, @c EINA_FALSE on errors 294 */ 186 295 EAPI Eina_Bool ewk_frame_contents_set(Evas_Object *o, const char *contents, size_t contents_size, const char *mime_type, const char *encoding, const char *base_uri); 296 297 /** 298 * Requests loading alternative contents for unreachable URI in this frame. 299 * 300 * This is similar to ewk_frame_contents_set(), but is used when some 301 * URI was failed to load, using the provided content instead. The main 302 * difference is that back-forward navigation list is not changed. 303 * 304 * @param o frame object to load alternative content 305 * @param contents what to load into frame, must @b not be @c 0 306 * @param contents_size size of @a contents (in bytes), 307 * if @c 0 is given, length of @a contents is used 308 * @param mime_type type of @a contents data, if @c 0 is given "text/html" is assumed 309 * @param encoding encoding used for @a contents data, if @c 0 is given "UTF-8" is assumed 310 * @param base_uri base URI to use for relative resources, may be @c 0, 311 * if provided must be an absolute uri 312 * @param unreachable_uri the URI that failed to load and is getting the 313 * alternative representation 314 * 315 * @return @c EINA_TRUE on successful request, @c EINA_FALSE on errors 316 */ 187 317 EAPI Eina_Bool ewk_frame_contents_alternate_set(Evas_Object *o, const char *contents, size_t contents_size, const char *mime_type, const char *encoding, const char *base_uri, const char *unreachable_uri); 188 318 319 /** 320 * Requests execution of the given script. 321 * 322 * @param o frame object to execute script 323 * @param script Java Script to execute 324 * 325 * @return @c EINA_TRUE if request was done, @c EINA_FALSE on errors 326 */ 189 327 EAPI Eina_Bool ewk_frame_script_execute(Evas_Object *o, const char *script); 190 328 329 /** 330 * Queries if the frame is editable. 331 * 332 * @param o the frame object to query editable state 333 * 334 * @return @c EINA_TRUE if the frame is editable, @c EINA_FALSE otherwise 335 */ 191 336 EAPI Eina_Bool ewk_frame_editable_get(const Evas_Object *o); 337 338 /** 339 * Sets editable state for frame. 340 * 341 * @param o the frame object to set editable state 342 * @param editable a new state to set 343 * 344 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise 345 */ 192 346 EAPI Eina_Bool ewk_frame_editable_set(Evas_Object *o, Eina_Bool editable); 193 347 348 /** 349 * Gets the copy of the selected text. 350 * 351 * The returned string @b should be freed after use. 352 * 353 * @param o the frame object to get selected text 354 * 355 * @return a newly allocated string or @c 0 if nothing is selected or on failure 356 */ 194 357 EAPI char *ewk_frame_selection_get(const Evas_Object *o); 195 358 359 /** 360 * Searches the given string in a document. 361 * 362 * @param o frame object where to search the text 363 * @param string reference string to search 364 * @param case_sensitive if search should be case sensitive or not 365 * @param forward if search is from cursor and on or backwards 366 * @param wrap if search should wrap at the end 367 * 368 * @return @c EINA_TRUE if the given string was found, @c EINA_FALSE if not or failure 369 */ 196 370 EAPI Eina_Bool ewk_frame_text_search(const Evas_Object *o, const char *string, Eina_Bool case_sensitive, Eina_Bool forward, Eina_Bool wrap); 197 371 372 /** 373 * Marks matches the given string in a document. 374 * 375 * @param o frame object where to search text 376 * @param string reference string to match 377 * @param case_sensitive if match should be case sensitive or not 378 * @param highlight if matches should be highlighted 379 * @param limit maximum amount of matches, or zero to unlimited 380 * 381 * @return number of matched @a string 382 */ 198 383 EAPI unsigned int ewk_frame_text_matches_mark(Evas_Object *o, const char *string, Eina_Bool case_sensitive, Eina_Bool highlight, unsigned int limit); 199 384 EAPI Eina_Bool ewk_frame_text_matches_unmark_all(Evas_Object *o); 385 386 /** 387 * Unmarks all marked matches in a document. 388 * Reverses the effect of ewk_frame_text_matches_mark(). 389 * 390 * @param o frame object where to unmark matches 391 * 392 * @return @c EINA_TRUE on success, @c EINA_FALSE on failure 393 */ 200 394 EAPI Eina_Bool ewk_frame_text_matches_highlight_set(Evas_Object *o, Eina_Bool highlight); 395 396 /** 397 * Returns whether matches marked with ewk_frame_text_matches_mark() are highlighted. 398 * 399 * @param o frame object to query if matches are highlighted or not 400 * 401 * @return @c EINA_TRUE if matches are highlighted, @c EINA_FALSE otherwise 402 */ 201 403 EAPI Eina_Bool ewk_frame_text_matches_highlight_get(const Evas_Object *o); 404 405 /** 406 * Returns the position of the n-th matched text in the frame. 407 * 408 * @param o frame object where matches are marked 409 * @param n index of element 410 * @param x the pointer to store the horizontal position of @a n matched text, may be @c 0 411 * @param y the pointer to store the vertical position of @a n matched text, may be @c 0 412 * 413 * @return @c EINA_TRUE on success, @c EINA_FALSE when no matches were found or 414 * @a n is bigger than search results or on failure 415 */ 202 416 EAPI Eina_Bool ewk_frame_text_matches_nth_pos_get(Evas_Object *o, size_t n, int *x, int *y); 203 417 418 /** 419 * Asks frame to stop loading. 420 * 421 * @param o frame object to stop loading 422 * 423 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise 424 */ 204 425 EAPI Eina_Bool ewk_frame_stop(Evas_Object *o); 426 427 /** 428 * Asks frame to reload current document. 429 * 430 * @param o frame object to reload current document 431 * 432 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise 433 * 434 * @see ewk_frame_reload_full() 435 */ 205 436 EAPI Eina_Bool ewk_frame_reload(Evas_Object *o); 437 438 /** 439 * Asks frame to fully reload current document, using no previous caches. 440 * 441 * @param o frame object to reload current document 442 * 443 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise 444 */ 206 445 EAPI Eina_Bool ewk_frame_reload_full(Evas_Object *o); 207 446 447 /** 448 * Asks the frame to navigate back in the history. 449 * 450 * @param o frame object to navigate back 451 * 452 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise 453 * 454 * @see ewk_frame_navigate() 455 */ 208 456 EAPI Eina_Bool ewk_frame_back(Evas_Object *o); 457 458 /** 459 * Asks frame to navigate forward in the history. 460 * 461 * @param o frame object to navigate forward 462 * 463 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise 464 * 465 * @see ewk_frame_navigate() 466 */ 209 467 EAPI Eina_Bool ewk_frame_forward(Evas_Object *o); 468 469 /** 470 * Navigates back or forward in the history. 471 * 472 * @param o frame object to navigate 473 * @param steps if positive navigates that amount forwards, if negative 474 * does backwards 475 * 476 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise 477 */ 210 478 EAPI Eina_Bool ewk_frame_navigate(Evas_Object *o, int steps); 211 479 480 /** 481 * Queries if it's possible to navigate backwards one item in the history. 482 * 483 * @param o frame object to query if backward navigation is possible 484 * 485 * @return @c EINA_TRUE if it's possible to navigate backwards one item in the history, @c EINA_FALSE otherwise 486 * 487 * @see ewk_frame_navigate_possible() 488 */ 212 489 EAPI Eina_Bool ewk_frame_back_possible(Evas_Object *o); 490 491 /** 492 * Queries if it's possible to navigate forwards one item in the history. 493 * 494 * @param o frame object to query if forward navigation is possible 495 * 496 * @return @c EINA_TRUE if it's possible to navigate forwards in the history, @c EINA_FALSE otherwise 497 * 498 * @see ewk_frame_navigate_possible() 499 */ 213 500 EAPI Eina_Bool ewk_frame_forward_possible(Evas_Object *o); 501 502 /** 503 * Queries if it's possible to navigate given @a steps in the history. 504 * 505 * @param o frame object to query if is possible to navigate @a steps in the history 506 * @param steps positive value navigates that amount forwards, negative value 507 * does backwards 508 * 509 * @return @c EINA_TRUE if it's possible to navigate @a steps in the history, @c EINA_FALSE otherwise 510 */ 214 511 EAPI Eina_Bool ewk_frame_navigate_possible(Evas_Object *o, int steps); 215 512 513 /** 514 * Gets the current zoom level used by this frame. 515 * 516 * @param o frame object to get zoom level 517 * 518 * @return zoom level for the frame or @c -1.0 on failure 519 */ 216 520 EAPI float ewk_frame_zoom_get(const Evas_Object *o); 521 522 /** 523 * Sets the current zoom level used by this frame. 524 * 525 * @param o frame object to change zoom level 526 * @param zoom a new zoom level 527 * 528 * @return @c EINA_TRUE on success or @c EINA_FALSE on failure 529 * 530 * @see ewk_frame_zoom_text_only_set() 531 */ 217 532 EAPI Eina_Bool ewk_frame_zoom_set(Evas_Object *o, float zoom); 533 534 /** 535 * Queries if zoom level just applies to text only and not other elements. 536 * 537 * @param o frame to query zoom level for text only 538 * 539 * @return @c EINA_TRUE if zoom level is applied to text only, @c EINA_FALSE if not or on failure 540 */ 218 541 EAPI Eina_Bool ewk_frame_zoom_text_only_get(const Evas_Object *o); 542 543 /** 544 * Sets if zoom level just applies to text only and not other elements. 545 * 546 * @param o frame to apply zoom level for text only 547 * @param setting @c EINA_TRUE if zoom level should be applied to text only, @c EINA_FALSE if not 548 * 549 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise 550 */ 219 551 EAPI Eina_Bool ewk_frame_zoom_text_only_set(Evas_Object *o, Eina_Bool setting); 220 552 553 /** 554 * Frees hit test instance created by ewk_frame_hit_test_new(). 555 * 556 * @param hit_test instance 557 */ 221 558 EAPI void ewk_frame_hit_test_free(Ewk_Hit_Test *hit_test); 559 560 /** 561 * Creates a new hit test for the given frame and point. 562 * 563 * The returned object should be freed by ewk_frame_hit_test_free(). 564 * 565 * @param o frame object to do hit test on 566 * @param x the horizontal position to query 567 * @param y the vertical position to query 568 * 569 * @return a newly allocated hit test on success, @c 0 otherwise 570 */ 222 571 EAPI Ewk_Hit_Test *ewk_frame_hit_test_new(const Evas_Object *o, int x, int y); 223 572 573 /** 574 * Sets a relative scroll of the given frame. 575 * 576 * This function does scroll @a dx and @a dy pixels 577 * from the current position of scroll. 578 * 579 * @param o frame object to scroll 580 * @param dx horizontal offset to scroll 581 * @param dy vertical offset to scroll 582 * 583 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise 584 */ 224 585 EAPI Eina_Bool ewk_frame_scroll_add(Evas_Object *o, int dx, int dy); 586 587 /** 588 * Sets an absolute scroll of the given frame. 589 * 590 * Both values are from zero to the contents size minus the viewport 591 * size. See ewk_frame_scroll_size_get(). 592 * 593 * @param o frame object to scroll 594 * @param x horizontal position to scroll 595 * @param y vertical position to scroll 596 * 597 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise 598 */ 225 599 EAPI Eina_Bool ewk_frame_scroll_set(Evas_Object *o, int x, int y); 226 600 601 /** 602 * Gets the possible scroll size of the given frame. 603 * 604 * Possible scroll size is contents size minus the viewport 605 * size. It's the last allowed value for ewk_frame_scroll_set() 606 * 607 * @param o frame object to get scroll size 608 * @param w the pointer to store the horizontal size that is possible to scroll, 609 * may be @c 0 610 * @param h the pointer to store the vertical size that is possible to scroll, 611 * may be @c 0 612 * 613 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise and 614 * values are zeroed 615 */ 227 616 EAPI Eina_Bool ewk_frame_scroll_size_get(const Evas_Object *o, int *w, int *h); 617 618 /** 619 * Gets the current scroll position of given frame. 620 * 621 * @param o frame object to get the current scroll position 622 * @param x the pointer to store the horizontal position, may be @c 0 623 * @param y the pointer to store the vertical position. may be @c 0 624 * 625 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise and 626 * values are zeroed. 627 */ 228 628 EAPI Eina_Bool ewk_frame_scroll_pos_get(const Evas_Object *o, int *x, int *y); 229 629 630 /** 631 * Gets the visible content geometry of the frame. 632 * 633 * @param o frame object to query visible content geometry 634 * @param include_scrollbars whenever to include scrollbars size 635 * @param x the pointer to store the horizontal position, may be @c 0 636 * @param y the pointer to store the vertical position, may be @c 0 637 * @param w the pointer to store width, may be @c 0 638 * @param h the pointer to store height, may be @c 0 639 * 640 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise and 641 * values are zeroed 642 */ 230 643 EAPI Eina_Bool ewk_frame_visible_content_geometry_get(const Evas_Object *o, Eina_Bool include_scrollbars, int *x, int *y, int *w, int *h); 231 644 645 /** 646 * Queries if the frame should be repainted completely. 647 * 648 * Function tells if dirty areas should be repainted 649 * even if they are out of the screen. 650 * 651 * @param o frame object to query if the frame should be repainted completely 652 * 653 * @return @c EINA_TRUE if any dirty areas should be repainted, @c EINA_FALSE 654 * otherwise 655 */ 232 656 EAPI Eina_Bool ewk_frame_paint_full_get(const Evas_Object *o); 657 658 /** 659 * Sets if the frame should be repainted completely. 660 * 661 * Function sets if dirty areas should be repainted 662 * even if they are out of the screen. 663 * 664 * @param o frame object to set if the frame should be repainted completely 665 * @param flag @c EINA_TRUE to repaint the frame completely, 666 * @c EINA_FALSE if not 667 */ 233 668 EAPI void ewk_frame_paint_full_set(Evas_Object *o, Eina_Bool flag); 234 669 670 /** 671 * Feeds the focus in event to the frame. 672 * 673 * @param o frame object to feed focus 674 * 675 * @return @c EINA_TRUE if the focus was handled, @c EINA_FALSE otherwise 676 */ 235 677 EAPI Eina_Bool ewk_frame_feed_focus_in(Evas_Object *o); 678 679 /** 680 * Feeds the focus out event to the frame. 681 * 682 * @param o frame object to remove focus 683 * 684 * @return @c EINA_FALSE since the feature is not implemented 685 */ 236 686 EAPI Eina_Bool ewk_frame_feed_focus_out(Evas_Object *o); 237 687 688 /** 689 * Feeds the mouse wheel event to the frame. 690 * 691 * @param o frame object to feed the mouse wheel event 692 * @param ev the mouse wheel event 693 * 694 * @return @c EINA_TRUE if the mouse wheel event was handled, @c EINA_FALSE otherwise 695 */ 238 696 EAPI Eina_Bool ewk_frame_feed_mouse_wheel(Evas_Object *o, const Evas_Event_Mouse_Wheel *ev); 697 698 /** 699 * Feeds the mouse down event to the frame. 700 * 701 * @param o frame object to feed the mouse down event 702 * @param ev the mouse down event 703 * 704 * @return @c EINA_TRUE if the mouse down event was handled, @c EINA_FALSE otherwise 705 */ 239 706 EAPI Eina_Bool ewk_frame_feed_mouse_down(Evas_Object *o, const Evas_Event_Mouse_Down *ev); 707 708 /** 709 * Feeds the mouse up event to the frame. 710 * 711 * @param o frame object to feed the mouse up event 712 * @param ev the mouse up event 713 * 714 * @return @c EINA_TRUE if the mouse up event was handled, @c EINA_FALSE otherwise 715 */ 240 716 EAPI Eina_Bool ewk_frame_feed_mouse_up(Evas_Object *o, const Evas_Event_Mouse_Up *ev); 717 718 /** 719 * Feeds the mouse move event to the frame. 720 * 721 * @param o frame object to feed the mouse move event 722 * @param ev the mouse move event 723 * 724 * @return @c EINA_TRUE if the mouse move event was handled, @c EINA_FALSE otherwise 725 */ 241 726 EAPI Eina_Bool ewk_frame_feed_mouse_move(Evas_Object *o, const Evas_Event_Mouse_Move *ev); 727 728 /** 729 * Feeds the touch event to the frame. 730 * 731 * @param o frame object to feed touch event 732 * @param action the action of touch event 733 * @param points a list of points (Ewk_Touch_Point) to process 734 * @param metaState DEPRECTAED, not supported for now 735 * 736 * @return @c EINA_TRUE if touch event was handled, @c EINA_FALSE otherwise 737 */ 242 738 EAPI Eina_Bool ewk_frame_feed_touch_event(Evas_Object *o, Ewk_Touch_Event_Type action, Eina_List *points, int metaState); 739 740 /** 741 * Feeds the keyboard key down event to the frame. 742 * 743 * @param o frame object to feed event 744 * @param ev keyboard key down event 745 * 746 * @return @c EINA_TRUE if the key down event was handled, @c EINA_FALSE otherwise 747 */ 243 748 EAPI Eina_Bool ewk_frame_feed_key_down(Evas_Object *o, const Evas_Event_Key_Down *ev); 749 750 /** 751 * Feeds the keyboard key up event to the frame. 752 * 753 * @param o frame object to feed event 754 * @param ev keyboard key up event 755 * 756 * @return @c EINA_TRUE if the key up event was handled, @c EINA_FALSE otherwise 757 */ 244 758 EAPI Eina_Bool ewk_frame_feed_key_up(Evas_Object *o, const Evas_Event_Key_Up *ev); 245 759 760 /** 761 * Returns current text selection type. 762 * 763 * @param o a frame object to check selection type 764 * @return current text selection type on success or no selection otherwise 765 */ 246 766 EAPI Ewk_Text_Selection_Type ewk_frame_text_selection_type_get(Evas_Object *o); 247 767 -
trunk/Source/WebKit/efl/ewk/ewk_history.cpp
r86480 r92473 111 111 } 112 112 113 /**114 * Go forward in history one item, if possible.115 *116 * @param history which history instance to modify.117 *118 * @return @c EINA_TRUE on success, @c EINA_FALSE on failure.119 */120 113 Eina_Bool ewk_history_forward(Ewk_History* history) 121 114 { … … 127 120 } 128 121 129 /**130 * Go back in history one item, if possible.131 *132 * @param history which history instance to modify.133 *134 * @return @c EINA_TRUE on success, @c EINA_FALSE on failure.135 */136 122 Eina_Bool ewk_history_back(Ewk_History* history) 137 123 { … … 143 129 } 144 130 145 /**146 * Adds the given item to history.147 *148 * Memory handling: This will not modify or even take references to149 * given item (Ewk_History_Item), so you should still handle it with150 * ewk_history_item_free().151 *152 * @param history which history instance to modify.153 * @param item reference to add to history. Unmodified. Must @b not be @c NULL.154 *155 * @return @c EINA_TRUE on success, @c EINA_FALSE on failure.156 */157 131 Eina_Bool ewk_history_history_item_add(Ewk_History* history, const Ewk_History_Item* item) 158 132 { … … 163 137 } 164 138 165 /**166 * Sets the given item as current in history (go to item).167 *168 * Memory handling: This will not modify or even take references to169 * given item (Ewk_History_Item), so you should still handle it with170 * ewk_history_item_free().171 *172 * @param history which history instance to modify.173 * @param item reference to go to history. Unmodified. Must @b not be @c NULL.174 *175 * @return @c EINA_TRUE on success, @c EINA_FALSE on failure.176 */177 139 Eina_Bool ewk_history_history_item_set(Ewk_History* history, const Ewk_History_Item* item) 178 140 { … … 183 145 } 184 146 185 /**186 * Get the first item from back list, if any.187 *188 * @param history which history instance to query.189 *190 * @return the @b newly allocated item instance. This memory must be191 * released with ewk_history_item_free() after use.192 */193 147 Ewk_History_Item* ewk_history_history_item_back_get(const Ewk_History* history) 194 148 { … … 197 151 } 198 152 199 /**200 * Get the current item in history, if any.201 *202 * @param history which history instance to query.203 *204 * @return the @b newly allocated item instance. This memory must be205 * released with ewk_history_item_free() after use.206 */207 153 Ewk_History_Item* ewk_history_history_item_current_get(const Ewk_History* history) 208 154 { … … 211 157 } 212 158 213 /**214 * Get the first item from forward list, if any.215 *216 * @param history which history instance to query.217 *218 * @return the @b newly allocated item instance. This memory must be219 * released with ewk_history_item_free() after use.220 */221 159 Ewk_History_Item* ewk_history_history_item_forward_get(const Ewk_History* history) 222 160 { … … 225 163 } 226 164 227 /**228 * Get item at given position, if any at that index.229 *230 * @param history which history instance to query.231 * @param index position of item to get.232 *233 * @return the @b newly allocated item instance. This memory must be234 * released with ewk_history_item_free() after use.235 */236 165 Ewk_History_Item* ewk_history_history_item_nth_get(const Ewk_History* history, int index) 237 166 { … … 240 169 } 241 170 242 /**243 * Queries if given item is in history.244 *245 * Memory handling: This will not modify or even take references to246 * given item (Ewk_History_Item), so you should still handle it with247 * ewk_history_item_free().248 *249 * @param history which history instance to modify.250 * @param item reference to check in history. Must @b not be @c NULL.251 *252 * @return @c EINA_TRUE if in history, @c EINA_FALSE if not or failure.253 */254 171 Eina_Bool ewk_history_history_item_contains(const Ewk_History* history, const Ewk_History_Item* item) 255 172 { … … 259 176 } 260 177 261 /**262 * Get the whole forward list.263 *264 * @param history which history instance to query.265 *266 * @return a newly allocated list of @b newly allocated item267 * instance. This memory of each item must be released with268 * ewk_history_item_free() after use. use269 * ewk_history_item_list_free() for convenience.270 *271 * @see ewk_history_item_list_free()272 * @see ewk_history_forward_list_get_with_limit()273 */274 178 Eina_List* ewk_history_forward_list_get(const Ewk_History* history) 275 179 { … … 281 185 } 282 186 283 /**284 * Get the forward list within the given limit.285 *286 * @param history which history instance to query.287 * @param limit the maximum number of items to return.288 *289 * @return a newly allocated list of @b newly allocated item290 * instance. This memory of each item must be released with291 * ewk_history_item_free() after use. use292 * ewk_history_item_list_free() for convenience.293 *294 * @see ewk_history_item_list_free()295 * @see ewk_history_forward_list_length()296 * @see ewk_history_forward_list_get()297 */298 187 Eina_List* ewk_history_forward_list_get_with_limit(const Ewk_History* history, int limit) 299 188 { … … 304 193 } 305 194 306 /**307 * Get the whole size of forward list.308 *309 * @param history which history instance to query.310 *311 * @return number of elements in whole list.312 *313 * @see ewk_history_forward_list_get_with_limit()314 */315 195 int ewk_history_forward_list_length(const Ewk_History* history) 316 196 { … … 319 199 } 320 200 321 /**322 * Get the whole back list.323 *324 * @param history which history instance to query.325 *326 * @return a newly allocated list of @b newly allocated item327 * instance. This memory of each item must be released with328 * ewk_history_item_free() after use. use329 * ewk_history_item_list_free() for convenience.330 *331 * @see ewk_history_item_list_free()332 * @see ewk_history_back_list_get_with_limit()333 */334 201 Eina_List* ewk_history_back_list_get(const Ewk_History* history) 335 202 { … … 341 208 } 342 209 343 /**344 * Get the back list within the given limit.345 *346 * @param history which history instance to query.347 * @param limit the maximum number of items to return.348 *349 * @return a newly allocated list of @b newly allocated item350 * instance. This memory of each item must be released with351 * ewk_history_item_free() after use. use352 * ewk_history_item_list_free() for convenience.353 *354 * @see ewk_history_item_list_free()355 * @see ewk_history_back_list_length()356 * @see ewk_history_back_list_get()357 */358 210 Eina_List* ewk_history_back_list_get_with_limit(const Ewk_History* history, int limit) 359 211 { … … 364 216 } 365 217 366 /**367 * Get the whole size of back list.368 *369 * @param history which history instance to query.370 *371 * @return number of elements in whole list.372 *373 * @see ewk_history_back_list_get_with_limit()374 */375 218 int ewk_history_back_list_length(const Ewk_History* history) 376 219 { … … 379 222 } 380 223 381 /**382 * Get maximum capacity of given history.383 *384 * @param history which history instance to query.385 *386 * @return maximum number of entries this history will hold.387 */388 224 int ewk_history_limit_get(Ewk_History* history) 389 225 { … … 392 228 } 393 229 394 /**395 * Set maximum capacity of given history.396 *397 * @param history which history instance to modify.398 * @param limit maximum size to allow.399 *400 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise.401 */402 230 Eina_Bool ewk_history_limit_set(const Ewk_History* history, int limit) 403 231 { … … 407 235 } 408 236 409 /**410 * Create a new history item with given URI and title.411 *412 * @param uri where this resource is located.413 * @param title resource title.414 *415 * @return newly allocated history item or @c NULL on errors. You must416 * free this item with ewk_history_item_free().417 */418 237 Ewk_History_Item* ewk_history_item_new(const char* uri, const char* title) 419 238 { … … 431 250 } 432 251 433 /**434 * Free given history item instance.435 *436 * @param item what to free.437 */438 252 void ewk_history_item_free(Ewk_History_Item* item) 439 253 { … … 442 256 } 443 257 444 /**445 * Free given list and associated history items instances.446 *447 * @param history_items list of items to free (both list nodes and448 * item instances).449 */450 258 void ewk_history_item_list_free(Eina_List* history_items) 451 259 { … … 457 265 } 458 266 459 /**460 * Query title for given history item.461 *462 * @param item history item to query.463 *464 * @return the title pointer, that may be @c NULL. This pointer is465 * guaranteed to be eina_stringshare, so whenever possible466 * save yourself some cpu cycles and use467 * eina_stringshare_ref() instead of eina_stringshare_add() or468 * strdup().469 */470 267 const char* ewk_history_item_title_get(const Ewk_History_Item* item) 471 268 { … … 477 274 } 478 275 479 /**480 * Query alternate title for given history item.481 *482 * @param item history item to query.483 *484 * @return the alternate title pointer, that may be @c NULL. This485 * pointer is guaranteed to be eina_stringshare, so whenever486 * possible save yourself some cpu cycles and use487 * eina_stringshare_ref() instead of eina_stringshare_add() or488 * strdup().489 */490 276 const char* ewk_history_item_title_alternate_get(const Ewk_History_Item* item) 491 277 { … … 498 284 } 499 285 500 /**501 * Set alternate title for given history item.502 *503 * @param item history item to query.504 * @param title new alternate title to use for given item. No505 * references are kept after this function returns.506 */507 286 void ewk_history_item_title_alternate_set(Ewk_History_Item* item, const char* title) 508 287 { … … 513 292 } 514 293 515 /**516 * Query URI for given history item.517 *518 * @param item history item to query.519 *520 * @return the URI pointer, that may be @c NULL. This pointer is521 * guaranteed to be eina_stringshare, so whenever possible522 * save yourself some cpu cycles and use523 * eina_stringshare_ref() instead of eina_stringshare_add() or524 * strdup().525 */526 294 const char* ewk_history_item_uri_get(const Ewk_History_Item* item) 527 295 { … … 533 301 } 534 302 535 /**536 * Query original URI for given history item.537 *538 * @param item history item to query.539 *540 * @return the original URI pointer, that may be @c NULL. This pointer541 * is guaranteed to be eina_stringshare, so whenever possible542 * save yourself some cpu cycles and use543 * eina_stringshare_ref() instead of eina_stringshare_add() or544 * strdup().545 */546 303 const char* ewk_history_item_uri_original_get(const Ewk_History_Item* item) 547 304 { … … 554 311 } 555 312 556 /**557 * Query last visited time for given history item.558 *559 * @param item history item to query.560 *561 * @return the time in seconds this item was visited.562 */563 313 double ewk_history_item_time_last_visited_get(const Ewk_History_Item* item) 564 314 { … … 567 317 } 568 318 569 /**570 * Get the icon (aka favicon) associated with this history item.571 *572 * @note in order to have this working, one must open icon database573 * with ewk_settings_icon_database_path_set().574 *575 * @param item history item to query.576 *577 * @return the surface reference or @c NULL on errors. Note that the578 * reference may be to a standard fallback icon.579 */580 319 cairo_surface_t* ewk_history_item_icon_surface_get(const Ewk_History_Item* item) 581 320 { … … 590 329 } 591 330 592 /**593 * Add an Evas_Object of type 'image' to given canvas with history item icon.594 *595 * This is an utility function that creates an Evas_Object of type596 * image set to have fill always match object size597 * (evas_object_image_filled_add()), saving some code to use it from Evas.598 *599 * @note in order to have this working, one must open icon database600 * with ewk_settings_icon_database_path_set().601 *602 * @param item history item to query.603 * @param canvas evas instance where to add resulting object.604 *605 * @return newly allocated Evas_Object instance or @c NULL on606 * errors. Delete the object with evas_object_del().607 */608 331 Evas_Object* ewk_history_item_icon_object_add(const Ewk_History_Item* item, Evas* canvas) 609 332 { … … 622 345 } 623 346 624 /**625 * Query if given item is still in page cache.626 *627 * @param item history item to query.628 *629 * @return @c EINA_TRUE if in cache, @c EINA_FALSE otherwise.630 */631 347 Eina_Bool ewk_history_item_page_cache_exists(const Ewk_History_Item* item) 632 348 { … … 635 351 } 636 352 637 /**638 * Query number of times item was visited.639 *640 * @param item history item to query.641 *642 * @return number of visits.643 */644 353 int ewk_history_item_visit_count(const Ewk_History_Item* item) 645 354 { … … 648 357 } 649 358 650 /**651 * Query if last visit to item was failure or not.652 *653 * @param item history item to query.654 *655 * @return @c EINA_TRUE if last visit was failure, @c EINA_FALSE if it656 * was fine.657 */658 359 Eina_Bool ewk_history_item_visit_last_failed(const Ewk_History_Item* item) 659 360 { -
trunk/Source/WebKit/efl/ewk/ewk_history.h
r84771 r92473 50 50 51 51 52 /** 53 * Go forward in history one item, if possible. 54 * 55 * @param history which history instance to modify. 56 * 57 * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. 58 */ 52 59 EAPI Eina_Bool ewk_history_forward(Ewk_History *history); 60 61 /** 62 * Go back in history one item, if possible. 63 * 64 * @param history which history instance to modify. 65 * 66 * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. 67 */ 53 68 EAPI Eina_Bool ewk_history_back(Ewk_History *history); 54 69 70 /** 71 * Adds the given item to history. 72 * 73 * Memory handling: This will not modify or even take references to 74 * given item (Ewk_History_Item), so you should still handle it with 75 * ewk_history_item_free(). 76 * 77 * @param history which history instance to modify. 78 * @param item reference to add to history. Unmodified. Must @b not be @c NULL. 79 * 80 * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. 81 */ 55 82 EAPI Eina_Bool ewk_history_history_item_add(Ewk_History *history, const Ewk_History_Item *item); 83 84 /** 85 * Sets the given item as current in history (go to item). 86 * 87 * Memory handling: This will not modify or even take references to 88 * given item (Ewk_History_Item), so you should still handle it with 89 * ewk_history_item_free(). 90 * 91 * @param history which history instance to modify. 92 * @param item reference to go to history. Unmodified. Must @b not be @c NULL. 93 * 94 * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. 95 */ 56 96 EAPI Eina_Bool ewk_history_history_item_set(Ewk_History *history, const Ewk_History_Item *item); 97 98 /** 99 * Get the first item from back list, if any. 100 * 101 * @param history which history instance to query. 102 * 103 * @return the @b newly allocated item instance. This memory must be 104 * released with ewk_history_item_free() after use. 105 */ 57 106 EAPI Ewk_History_Item *ewk_history_history_item_back_get(const Ewk_History *history); 107 108 /** 109 * Get the current item in history, if any. 110 * 111 * @param history which history instance to query. 112 * 113 * @return the @b newly allocated item instance. This memory must be 114 * released with ewk_history_item_free() after use. 115 */ 58 116 EAPI Ewk_History_Item *ewk_history_history_item_current_get(const Ewk_History *history); 117 118 /** 119 * Get the first item from forward list, if any. 120 * 121 * @param history which history instance to query. 122 * 123 * @return the @b newly allocated item instance. This memory must be 124 * released with ewk_history_item_free() after use. 125 */ 59 126 EAPI Ewk_History_Item *ewk_history_history_item_forward_get(const Ewk_History *history); 127 128 /** 129 * Get item at given position, if any at that index. 130 * 131 * @param history which history instance to query. 132 * @param index position of item to get. 133 * 134 * @return the @b newly allocated item instance. This memory must be 135 * released with ewk_history_item_free() after use. 136 */ 60 137 EAPI Ewk_History_Item *ewk_history_history_item_nth_get(const Ewk_History *history, int index); 138 139 /** 140 * Queries if given item is in history. 141 * 142 * Memory handling: This will not modify or even take references to 143 * given item (Ewk_History_Item), so you should still handle it with 144 * ewk_history_item_free(). 145 * 146 * @param history which history instance to modify. 147 * @param item reference to check in history. Must @b not be @c NULL. 148 * 149 * @return @c EINA_TRUE if in history, @c EINA_FALSE if not or failure. 150 */ 61 151 EAPI Eina_Bool ewk_history_history_item_contains(const Ewk_History *history, const Ewk_History_Item *item); 62 152 153 /** 154 * Get the whole forward list. 155 * 156 * @param history which history instance to query. 157 * 158 * @return a newly allocated list of @b newly allocated item 159 * instance. This memory of each item must be released with 160 * ewk_history_item_free() after use. use 161 * ewk_history_item_list_free() for convenience. 162 * 163 * @see ewk_history_item_list_free() 164 * @see ewk_history_forward_list_get_with_limit() 165 */ 63 166 EAPI Eina_List *ewk_history_forward_list_get(const Ewk_History *history); 167 168 /** 169 * Get the forward list within the given limit. 170 * 171 * @param history which history instance to query. 172 * @param limit the maximum number of items to return. 173 * 174 * @return a newly allocated list of @b newly allocated item 175 * instance. This memory of each item must be released with 176 * ewk_history_item_free() after use. use 177 * ewk_history_item_list_free() for convenience. 178 * 179 * @see ewk_history_item_list_free() 180 * @see ewk_history_forward_list_length() 181 * @see ewk_history_forward_list_get() 182 */ 64 183 EAPI Eina_List *ewk_history_forward_list_get_with_limit(const Ewk_History *history, int limit); 184 185 /** 186 * Get the whole size of forward list. 187 * 188 * @param history which history instance to query. 189 * 190 * @return number of elements in whole list. 191 * 192 * @see ewk_history_forward_list_get_with_limit() 193 */ 65 194 EAPI int ewk_history_forward_list_length(const Ewk_History *history); 66 195 196 /** 197 * Get the whole back list. 198 * 199 * @param history which history instance to query. 200 * 201 * @return a newly allocated list of @b newly allocated item 202 * instance. This memory of each item must be released with 203 * ewk_history_item_free() after use. use 204 * ewk_history_item_list_free() for convenience. 205 * 206 * @see ewk_history_item_list_free() 207 * @see ewk_history_back_list_get_with_limit() 208 */ 67 209 EAPI Eina_List *ewk_history_back_list_get(const Ewk_History *history); 210 211 /** 212 * Get the back list within the given limit. 213 * 214 * @param history which history instance to query. 215 * @param limit the maximum number of items to return. 216 * 217 * @return a newly allocated list of @b newly allocated item 218 * instance. This memory of each item must be released with 219 * ewk_history_item_free() after use. use 220 * ewk_history_item_list_free() for convenience. 221 * 222 * @see ewk_history_item_list_free() 223 * @see ewk_history_back_list_length() 224 * @see ewk_history_back_list_get() 225 */ 68 226 EAPI Eina_List *ewk_history_back_list_get_with_limit(const Ewk_History *history, int limit); 227 228 /** 229 * Get the whole size of back list. 230 * 231 * @param history which history instance to query. 232 * 233 * @return number of elements in whole list. 234 * 235 * @see ewk_history_back_list_get_with_limit() 236 */ 69 237 EAPI int ewk_history_back_list_length(const Ewk_History *history); 70 238 239 /** 240 * Get maximum capacity of given history. 241 * 242 * @param history which history instance to query. 243 * 244 * @return maximum number of entries this history will hold. 245 */ 71 246 EAPI int ewk_history_limit_get(Ewk_History *history); 247 248 /** 249 * Set maximum capacity of given history. 250 * 251 * @param history which history instance to modify. 252 * @param limit maximum size to allow. 253 * 254 * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise. 255 */ 72 256 EAPI Eina_Bool ewk_history_limit_set(const Ewk_History *history, int limit); 73 257 258 /** 259 * Create a new history item with given URI and title. 260 * 261 * @param uri where this resource is located. 262 * @param title resource title. 263 * 264 * @return newly allocated history item or @c NULL on errors. You must 265 * free this item with ewk_history_item_free(). 266 */ 74 267 EAPI Ewk_History_Item *ewk_history_item_new(const char *uri, const char *title); 268 269 /** 270 * Free given history item instance. 271 * 272 * @param item what to free. 273 */ 75 274 EAPI void ewk_history_item_free(Ewk_History_Item *item); 275 276 /** 277 * Free given list and associated history items instances. 278 * 279 * @param history_items list of items to free (both list nodes and 280 * item instances). 281 */ 76 282 EAPI void ewk_history_item_list_free(Eina_List *history_items); 77 283 284 /** 285 * Query title for given history item. 286 * 287 * @param item history item to query. 288 * 289 * @return the title pointer, that may be @c NULL. This pointer is 290 * guaranteed to be eina_stringshare, so whenever possible 291 * save yourself some cpu cycles and use 292 * eina_stringshare_ref() instead of eina_stringshare_add() or 293 * strdup(). 294 */ 78 295 EAPI const char *ewk_history_item_title_get(const Ewk_History_Item *item); 296 297 /** 298 * Query alternate title for given history item. 299 * 300 * @param item history item to query. 301 * 302 * @return the alternate title pointer, that may be @c NULL. This 303 * pointer is guaranteed to be eina_stringshare, so whenever 304 * possible save yourself some cpu cycles and use 305 * eina_stringshare_ref() instead of eina_stringshare_add() or 306 * strdup(). 307 */ 79 308 EAPI const char *ewk_history_item_title_alternate_get(const Ewk_History_Item *item); 309 310 /** 311 * Set alternate title for given history item. 312 * 313 * @param item history item to query. 314 * @param title new alternate title to use for given item. No 315 * references are kept after this function returns. 316 */ 80 317 EAPI void ewk_history_item_title_alternate_set(Ewk_History_Item *item, const char *title); 318 319 /** 320 * Query URI for given history item. 321 * 322 * @param item history item to query. 323 * 324 * @return the URI pointer, that may be @c NULL. This pointer is 325 * guaranteed to be eina_stringshare, so whenever possible 326 * save yourself some cpu cycles and use 327 * eina_stringshare_ref() instead of eina_stringshare_add() or 328 * strdup(). 329 */ 81 330 EAPI const char *ewk_history_item_uri_get(const Ewk_History_Item *item); 331 332 /** 333 * Query original URI for given history item. 334 * 335 * @param item history item to query. 336 * 337 * @return the original URI pointer, that may be @c NULL. This pointer 338 * is guaranteed to be eina_stringshare, so whenever possible 339 * save yourself some cpu cycles and use 340 * eina_stringshare_ref() instead of eina_stringshare_add() or 341 * strdup(). 342 */ 82 343 EAPI const char *ewk_history_item_uri_original_get(const Ewk_History_Item *item); 344 345 /** 346 * Query last visited time for given history item. 347 * 348 * @param item history item to query. 349 * 350 * @return the time in seconds this item was visited. 351 */ 83 352 EAPI double ewk_history_item_time_last_visited_get(const Ewk_History_Item *item); 84 353 354 /** 355 * Get the icon (aka favicon) associated with this history item. 356 * 357 * @note in order to have this working, one must open icon database 358 * with ewk_settings_icon_database_path_set(). 359 * 360 * @param item history item to query. 361 * 362 * @return the surface reference or @c NULL on errors. Note that the 363 * reference may be to a standard fallback icon. 364 */ 85 365 EAPI cairo_surface_t *ewk_history_item_icon_surface_get(const Ewk_History_Item *item); 366 367 /** 368 * Add an Evas_Object of type 'image' to given canvas with history item icon. 369 * 370 * This is an utility function that creates an Evas_Object of type 371 * image set to have fill always match object size 372 * (evas_object_image_filled_add()), saving some code to use it from Evas. 373 * 374 * @note in order to have this working, one must open icon database 375 * with ewk_settings_icon_database_path_set(). 376 * 377 * @param item history item to query. 378 * @param canvas evas instance where to add resulting object. 379 * 380 * @return newly allocated Evas_Object instance or @c NULL on 381 * errors. Delete the object with evas_object_del(). 382 */ 86 383 EAPI Evas_Object *ewk_history_item_icon_object_add(const Ewk_History_Item *item, Evas *canvas); 87 384 385 /** 386 * Query if given item is still in page cache. 387 * 388 * @param item history item to query. 389 * 390 * @return @c EINA_TRUE if in cache, @c EINA_FALSE otherwise. 391 */ 88 392 EAPI Eina_Bool ewk_history_item_page_cache_exists(const Ewk_History_Item *item); 393 394 /** 395 * Query number of times item was visited. 396 * 397 * @param item history item to query. 398 * 399 * @return number of visits. 400 */ 89 401 EAPI int ewk_history_item_visit_count(const Ewk_History_Item *item); 402 403 /** 404 * Query if last visit to item was failure or not. 405 * 406 * @param item history item to query. 407 * 408 * @return @c EINA_TRUE if last visit was failure, @c EINA_FALSE if it 409 * was fine. 410 */ 90 411 EAPI Eina_Bool ewk_history_item_visit_last_failed(const Ewk_History_Item *item); 91 412 -
trunk/Source/WebKit/efl/ewk/ewk_main.cpp
r91972 r92473 68 68 static Eina_Bool _ewk_init_body(void); 69 69 70 /**71 * Initializes webkit's instance.72 *73 * - initializes components needed by Efl,74 * - sets web database location,75 * - sets page cache capacity,76 * - increases a reference count of webkit's instance.77 *78 * @return a reference count of webkit's instance on success or 0 on failure79 */80 70 int ewk_init(void) 81 71 { … … 134 124 } 135 125 136 /**137 * Decreases a reference count of webkit's instance, possibly destroying it.138 *139 * If the reference count reaches 0 webkit's instance is destroyed.140 *141 * @return a reference count of webkit's instance142 */143 126 int ewk_shutdown(void) 144 127 { -
trunk/Source/WebKit/efl/ewk/ewk_main.h
r84771 r92473 33 33 #endif 34 34 35 /** 36 * Initializes webkit's instance. 37 * 38 * - initializes components needed by Efl, 39 * - sets web database location, 40 * - sets page cache capacity, 41 * - increases a reference count of webkit's instance. 42 * 43 * @return a reference count of webkit's instance on success or 0 on failure 44 */ 35 45 EAPI int ewk_init(void); 46 47 /** 48 * Decreases a reference count of webkit's instance, possibly destroying it. 49 * 50 * If the reference count reaches 0 webkit's instance is destroyed. 51 * 52 * @return a reference count of webkit's instance 53 */ 36 54 EAPI int ewk_shutdown(void); 37 55 -
trunk/Source/WebKit/efl/ewk/ewk_network.cpp
r91972 r92473 31 31 #endif 32 32 33 /**34 * Sets the given proxy URI to network backend.35 *36 * @param proxy URI to set.37 */38 33 void ewk_network_proxy_uri_set(const char *proxy) 39 34 { … … 57 52 } 58 53 59 /**60 * Gets the proxy URI from the network backend.61 *62 * The returned string should be freed by eina_stringshare_del() after use.63 *64 * @return current proxy URI or @c 0 if it's not set.65 */66 54 const char *ewk_network_proxy_uri_get(void) 67 55 { … … 83 71 } 84 72 85 /**86 * Sets if network backend is online or not.87 *88 * @param online @c EINA_FALSE if network is disconnected.89 */90 73 void ewk_network_state_notifier_online_set(Eina_Bool online) 91 74 { -
trunk/Source/WebKit/efl/ewk/ewk_network.h
r91972 r92473 32 32 #endif 33 33 34 /** 35 * Sets the given proxy URI to network backend. 36 * 37 * @param proxy URI to set 38 */ 34 39 EAPI void ewk_network_proxy_uri_set(const char *proxy); 40 41 /** 42 * Gets the proxy URI from the network backend. 43 * 44 * The returned string should be freed by eina_stringshare_del() after use. 45 * 46 * @return current proxy URI or @c 0 if it's not set 47 */ 35 48 EAPI const char *ewk_network_proxy_uri_get(void); 36 49 50 /** 51 * Sets if network backend is online or not. 52 * 53 * @param online @c EINA_FALSE if network is disconnected 54 */ 37 55 EAPI void ewk_network_state_notifier_online_set(Eina_Bool online); 38 56 -
trunk/Source/WebKit/efl/ewk/ewk_settings.cpp
r91972 r92473 81 81 } 82 82 83 /**84 * Returns the default quota for Web Database databases. By default85 * this value is 1MB.86 *87 * @return the current default database quota in bytes88 */89 83 uint64_t ewk_settings_web_database_default_quota_get(void) 90 84 { … … 96 90 } 97 91 98 /**99 * Sets the current path to the directory WebKit will write Web100 * Database databases.101 *102 * @param path the new database directory path103 */104 92 void ewk_settings_web_database_path_set(const char *path) 105 93 { … … 115 103 } 116 104 117 /**118 * Returns directory path where web database is stored.119 *120 * This is guaranteed to be eina_stringshare, so whenever possible121 * save yourself some cpu cycles and use eina_stringshare_ref()122 * instead of eina_stringshare_add() or strdup().123 *124 * @return database path or @c 0 if none or web database is not supported125 */126 105 const char *ewk_settings_web_database_path_get(void) 127 106 { … … 133 112 } 134 113 135 /**136 * Sets directory where to store icon database, opening or closing database.137 *138 * Icon database must be opened only once. If you try to set a path when the icon139 * database is already open, this function returns @c EINA_FALSE.140 *141 * @param directory where to store icon database, must be142 * write-able, if @c 0 is given, then database is closed143 *144 * @return @c EINA_TRUE on success, @c EINA_FALSE on errors145 */146 114 Eina_Bool ewk_settings_icon_database_path_set(const char *directory) 147 115 { … … 189 157 } 190 158 191 /**192 * Returns directory path where icon database is stored.193 *194 * This is guaranteed to be eina_stringshare, so whenever possible195 * save yourself some cpu cycles and use eina_stringshare_ref()196 * instead of eina_stringshare_add() or strdup().197 *198 * @return database path or @c 0 if none is set or database is closed199 */200 159 const char *ewk_settings_icon_database_path_get(void) 201 160 { … … 208 167 } 209 168 210 /**211 * Removes all known icons from database.212 *213 * Database must be opened with ewk_settings_icon_database_path_set()214 * in order to work.215 *216 * @return @c EINA_TRUE on success or @c EINA_FALSE otherwise, like217 * closed database.218 */219 169 Eina_Bool ewk_settings_icon_database_clear(void) 220 170 { … … 228 178 } 229 179 230 /**231 * Queries icon for given URL, returning associated cairo surface.232 *233 * @note In order to have this working, one must open icon database234 * with ewk_settings_icon_database_path_set().235 *236 * @param url which url to query icon237 *238 * @return cairo surface if any, or @c 0 on failure239 */240 180 cairo_surface_t *ewk_settings_icon_database_icon_surface_get(const char *url) 241 181 { … … 253 193 } 254 194 255 /**256 * Creates Evas_Object of type image representing the given URL.257 *258 * This is an utility function that creates an Evas_Object of type259 * image set to have fill always match object size260 * (evas_object_image_filled_add()), saving some code to use it from Evas.261 *262 * @note In order to have this working, one must open icon database263 * with ewk_settings_icon_database_path_set().264 *265 * @param url which url to query icon266 * @param canvas evas instance where to add resulting object267 *268 * @return newly allocated Evas_Object instance or @c 0 on269 * errors. Delete the object with evas_object_del().270 */271 195 Evas_Object *ewk_settings_icon_database_icon_object_add(const char *url, Evas *canvas) 272 196 { … … 287 211 } 288 212 289 /**290 * Gets status of the memory cache of WebCore.291 *292 * @return @c EINA_TRUE if the cache is enabled or @c EINA_FALSE if not293 */294 213 Eina_Bool ewk_settings_cache_enable_get(void) 295 214 { … … 298 217 } 299 218 300 /**301 * Enables/disables the memory cache of WebCore, possibly clearing it.302 *303 * Disabling the cache will remove all resources from the cache.304 * They may still live on if they are referenced by some Web page though.305 *306 * @param set @c EINA_TRUE to enable memory cache, @c EINA_FALSE to disable307 */308 219 void ewk_settings_cache_enable_set(Eina_Bool set) 309 220 { … … 314 225 } 315 226 316 /**317 * Sets capacity of memory cache of WebCore.318 *319 * WebCore sets default value of memory cache on 8192 * 1024 bytes.320 *321 * @param capacity the maximum number of bytes that the cache should consume overall322 */323 227 void ewk_settings_cache_capacity_set(unsigned capacity) 324 228 { … … 327 231 } 328 232 329 /**330 * Sets values for repaint throttling.331 *332 * It allows to slow down page loading and333 * should ensure displaying a content with many css/gif animations.334 *335 * These values can be used as a example for repaints throttling.336 * 0, 0, 0, 0 - default WebCore's values, these do not delay any repaints337 * 0.025, 0, 2.5, 0.5 - recommended values for dynamic content338 * 0.01, 0, 1, 0.2 - minimal level339 * 0.025, 1, 5, 0.5 - medium level340 * 0.1, 2, 10, 1 - heavy level341 *342 * @param deferred_repaint_delay a normal delay343 * @param initial_deferred_repaint_delay_during_loading negative value would mean that first few repaints happen without a delay344 * @param max_deferred_repaint_delay_during_loading the delay grows on each repaint to this maximum value345 * @param deferred_repaint_delay_increment_during_loading on each repaint the delay increses by this amount346 */347 233 void ewk_settings_repaint_throttling_set(double deferred_repaint_delay, double initial_deferred_repaint_delay_during_loading, double max_deferred_repaint_delay_during_loading, double deferred_repaint_delay_increment_during_loading) 348 234 { … … 368 254 } 369 255 370 /**371 * Sets cache directory.372 *373 * @param path where to store cache, must be write-able.374 *375 * @return @c EINA_TRUE on success, @c EINA_FALSE if path is NULL or offline376 * web application is not supported.377 */378 256 Eina_Bool ewk_settings_cache_directory_path_set(const char *path) 379 257 { … … 393 271 } 394 272 395 /**396 * Return cache directory path.397 *398 * This is guaranteed to be eina_stringshare, so whenever possible399 * save yourself some cpu cycles and use eina_stringshare_ref()400 * instead of eina_stringshare_add() or strdup().401 *402 * @return cache directory path.403 */404 273 const char *ewk_settings_cache_directory_path_get() 405 274 { -
trunk/Source/WebKit/efl/ewk/ewk_settings.h
r91255 r92473 36 36 */ 37 37 38 /** 39 * Returns the default quota for Web Database databases. By default 40 * this value is 1MB. 41 * 42 * @return the current default database quota in bytes 43 */ 38 44 EAPI uint64_t ewk_settings_web_database_default_quota_get(void); 45 46 /** 47 * Sets the current path to the directory WebKit will write Web 48 * Database databases. 49 * 50 * @param path the new database directory path 51 */ 39 52 EAPI void ewk_settings_web_database_path_set(const char *path); 53 54 /** 55 * Returns directory path where web database is stored. 56 * 57 * This is guaranteed to be eina_stringshare, so whenever possible 58 * save yourself some cpu cycles and use eina_stringshare_ref() 59 * instead of eina_stringshare_add() or strdup(). 60 * 61 * @return database path or @c 0 if none or web database is not supported 62 */ 40 63 EAPI const char *ewk_settings_web_database_path_get(void); 41 64 65 /** 66 * Sets directory where to store icon database, opening or closing database. 67 * 68 * Icon database must be opened only once. If you try to set a path when the icon 69 * database is already open, this function returns @c EINA_FALSE. 70 * 71 * @param directory where to store icon database, must be 72 * write-able, if @c 0 is given, then database is closed 73 * 74 * @return @c EINA_TRUE on success, @c EINA_FALSE on errors 75 */ 42 76 EAPI Eina_Bool ewk_settings_icon_database_path_set(const char *path); 77 78 /** 79 * Returns directory path where icon database is stored. 80 * 81 * This is guaranteed to be eina_stringshare, so whenever possible 82 * save yourself some cpu cycles and use eina_stringshare_ref() 83 * instead of eina_stringshare_add() or strdup(). 84 * 85 * @return database path or @c 0 if none is set or database is closed 86 */ 43 87 EAPI const char *ewk_settings_icon_database_path_get(void); 88 89 /** 90 * Removes all known icons from database. 91 * 92 * Database must be opened with ewk_settings_icon_database_path_set() 93 * in order to work. 94 * 95 * @return @c EINA_TRUE on success or @c EINA_FALSE otherwise, like 96 * closed database. 97 */ 44 98 EAPI Eina_Bool ewk_settings_icon_database_clear(void); 45 99 100 /** 101 * Queries icon for given URL, returning associated cairo surface. 102 * 103 * @note In order to have this working, one must open icon database 104 * with ewk_settings_icon_database_path_set(). 105 * 106 * @param url which url to query icon 107 * 108 * @return cairo surface if any, or @c 0 on failure 109 */ 46 110 EAPI cairo_surface_t *ewk_settings_icon_database_icon_surface_get(const char *url); 111 112 /** 113 * Creates Evas_Object of type image representing the given URL. 114 * 115 * This is an utility function that creates an Evas_Object of type 116 * image set to have fill always match object size 117 * (evas_object_image_filled_add()), saving some code to use it from Evas. 118 * 119 * @note In order to have this working, one must open icon database 120 * with ewk_settings_icon_database_path_set(). 121 * 122 * @param url which url to query icon 123 * @param canvas evas instance where to add resulting object 124 * 125 * @return newly allocated Evas_Object instance or @c 0 on 126 * errors. Delete the object with evas_object_del(). 127 */ 47 128 EAPI Evas_Object *ewk_settings_icon_database_icon_object_add(const char *url, Evas *canvas); 48 129 130 /** 131 * Sets cache directory. 132 * 133 * @param path where to store cache, must be write-able. 134 * 135 * @return @c EINA_TRUE on success, @c EINA_FALSE if path is NULL or offline 136 * web application is not supported. 137 */ 49 138 EAPI Eina_Bool ewk_settings_cache_directory_path_set(const char *path); 139 140 /** 141 * Return cache directory path. 142 * 143 * This is guaranteed to be eina_stringshare, so whenever possible 144 * save yourself some cpu cycles and use eina_stringshare_ref() 145 * instead of eina_stringshare_add() or strdup(). 146 * 147 * @return cache directory path. 148 */ 50 149 EAPI const char *ewk_settings_cache_directory_path_get(void); 51 150 151 /** 152 * Gets status of the memory cache of WebCore. 153 * 154 * @return @c EINA_TRUE if the cache is enabled or @c EINA_FALSE if not 155 */ 52 156 EAPI Eina_Bool ewk_settings_cache_enable_get(void); 157 158 /** 159 * Enables/disables the memory cache of WebCore, possibly clearing it. 160 * 161 * Disabling the cache will remove all resources from the cache. 162 * They may still live on if they are referenced by some Web page though. 163 * 164 * @param set @c EINA_TRUE to enable memory cache, @c EINA_FALSE to disable 165 */ 53 166 EAPI void ewk_settings_cache_enable_set(Eina_Bool set); 167 168 /** 169 * Sets capacity of memory cache of WebCore. 170 * 171 * WebCore sets default value of memory cache on 8192 * 1024 bytes. 172 * 173 * @param capacity the maximum number of bytes that the cache should consume overall 174 */ 54 175 EAPI void ewk_settings_cache_capacity_set(unsigned capacity); 55 176 177 /** 178 * Sets values for repaint throttling. 179 * 180 * It allows to slow down page loading and 181 * should ensure displaying a content with many css/gif animations. 182 * 183 * These values can be used as a example for repaints throttling. 184 * 0, 0, 0, 0 - default WebCore's values, these do not delay any repaints 185 * 0.025, 0, 2.5, 0.5 - recommended values for dynamic content 186 * 0.01, 0, 1, 0.2 - minimal level 187 * 0.025, 1, 5, 0.5 - medium level 188 * 0.1, 2, 10, 1 - heavy level 189 * 190 * @param deferred_repaint_delay a normal delay 191 * @param initial_deferred_repaint_delay_during_loading negative value would mean that first few repaints happen without a delay 192 * @param max_deferred_repaint_delay_during_loading the delay grows on each repaint to this maximum value 193 * @param deferred_repaint_delay_increment_during_loading on each repaint the delay increses by this amount 194 */ 56 195 EAPI void ewk_settings_repaint_throttling_set(double deferred_repaint_delay, double initial_deferred_repaint_delay_during_loading, double max_deferred_repaint_delay_during_loading, double deferred_repaint_delay_increment_during_loading); 57 196 -
trunk/Source/WebKit/efl/ewk/ewk_window_features.cpp
r91972 r92473 36 36 }; 37 37 38 /**39 * Decreases the referece count of an Ewk_Window_Features, possibly freeing it.40 *41 * When the reference count of the object reaches 0, the one is freed.42 *43 * @param window_features the object to decrease reference count44 */45 38 void ewk_window_features_unref(Ewk_Window_Features *window_features) 46 39 { … … 56 49 } 57 50 58 /**59 * Increases the reference count of an Ewk_Window_Features.60 *61 * @param window_features the object to increase reference count62 */63 51 void ewk_window_features_ref(Ewk_Window_Features *window_features) 64 52 { … … 67 55 } 68 56 69 /**70 * Gets boolean properties of an Ewk_Window_Features.71 *72 * Properties are returned in the respective pointers. Passing @c 0 to any of73 * these pointers will make that property to not be returned.74 *75 * @param window_features the object to get boolean properties76 * @param toolbar_visible the pointer to store if toolbar is visible77 * @param statusbar_visible the pointer to store if statusbar is visible78 * @param scrollbars_visible the pointer to store if scrollbars is visible79 * @param menubar_visible the pointer to store if menubar is visible80 * @param locationbar_visible the pointer to store if locationbar is visible81 * @param fullscreen the pointer to store if fullscreen is enabled82 *83 * @see ewk_window_features_int_property_get84 */85 57 void ewk_window_features_bool_property_get(Ewk_Window_Features *window_features, Eina_Bool *toolbar_visible, Eina_Bool *statusbar_visible, Eina_Bool *scrollbars_visible, Eina_Bool *menubar_visible, Eina_Bool *locationbar_visible, Eina_Bool *fullscreen) 86 58 { … … 107 79 } 108 80 109 /**110 * Gets int properties of an Ewk_Window_Features.111 *112 * Properties are returned in the respective pointers. Passing @c 0 to any of113 * these pointers will make that property to not be returned.114 *115 * Make sure to check if the value returned is less than 0 before using it, since in116 * that case it means that property was not set in winwdow_features object.117 *118 * @param window_features the window's features119 * @param x the pointer to store x position120 * @param y the pointer to store y position121 * @param w the pointer to store width122 * @param h the pointer to store height123 *124 * @see ewk_window_features_bool_property_get125 */126 81 void ewk_window_features_int_property_get(Ewk_Window_Features *window_features, int *x, int *y, int *w, int *h) 127 82 { -
trunk/Source/WebKit/efl/ewk/ewk_window_features.h
r91972 r92473 36 36 typedef struct _Ewk_Window_Features Ewk_Window_Features; 37 37 38 /** 39 * Decreases the referece count of an Ewk_Window_Features, possibly freeing it. 40 * 41 * When the reference count of the object reaches 0, the one is freed. 42 * 43 * @param window_features the object to decrease reference count 44 */ 38 45 EAPI void ewk_window_features_unref(Ewk_Window_Features *window_features); 46 47 /** 48 * Increases the reference count of an Ewk_Window_Features. 49 * 50 * @param window_features the object to increase reference count 51 */ 39 52 EAPI void ewk_window_features_ref(Ewk_Window_Features *window_features); 40 53 54 /** 55 * Gets boolean properties of an Ewk_Window_Features. 56 * 57 * Properties are returned in the respective pointers. Passing @c 0 to any of 58 * these pointers will make that property to not be returned. 59 * 60 * @param window_features the object to get boolean properties 61 * @param toolbar_visible the pointer to store if toolbar is visible 62 * @param statusbar_visible the pointer to store if statusbar is visible 63 * @param scrollbars_visible the pointer to store if scrollbars is visible 64 * @param menubar_visible the pointer to store if menubar is visible 65 * @param locationbar_visible the pointer to store if locationbar is visible 66 * @param fullscreen the pointer to store if fullscreen is enabled 67 * 68 * @see ewk_window_features_int_property_get 69 */ 41 70 EAPI void ewk_window_features_bool_property_get(Ewk_Window_Features *window_features, Eina_Bool *toolbar_visible, Eina_Bool *statusbar_visible, Eina_Bool *scrollbars_visible, Eina_Bool *menubar_visible, Eina_Bool *locationbar_visible, Eina_Bool *fullscreen); 71 72 /** 73 * Gets int properties of an Ewk_Window_Features. 74 * 75 * Properties are returned in the respective pointers. Passing @c 0 to any of 76 * these pointers will make that property to not be returned. 77 * 78 * Make sure to check if the value returned is less than 0 before using it, since in 79 * that case it means that property was not set in winwdow_features object. 80 * 81 * @param window_features the window's features 82 * @param x the pointer to store x position 83 * @param y the pointer to store y position 84 * @param w the pointer to store width 85 * @param h the pointer to store height 86 * 87 * @see ewk_window_features_bool_property_get 88 */ 42 89 EAPI void ewk_window_features_int_property_get(Ewk_Window_Features *window_features, int *x, int *y, int *w, int *h); 43 90
Note: See TracChangeset
for help on using the changeset viewer.