Changeset 163404 in webkit
- Timestamp:
- Feb 4, 2014 2:41:13 PM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r163400 r163404 1 2014-02-04 Anders Carlsson <andersca@apple.com> 2 3 Add back/forward related methods to WKWebView 4 https://bugs.webkit.org/show_bug.cgi?id=128209 5 6 Reviewed by Dan Bernstein. 7 8 * UIProcess/API/Cocoa/WKWebView.h: 9 * UIProcess/API/Cocoa/WKWebView.mm: 10 (-[WKWebView canGoBack]): 11 (-[WKWebView canGoForward]): 12 (-[WKWebView goBack]): 13 (-[WKWebView goForward]): 14 1 15 2014-02-04 Enrica Casucci <enrica@apple.com> 2 16 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h
r163358 r163404 82 82 @property (nonatomic, readonly) BOOL hasOnlySecureContent; 83 83 84 @property(readonly) BOOL canGoBack; 85 @property(readonly) BOOL canGoForward; 86 87 - (void)goBack; 88 - (void)goForward; 89 84 90 @end 85 91 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm
r163388 r163404 34 34 #import "WKProcessClass.h" 35 35 #import "WKWebViewConfiguration.h" 36 #import "WebBackForwardList.h" 36 37 #import "WebPageProxy.h" 37 38 #import <wtf/RetainPtr.h> … … 154 155 { 155 156 return _page->pageLoadState().hasOnlySecureContent(); 157 } 158 159 // FIXME: This should be KVO compliant. 160 - (BOOL)canGoBack 161 { 162 return !!_page->backForwardList().backItem(); 163 } 164 165 // FIXME: This should be KVO compliant. 166 - (BOOL)canGoForward 167 { 168 return !!_page->backForwardList().forwardItem(); 169 } 170 171 // FIXME: This should return a WKNavigation object. 172 - (void)goBack 173 { 174 _page->goBack(); 175 } 176 177 // FIXME: This should return a WKNavigation object. 178 - (void)goForward 179 { 180 _page->goForward(); 156 181 } 157 182
Note: See TracChangeset
for help on using the changeset viewer.