Diff
Modified: trunk/Source/WebKit/efl/ChangeLog (94062 => 94063)
--- trunk/Source/WebKit/efl/ChangeLog 2011-08-30 09:36:11 UTC (rev 94062)
+++ trunk/Source/WebKit/efl/ChangeLog 2011-08-30 09:39:00 UTC (rev 94063)
@@ -1,3 +1,53 @@
+2011-08-30 Grzegorz Czajkowski <[email protected]>
+
+ [EFL] Add const modifier to passed objects where it's recommended
+ https://bugs.webkit.org/show_bug.cgi?id=67110
+
+ Reviewed by Kent Tamura.
+
+ Add const modifier to passed Evas_Object if the function doesn't change its
+ property (the most cases to the getter functions).
+
+ * ewk/ewk_contextmenu.cpp:
+ (ewk_context_menu_item_list_get):
+ (ewk_context_menu_item_type_get):
+ (ewk_context_menu_item_action_get):
+ (ewk_context_menu_item_title_get):
+ (ewk_context_menu_item_checked_get):
+ (ewk_context_menu_item_enabled_get):
+ (ewk_context_menu_custom_get):
+ (ewk_context_menu_show):
+ * ewk/ewk_contextmenu.h:
+ * ewk/ewk_frame.cpp:
+ (ewk_frame_text_matches_nth_pos_get):
+ (ewk_frame_text_selection_type_get):
+ (ewk_frame_source_get):
+ (ewk_frame_resources_location_get):
+ * ewk/ewk_frame.h:
+ * ewk/ewk_private.h:
+ * ewk/ewk_view.cpp:
+ (_ewk_view_viewport_attributes_compute):
+ (ewk_view_fixed_layout_size_get):
+ (ewk_view_theme_get):
+ (ewk_view_imh_get):
+ (ewk_view_setting_encoding_detector_get):
+ (ewk_view_setting_enable_developer_extras_get):
+ (ewk_view_setting_spatial_navigation_get):
+ (ewk_view_setting_local_storage_get):
+ (ewk_view_setting_page_cache_get):
+ (ewk_view_viewport_attributes_get):
+ (ewk_view_zoom_range_min_get):
+ (ewk_view_zoom_range_max_get):
+ (ewk_view_user_scalable_get):
+ (ewk_view_device_pixel_ratio_get):
+ (ewk_view_page_rect_get):
+ (ewk_view_mode_get):
+ * ewk/ewk_view.h:
+ * ewk/ewk_window_features.cpp:
+ (ewk_window_features_bool_property_get):
+ (ewk_window_features_int_property_get):
+ * ewk/ewk_window_features.h:
+
2011-08-29 Grzegorz Czajkowski <[email protected]>
[EFL] Add missing API documentation.
Modified: trunk/Source/WebKit/efl/ewk/ewk_contextmenu.cpp (94062 => 94063)
--- trunk/Source/WebKit/efl/ewk/ewk_contextmenu.cpp 2011-08-30 09:36:11 UTC (rev 94062)
+++ trunk/Source/WebKit/efl/ewk/ewk_contextmenu.cpp 2011-08-30 09:39:00 UTC (rev 94063)
@@ -92,7 +92,7 @@
#endif
}
-const Eina_List *ewk_context_menu_item_list_get(Ewk_Context_Menu *o)
+const Eina_List *ewk_context_menu_item_list_get(const Ewk_Context_Menu *o)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(o, 0);
@@ -142,7 +142,7 @@
free(item);
}
-Ewk_Context_Menu_Item_Type ewk_context_menu_item_type_get(Ewk_Context_Menu_Item *o)
+Ewk_Context_Menu_Item_Type ewk_context_menu_item_type_get(const Ewk_Context_Menu_Item *o)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(o, EWK_ACTION_TYPE);
return o->type;
@@ -155,7 +155,7 @@
return EINA_TRUE;
}
-Ewk_Context_Menu_Action ewk_context_menu_item_action_get(Ewk_Context_Menu_Item *o)
+Ewk_Context_Menu_Action ewk_context_menu_item_action_get(const Ewk_Context_Menu_Item *o)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(o, EWK_CONTEXT_MENU_ITEM_TAG_NO_ACTION);
return o->action;
@@ -168,7 +168,7 @@
return EINA_TRUE;
}
-const char *ewk_context_menu_item_title_get(Ewk_Context_Menu_Item *o)
+const char *ewk_context_menu_item_title_get(const Ewk_Context_Menu_Item *o)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(o, 0);
return o->title;
@@ -181,7 +181,7 @@
return o->title;
}
-Eina_Bool ewk_context_menu_item_checked_get(Ewk_Context_Menu_Item *o)
+Eina_Bool ewk_context_menu_item_checked_get(const Ewk_Context_Menu_Item *o)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(o, EINA_FALSE);
return o->checked;
@@ -194,7 +194,7 @@
return EINA_TRUE;
}
-Eina_Bool ewk_context_menu_item_enabled_get(Ewk_Context_Menu_Item *o)
+Eina_Bool ewk_context_menu_item_enabled_get(const Ewk_Context_Menu_Item *o)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(o, EINA_FALSE);
return o->enabled;
@@ -301,7 +301,7 @@
*
* @see ewk_context_menu_item_list_get
*/
-Ewk_Context_Menu *ewk_context_menu_custom_get(Ewk_Context_Menu *o)
+Ewk_Context_Menu *ewk_context_menu_custom_get(const Ewk_Context_Menu *o)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(o, 0);
@@ -316,7 +316,7 @@
*
* @param o the context menu object
*/
-void ewk_context_menu_show(Ewk_Context_Menu *o)
+void ewk_context_menu_show(const Ewk_Context_Menu *o)
{
EINA_SAFETY_ON_NULL_RETURN(o);
Modified: trunk/Source/WebKit/efl/ewk/ewk_contextmenu.h (94062 => 94063)
--- trunk/Source/WebKit/efl/ewk/ewk_contextmenu.h 2011-08-30 09:36:11 UTC (rev 94062)
+++ trunk/Source/WebKit/efl/ewk/ewk_contextmenu.h 2011-08-30 09:39:00 UTC (rev 94063)
@@ -183,7 +183,7 @@
* @param o the context menu object to get list of the items
* @return the list of the items on success or @c 0 on failure
*/
-EAPI const Eina_List *ewk_context_menu_item_list_get(Ewk_Context_Menu *o);
+EAPI const Eina_List *ewk_context_menu_item_list_get(const Ewk_Context_Menu *o);
/**
* Creates a new item of the context menu.
@@ -227,7 +227,7 @@
*
* @see ewk_context_menu_item_type_set
*/
-EAPI Ewk_Context_Menu_Item_Type ewk_context_menu_item_type_get(Ewk_Context_Menu_Item *o);
+EAPI Ewk_Context_Menu_Item_Type ewk_context_menu_item_type_get(const Ewk_Context_Menu_Item *o);
/**
* Sets the type of item.
@@ -248,7 +248,7 @@
*
* @see ewk_context_menu_item_action_set
*/
-EAPI Ewk_Context_Menu_Action ewk_context_menu_item_action_get(Ewk_Context_Menu_Item *o);
+EAPI Ewk_Context_Menu_Action ewk_context_menu_item_action_get(const Ewk_Context_Menu_Item *o);
/**
* Sets an action of the item.
@@ -269,7 +269,7 @@
*
* @see ewk_context_menu_item_title_set
*/
-EAPI const char *ewk_context_menu_item_title_get(Ewk_Context_Menu_Item *o);
+EAPI const char *ewk_context_menu_item_title_get(const Ewk_Context_Menu_Item *o);
/**
* Sets a title of the item.
@@ -288,7 +288,7 @@
* @param o the item to query if the item is toggled
* @return @c EINA_TRUE if the item is toggled or @c EINA_FALSE if not or on failure
*/
-EAPI Eina_Bool ewk_context_menu_item_checked_get(Ewk_Context_Menu_Item *o);
+EAPI Eina_Bool ewk_context_menu_item_checked_get(const Ewk_Context_Menu_Item *o);
/**
* Sets if the item should be toggled.
@@ -307,7 +307,7 @@
*
* @see ewk_context_menu_item_enabled_set
*/
-EAPI Eina_Bool ewk_context_menu_item_enabled_get(Ewk_Context_Menu_Item *o);
+EAPI Eina_Bool ewk_context_menu_item_enabled_get(const Ewk_Context_Menu_Item *o);
/**
* Enables/disables the item.
Modified: trunk/Source/WebKit/efl/ewk/ewk_frame.cpp (94062 => 94063)
--- trunk/Source/WebKit/efl/ewk/ewk_frame.cpp 2011-08-30 09:36:11 UTC (rev 94062)
+++ trunk/Source/WebKit/efl/ewk/ewk_frame.cpp 2011-08-30 09:39:00 UTC (rev 94063)
@@ -525,7 +525,7 @@
return (i.x() < 0 || i.y() < 0);
}
-Eina_Bool ewk_frame_text_matches_nth_pos_get(Evas_Object *o, size_t n, int *x, int *y)
+Eina_Bool ewk_frame_text_matches_nth_pos_get(const Evas_Object *o, size_t n, int *x, int *y)
{
EWK_FRAME_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
EINA_SAFETY_ON_NULL_RETURN_VAL(sd->frame, EINA_FALSE);
@@ -1055,7 +1055,7 @@
return sd->frame->eventHandler()->keyEvent(event);
}
-Ewk_Text_Selection_Type ewk_frame_text_selection_type_get(Evas_Object *o)
+Ewk_Text_Selection_Type ewk_frame_text_selection_type_get(const Evas_Object *o)
{
EWK_FRAME_SD_GET_OR_RETURN(o, sd, EWK_TEXT_SELECTION_NONE);
EINA_SAFETY_ON_NULL_RETURN_VAL(sd->frame, EWK_TEXT_SELECTION_NONE);
@@ -1492,7 +1492,7 @@
sd->frame->view()->setEvasObject(o);
}
-ssize_t ewk_frame_source_get(Evas_Object *o, char **frame_source)
+ssize_t ewk_frame_source_get(const Evas_Object *o, char **frame_source)
{
EWK_FRAME_SD_GET_OR_RETURN(o, sd, -1);
EINA_SAFETY_ON_NULL_RETURN_VAL(sd->frame, -1);
@@ -1542,7 +1542,7 @@
return source_length;
}
-Eina_List *ewk_frame_resources_location_get(Evas_Object *o)
+Eina_List *ewk_frame_resources_location_get(const Evas_Object *o)
{
EWK_FRAME_SD_GET_OR_RETURN(o, sd, 0);
EINA_SAFETY_ON_NULL_RETURN_VAL(sd->frame, 0);
Modified: trunk/Source/WebKit/efl/ewk/ewk_frame.h (94062 => 94063)
--- trunk/Source/WebKit/efl/ewk/ewk_frame.h 2011-08-30 09:36:11 UTC (rev 94062)
+++ trunk/Source/WebKit/efl/ewk/ewk_frame.h 2011-08-30 09:39:00 UTC (rev 94063)
@@ -422,7 +422,7 @@
* @return @c EINA_TRUE on success, @c EINA_FALSE when no matches were found or
* @a n is bigger than search results or on failure
*/
-EAPI Eina_Bool ewk_frame_text_matches_nth_pos_get(Evas_Object *o, size_t n, int *x, int *y);
+EAPI Eina_Bool ewk_frame_text_matches_nth_pos_get(const Evas_Object *o, size_t n, int *x, int *y);
/**
* Asks frame to stop loading.
@@ -772,7 +772,7 @@
* @param o a frame object to check selection type
* @return current text selection type on success or no selection otherwise
*/
-EAPI Ewk_Text_Selection_Type ewk_frame_text_selection_type_get(Evas_Object *o);
+EAPI Ewk_Text_Selection_Type ewk_frame_text_selection_type_get(const Evas_Object *o);
/**
* Gets the frame source.
@@ -787,7 +787,7 @@
*
* @see ewk_frame_resources_location_get()
*/
-EAPI ssize_t ewk_frame_source_get(Evas_Object *o, char **frame_source);
+EAPI ssize_t ewk_frame_source_get(const Evas_Object *o, char **frame_source);
/**
* Gets the resource list of this frame.
@@ -802,7 +802,7 @@
*
* @see ewk_frame_source_get()
*/
-EAPI Eina_List *ewk_frame_resources_location_get(Evas_Object *o);
+EAPI Eina_List *ewk_frame_resources_location_get(const Evas_Object *o);
#ifdef __cplusplus
}
Modified: trunk/Source/WebKit/efl/ewk/ewk_private.h (94062 => 94063)
--- trunk/Source/WebKit/efl/ewk/ewk_private.h 2011-08-30 09:36:11 UTC (rev 94062)
+++ trunk/Source/WebKit/efl/ewk/ewk_private.h 2011-08-30 09:39:00 UTC (rev 94063)
@@ -150,7 +150,7 @@
#if ENABLE(TOUCH_EVENTS)
void ewk_view_need_touch_events_set(Evas_Object*, bool needed);
-Eina_Bool ewk_view_need_touch_events_get(Evas_Object*);
+Eina_Bool ewk_view_need_touch_events_get(const Evas_Object*);
#endif
Ewk_History *ewk_history_new(WebCore::BackForwardListImpl *history);
@@ -163,8 +163,8 @@
Ewk_Context_Menu *ewk_context_menu_new(Evas_Object *view, WebCore::ContextMenuController *controller);
Eina_Bool ewk_context_menu_free(Ewk_Context_Menu *o);
void ewk_context_menu_item_append(Ewk_Context_Menu *o, WebCore::ContextMenuItem &core);
-Ewk_Context_Menu *ewk_context_menu_custom_get(Ewk_Context_Menu *o);
-void ewk_context_menu_show(Ewk_Context_Menu *o);
+Ewk_Context_Menu *ewk_context_menu_custom_get(const Ewk_Context_Menu *o);
+void ewk_context_menu_show(const Ewk_Context_Menu *o);
#endif
const Eina_Rectangle *ewk_view_repaints_get(const Ewk_View_Private_Data *priv, size_t *count);
@@ -212,7 +212,7 @@
void ewk_view_contents_size_changed(Evas_Object *o, Evas_Coord w, Evas_Coord h);
-WebCore::FloatRect ewk_view_page_rect_get(Evas_Object *o);
+WebCore::FloatRect ewk_view_page_rect_get(const Evas_Object *o);
const char* ewk_settings_default_user_agent_get(void);
Modified: trunk/Source/WebKit/efl/ewk/ewk_view.cpp (94062 => 94063)
--- trunk/Source/WebKit/efl/ewk/ewk_view.cpp 2011-08-30 09:36:11 UTC (rev 94062)
+++ trunk/Source/WebKit/efl/ewk/ewk_view.cpp 2011-08-30 09:39:00 UTC (rev 94063)
@@ -1030,7 +1030,7 @@
(_ewk_view_zoom_animator_cb, sd);
}
-static WebCore::ViewportAttributes _ewk_view_viewport_attributes_compute(Evas_Object *o)
+static WebCore::ViewportAttributes _ewk_view_viewport_attributes_compute(const Evas_Object *o)
{
EWK_VIEW_SD_GET(o, sd);
EWK_VIEW_PRIV_GET(sd, priv);
@@ -1137,7 +1137,7 @@
view->forceLayout();
}
-void ewk_view_fixed_layout_size_get(Evas_Object *o, Evas_Coord *w, Evas_Coord *h)
+void ewk_view_fixed_layout_size_get(const Evas_Object *o, Evas_Coord *w, Evas_Coord *h)
{
if (w)
*w = 0;
@@ -1170,7 +1170,7 @@
}
-const char* ewk_view_theme_get(Evas_Object *o)
+const char* ewk_view_theme_get(const Evas_Object *o)
{
EWK_VIEW_SD_GET_OR_RETURN(o, sd, 0);
EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, 0);
@@ -1755,7 +1755,7 @@
return sd->api->pre_render_relative_radius(sd, n, cur_zoom);
}
-unsigned int ewk_view_imh_get(Evas_Object *o)
+unsigned int ewk_view_imh_get(const Evas_Object *o)
{
EWK_VIEW_SD_GET_OR_RETURN(o, sd, 0);
EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, 0);
@@ -2101,14 +2101,14 @@
return EINA_TRUE;
}
-Eina_Bool ewk_view_setting_encoding_detector_get(Evas_Object *o)
+Eina_Bool ewk_view_setting_encoding_detector_get(const Evas_Object *o)
{
EWK_VIEW_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, EINA_FALSE);
return priv->settings.encoding_detector;
}
-Eina_Bool ewk_view_setting_enable_developer_extras_get(Evas_Object *o)
+Eina_Bool ewk_view_setting_enable_developer_extras_get(const Evas_Object *o)
{
EWK_VIEW_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, EINA_FALSE);
@@ -2295,7 +2295,7 @@
return EINA_TRUE;
}
-Eina_Bool ewk_view_setting_spatial_navigation_get(Evas_Object *o)
+Eina_Bool ewk_view_setting_spatial_navigation_get(const Evas_Object *o)
{
EWK_VIEW_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, EINA_FALSE);
@@ -2314,7 +2314,7 @@
return EINA_TRUE;
}
-Eina_Bool ewk_view_setting_local_storage_get(Evas_Object *o)
+Eina_Bool ewk_view_setting_local_storage_get(const Evas_Object *o)
{
EWK_VIEW_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, EINA_FALSE);
@@ -2333,7 +2333,7 @@
return EINA_TRUE;
}
-Eina_Bool ewk_view_setting_page_cache_get(Evas_Object *o)
+Eina_Bool ewk_view_setting_page_cache_get(const Evas_Object *o)
{
EWK_VIEW_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, EINA_FALSE);
@@ -3443,7 +3443,7 @@
evas_object_smart_callback_call(o, "viewport,changed", 0);
}
-void ewk_view_viewport_attributes_get(Evas_Object *o, float *w, float *h, float *init_scale, float *max_scale, float *min_scale, float *device_pixel_ratio, Eina_Bool *user_scalable)
+void ewk_view_viewport_attributes_get(const Evas_Object *o, float *w, float *h, float *init_scale, float *max_scale, float *min_scale, float *device_pixel_ratio, Eina_Bool *user_scalable)
{
WebCore::ViewportAttributes attributes = _ewk_view_viewport_attributes_compute(o);
@@ -3479,7 +3479,7 @@
return EINA_TRUE;
}
-float ewk_view_zoom_range_min_get(Evas_Object *o)
+float ewk_view_zoom_range_min_get(const Evas_Object *o)
{
EWK_VIEW_SD_GET_OR_RETURN(o, sd, -1.0);
EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, -1.0);
@@ -3487,7 +3487,7 @@
return priv->settings.zoom_range.min_scale;
}
-float ewk_view_zoom_range_max_get(Evas_Object *o)
+float ewk_view_zoom_range_max_get(const Evas_Object *o)
{
EWK_VIEW_SD_GET_OR_RETURN(o, sd, -1.0);
EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, -1.0);
@@ -3505,7 +3505,7 @@
return EINA_TRUE;
}
-Eina_Bool ewk_view_user_scalable_get(Evas_Object *o)
+Eina_Bool ewk_view_user_scalable_get(const Evas_Object *o)
{
EWK_VIEW_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, EINA_FALSE);
@@ -3513,7 +3513,7 @@
return priv->settings.zoom_range.user_scalable;
}
-float ewk_view_device_pixel_ratio_get(Evas_Object *o)
+float ewk_view_device_pixel_ratio_get(const Evas_Object *o)
{
EWK_VIEW_SD_GET_OR_RETURN(o, sd, -1.0);
EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, -1.0);
@@ -3638,7 +3638,7 @@
*
* @return page size.
*/
-WebCore::FloatRect ewk_view_page_rect_get(Evas_Object *o)
+WebCore::FloatRect ewk_view_page_rect_get(const Evas_Object *o)
{
EWK_VIEW_SD_GET(o, sd);
EWK_VIEW_PRIV_GET(sd, priv);
@@ -3692,7 +3692,7 @@
return EINA_TRUE;
}
-Ewk_View_Mode ewk_view_mode_get(Evas_Object *o)
+Ewk_View_Mode ewk_view_mode_get(const Evas_Object *o)
{
Ewk_View_Mode mode = EWK_VIEW_MODE_WINDOWED;
Modified: trunk/Source/WebKit/efl/ewk/ewk_view.h (94062 => 94063)
--- trunk/Source/WebKit/efl/ewk/ewk_view.h 2011-08-30 09:36:11 UTC (rev 94062)
+++ trunk/Source/WebKit/efl/ewk/ewk_view.h 2011-08-30 09:39:00 UTC (rev 94063)
@@ -545,7 +545,7 @@
* @param h the pointer to store fixed height, returns @c 0 on failure or if there is no
* fixed layout in use
*/
-EAPI void ewk_view_fixed_layout_size_get(Evas_Object *o, Evas_Coord *w, Evas_Coord *h);
+EAPI void ewk_view_fixed_layout_size_get(const Evas_Object *o, Evas_Coord *w, Evas_Coord *h);
/**
* Sets the theme path that will be used by this view.
@@ -568,7 +568,7 @@
*
* @return the theme path, may be @c 0 if not set
*/
-EAPI const char *ewk_view_theme_get(Evas_Object *o);
+EAPI const char *ewk_view_theme_get(const Evas_Object *o);
/**
* Gets the object that represents the main frame.
@@ -1227,7 +1227,7 @@
*
* @return the input method hints as @a Ewk_Imh bits-field
*/
-EAPI unsigned int ewk_view_imh_get(Evas_Object *o);
+EAPI unsigned int ewk_view_imh_get(const Evas_Object *o);
/**
* Gets the user agent string.
@@ -1771,7 +1771,7 @@
* @return @c EINA_TRUE if spatial navigation is enabled,
* @c EINA_FALSE if not or on failure
*/
-EAPI Eina_Bool ewk_view_setting_spatial_navigation_get(Evas_Object *o);
+EAPI Eina_Bool ewk_view_setting_spatial_navigation_get(const Evas_Object *o);
/**
* Enables/disables the spatial navigation feature.
@@ -1792,7 +1792,7 @@
* @return @c EINA_TRUE if local storage is enabled,
* @c EINA_FALSE if not or on failure
*/
-EAPI Eina_Bool ewk_view_setting_local_storage_get(Evas_Object *o);
+EAPI Eina_Bool ewk_view_setting_local_storage_get(const Evas_Object *o);
/**
* Enables/disable the local storage feature of HTML5.
@@ -1833,7 +1833,7 @@
* @return @c EINA_TRUE if page cache is enabled,
* @c EINA_FALSE if not or on failure
*/
-EAPI Eina_Bool ewk_view_setting_page_cache_get(Evas_Object *o);
+EAPI Eina_Bool ewk_view_setting_page_cache_get(const Evas_Object *o);
/**
* Enables/disables the page cache feature.
@@ -1854,7 +1854,7 @@
* @return @c EINA_TRUE if the encoding feature is enabled,
* @c EINA_FALSE if not or on failure
*/
-EAPI Eina_Bool ewk_view_setting_encoding_detector_get(Evas_Object *o);
+EAPI Eina_Bool ewk_view_setting_encoding_detector_get(const Evas_Object *o);
/**
* Enables/disables the encoding detector.
@@ -1878,7 +1878,7 @@
* @return @c EINA_TRUE if developer extensions are enabled, @c EINA_FALSE
* otherwise
*/
-EAPI Eina_Bool ewk_view_setting_enable_developer_extras_get(Evas_Object *o);
+EAPI Eina_Bool ewk_view_setting_enable_developer_extras_get(const Evas_Object *o);
/**
* Enables/disables developer extensions.
@@ -2114,7 +2114,7 @@
* @param device_pixel_ratio the pointer to store the device pixel ratio value
* @param user_scalable the pointer to store if user can scale viewport
*/
-EAPI void ewk_view_viewport_attributes_get(Evas_Object *o, float *w, float *h, float *init_scale, float *max_scale, float *min_scale, float *device_pixel_ratio , Eina_Bool *user_scalable);
+EAPI void ewk_view_viewport_attributes_get(const Evas_Object *o, float *w, float *h, float *init_scale, float *max_scale, float *min_scale, float *device_pixel_ratio , Eina_Bool *user_scalable);
/**
* Sets the zoom range.
@@ -2135,7 +2135,7 @@
* @return the minimum value of the zoom range on success, or
* @c -1 on failure
*/
-EAPI float ewk_view_zoom_range_min_get(Evas_Object *o);
+EAPI float ewk_view_zoom_range_min_get(const Evas_Object *o);
/**
* Gets the maximum value of the zoom range.
@@ -2145,7 +2145,7 @@
* @return the maximum value of the zoom range on success, or
* @c -1.0 on failure
*/
-EAPI float ewk_view_zoom_range_max_get(Evas_Object *o);
+EAPI float ewk_view_zoom_range_max_get(const Evas_Object *o);
/**
* Enables/disables the zoom.
@@ -2164,7 +2164,7 @@
*
* @return @c EINA_TRUE if the zoom is enabled, @c EINA_FALSE if not or on failure
*/
-EAPI Eina_Bool ewk_view_user_scalable_get(Evas_Object *o);
+EAPI Eina_Bool ewk_view_user_scalable_get(const Evas_Object *o);
/**
* Gets the device pixel ratio value.
@@ -2173,7 +2173,7 @@
*
* @return the device pixel ratio value on success or @c -1.0 on failure
*/
-EAPI float ewk_view_device_pixel_ratio_get(Evas_Object *o);
+EAPI float ewk_view_device_pixel_ratio_get(const Evas_Object *o);
/**
* Sets the view mode.
@@ -2197,7 +2197,7 @@
*
* @see ewk_view_mode_set()
*/
-EAPI Ewk_View_Mode ewk_view_mode_get(Evas_Object *o);
+EAPI Ewk_View_Mode ewk_view_mode_get(const Evas_Object *o);
/**
* Creates a JS object named @a obj_name as property of the window object. This should be called on a callback connectedto the
Modified: trunk/Source/WebKit/efl/ewk/ewk_window_features.cpp (94062 => 94063)
--- trunk/Source/WebKit/efl/ewk/ewk_window_features.cpp 2011-08-30 09:36:11 UTC (rev 94062)
+++ trunk/Source/WebKit/efl/ewk/ewk_window_features.cpp 2011-08-30 09:39:00 UTC (rev 94063)
@@ -54,7 +54,7 @@
window_features->__ref++;
}
-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)
+void ewk_window_features_bool_property_get(const 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)
{
EINA_SAFETY_ON_NULL_RETURN(window_features);
EINA_SAFETY_ON_NULL_RETURN(window_features->core);
@@ -78,7 +78,7 @@
*fullscreen = window_features->core->fullscreen;
}
-void ewk_window_features_int_property_get(Ewk_Window_Features *window_features, int *x, int *y, int *w, int *h)
+void ewk_window_features_int_property_get(const Ewk_Window_Features *window_features, int *x, int *y, int *w, int *h)
{
EINA_SAFETY_ON_NULL_RETURN(window_features);
EINA_SAFETY_ON_NULL_RETURN(window_features->core);
Modified: trunk/Source/WebKit/efl/ewk/ewk_window_features.h (94062 => 94063)
--- trunk/Source/WebKit/efl/ewk/ewk_window_features.h 2011-08-30 09:36:11 UTC (rev 94062)
+++ trunk/Source/WebKit/efl/ewk/ewk_window_features.h 2011-08-30 09:39:00 UTC (rev 94063)
@@ -67,7 +67,7 @@
*
* @see ewk_window_features_int_property_get
*/
-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);
+EAPI void ewk_window_features_bool_property_get(const 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);
/**
* Gets int properties of an Ewk_Window_Features.
@@ -86,7 +86,7 @@
*
* @see ewk_window_features_bool_property_get
*/
-EAPI void ewk_window_features_int_property_get(Ewk_Window_Features *window_features, int *x, int *y, int *w, int *h);
+EAPI void ewk_window_features_int_property_get(const Ewk_Window_Features *window_features, int *x, int *y, int *w, int *h);
#ifdef __cplusplus
}