Changeset 160862 in webkit


Ignore:
Timestamp:
Dec 19, 2013 3:14:27 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Add WebKit2 API for clearing the back-forward list
https://bugs.webkit.org/show_bug.cgi?id=126005

Patch by Ricky Mondello <Ricky Mondello> on 2013-12-19
Reviewed by Anders Carlsson.

  • UIProcess/API/C/WKBackForwardListRef.cpp:

(WKBackForwardListClear): Call through to the back-forward list's clear().

  • UIProcess/API/C/WKBackForwardListRef.h: Declare new API.
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r160861 r160862  
     12013-12-19  Ricky Mondello  <rmondello@apple.com>
     2
     3        Add WebKit2 API for clearing the back-forward list
     4        https://bugs.webkit.org/show_bug.cgi?id=126005
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * UIProcess/API/C/WKBackForwardListRef.cpp:
     9        (WKBackForwardListClear): Call through to the back-forward list's `clear()`.
     10        * UIProcess/API/C/WKBackForwardListRef.h: Declare new API.
     11
    1122013-12-19  Csaba Osztrogonác  <ossy@webkit.org>
    213
  • trunk/Source/WebKit2/UIProcess/API/C/WKBackForwardListRef.cpp

    r159269 r160862  
    5858}
    5959
     60void WKBackForwardListClear(WKBackForwardListRef listRef)
     61{
     62    toImpl(listRef)->clear();
     63}
     64
    6065unsigned WKBackForwardListGetBackListCount(WKBackForwardListRef listRef)
    6166{
  • trunk/Source/WebKit2/UIProcess/API/C/WKBackForwardListRef.h

    r157748 r160862  
    4040WK_EXPORT WKBackForwardListItemRef WKBackForwardListGetItemAtIndex(WKBackForwardListRef list, int index);
    4141
     42WK_EXPORT void WKBackForwardListClear(WKBackForwardListRef list);
     43
    4244WK_EXPORT unsigned WKBackForwardListGetBackListCount(WKBackForwardListRef list);
    4345WK_EXPORT unsigned WKBackForwardListGetForwardListCount(WKBackForwardListRef list);
Note: See TracChangeset for help on using the changeset viewer.