Changeset 118491 in webkit


Ignore:
Timestamp:
May 25, 2012 1:00:35 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] API for PageGroup visited links hash populating
https://bugs.webkit.org/show_bug.cgi?id=86370

Patch by Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> on 2012-05-25
Reviewed by Kenneth Rohde Christiansen.

Added "populate,visited,links" ewk_view signal that tells to the client managing
persistent history storage to fill the visited links cache.
Added API for the PageGroup visited links hash populating.

  • WebCoreSupport/ChromeClientEfl.cpp:

(WebCore::ChromeClientEfl::populateVisitedLinks): Implementation added (sends notification).
(WebCore):

  • WebCoreSupport/ChromeClientEfl.h:

(ChromeClientEfl):

  • ewk/ewk_view.cpp:

(_Ewk_View_Private_Data):
(ewk_view_visited_link_add): PageGroup visited links hash populating.

  • ewk/ewk_view.h:
Location:
trunk/Source/WebKit/efl
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/efl/ChangeLog

    r118366 r118491  
     12012-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
    1222012-05-24  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
    223
  • trunk/Source/WebKit/efl/WebCoreSupport/ChromeClientEfl.cpp

    r118123 r118491  
    410410}
    411411
     412void ChromeClientEfl::populateVisitedLinks()
     413{
     414    evas_object_smart_callback_call(m_view, "populate,visited,links", 0);
     415}
     416
    412417#if ENABLE(TOUCH_EVENTS)
    413418void ChromeClientEfl::needTouchEvents(bool needed)
  • trunk/Source/WebKit/efl/WebCoreSupport/ChromeClientEfl.h

    r118123 r118491  
    126126    virtual void reachedApplicationCacheOriginQuota(SecurityOrigin*, int64_t totalSpaceNeeded);
    127127
     128    virtual void populateVisitedLinks();
     129
    128130#if ENABLE(TOUCH_EVENTS)
    129131    virtual void needTouchEvents(bool);
  • trunk/Source/WebKit/efl/ewk/ewk_view.cpp

    r118329 r118491  
    4848#include "LayoutTypes.h"
    4949#include "PageClientEfl.h"
     50#include "PageGroup.h"
    5051#include "PlatformMouseEvent.h"
    5152#include "PopupMenuClient.h"
     
    17061707}
    17071708
     1709Eina_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
    17081722float ewk_view_zoom_get(const Evas_Object* ewkView)
    17091723{
  • trunk/Source/WebKit/efl/ewk/ewk_view.h

    r118329 r118491  
    7474 *  - "protocolhandler,registration,requested", Ewk_Custom_Handler_Data: add a handler url for the given protocol.
    7575 *  - "onload,event", Evas_Object*: a frame onload event has been received.
     76 *  - "populate,visited,links": tells the client to fill the visited links set.
    7677 *  - "ready", void: page is fully loaded.
    7778 *  - "resource,request,new", Ewk_Frame_Resource_Request*: reports that
     
    11021103
    11031104/**
     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 */
     1115EAPI Eina_Bool  ewk_view_visited_link_add(Evas_Object *o, const char *visited_url);
     1116
     1117/**
    11041118 * Gets the current page zoom level of the main frame.
    11051119 *
Note: See TracChangeset for help on using the changeset viewer.