Changeset 118491 in webkit
- Timestamp:
- May 25, 2012 1:00:35 AM (12 years ago)
- Location:
- trunk/Source/WebKit/efl
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/efl/ChangeLog
r118366 r118491 1 2012-05-25 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> 2 3 [EFL] API for PageGroup visited links hash populating 4 https://bugs.webkit.org/show_bug.cgi?id=86370 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 Added "populate,visited,links" ewk_view signal that tells to the client managing 9 persistent history storage to fill the visited links cache. 10 Added API for the PageGroup visited links hash populating. 11 12 * WebCoreSupport/ChromeClientEfl.cpp: 13 (WebCore::ChromeClientEfl::populateVisitedLinks): Implementation added (sends notification). 14 (WebCore): 15 * WebCoreSupport/ChromeClientEfl.h: 16 (ChromeClientEfl): 17 * ewk/ewk_view.cpp: 18 (_Ewk_View_Private_Data): 19 (ewk_view_visited_link_add): PageGroup visited links hash populating. 20 * ewk/ewk_view.h: 21 1 22 2012-05-24 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> 2 23 -
trunk/Source/WebKit/efl/WebCoreSupport/ChromeClientEfl.cpp
r118123 r118491 410 410 } 411 411 412 void ChromeClientEfl::populateVisitedLinks() 413 { 414 evas_object_smart_callback_call(m_view, "populate,visited,links", 0); 415 } 416 412 417 #if ENABLE(TOUCH_EVENTS) 413 418 void ChromeClientEfl::needTouchEvents(bool needed) -
trunk/Source/WebKit/efl/WebCoreSupport/ChromeClientEfl.h
r118123 r118491 126 126 virtual void reachedApplicationCacheOriginQuota(SecurityOrigin*, int64_t totalSpaceNeeded); 127 127 128 virtual void populateVisitedLinks(); 129 128 130 #if ENABLE(TOUCH_EVENTS) 129 131 virtual void needTouchEvents(bool); -
trunk/Source/WebKit/efl/ewk/ewk_view.cpp
r118329 r118491 48 48 #include "LayoutTypes.h" 49 49 #include "PageClientEfl.h" 50 #include "PageGroup.h" 50 51 #include "PlatformMouseEvent.h" 51 52 #include "PopupMenuClient.h" … … 1706 1707 } 1707 1708 1709 Eina_Bool ewk_view_visited_link_add(Evas_Object* ewkView, const char* visitedUrl) 1710 { 1711 EWK_VIEW_SD_GET_OR_RETURN(ewkView, smartData, false); 1712 EWK_VIEW_PRIV_GET_OR_RETURN(smartData, priv, false); 1713 1714 EINA_SAFETY_ON_NULL_RETURN_VAL(priv->page, false); 1715 EINA_SAFETY_ON_NULL_RETURN_VAL(priv->page->groupPtr(), false); 1716 1717 WebCore::KURL kurl(WebCore::KURL(), WTF::String::fromUTF8(visitedUrl)); 1718 priv->page->groupPtr()->addVisitedLink(kurl); 1719 return true; 1720 } 1721 1708 1722 float ewk_view_zoom_get(const Evas_Object* ewkView) 1709 1723 { -
trunk/Source/WebKit/efl/ewk/ewk_view.h
r118329 r118491 74 74 * - "protocolhandler,registration,requested", Ewk_Custom_Handler_Data: add a handler url for the given protocol. 75 75 * - "onload,event", Evas_Object*: a frame onload event has been received. 76 * - "populate,visited,links": tells the client to fill the visited links set. 76 77 * - "ready", void: page is fully loaded. 77 78 * - "resource,request,new", Ewk_Frame_Resource_Request*: reports that … … 1102 1103 1103 1104 /** 1105 * Adds @a visited_url to the view's visited links cache. 1106 * 1107 * This function is to be invoked by the client managing persistent history storage 1108 * when "populate,visited,links" signal is received. 1109 * 1110 * @param o view object to add visited links data. 1111 * @param visited_url visited url. 1112 * 1113 * @return @c EINA_TRUE on success, @c EINA_FALSE on failure. 1114 */ 1115 EAPI Eina_Bool ewk_view_visited_link_add(Evas_Object *o, const char *visited_url); 1116 1117 /** 1104 1118 * Gets the current page zoom level of the main frame. 1105 1119 *
Note: See TracChangeset
for help on using the changeset viewer.