diff options
Diffstat (limited to 'WebKitTools/DumpRenderTree/mac/HistoryDelegate.mm')
-rw-r--r-- | WebKitTools/DumpRenderTree/mac/HistoryDelegate.mm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/WebKitTools/DumpRenderTree/mac/HistoryDelegate.mm b/WebKitTools/DumpRenderTree/mac/HistoryDelegate.mm index 9e2b836..cbc4093 100644 --- a/WebKitTools/DumpRenderTree/mac/HistoryDelegate.mm +++ b/WebKitTools/DumpRenderTree/mac/HistoryDelegate.mm @@ -29,6 +29,7 @@ #import "LayoutTestController.h" #import <WebKit/WebNavigationData.h> +#import <WebKit/WebView.h> @interface NSURL (DRTExtras) - (NSString *)_drt_descriptionSuitableForTestResult; @@ -71,4 +72,10 @@ printf("WebView updated the title for history URL \"%s\" to \"%s\".\n", [[[NSURL URLWithString:url]_drt_descriptionSuitableForTestResult] UTF8String], [title UTF8String]); } +- (void)populateVisitedLinksForWebView:(WebView *)webView +{ + if (gLayoutTestController->dumpVisitedLinksCallback()) + printf("Asked to populate visited links for WebView \"%s\"\n", [[[NSURL URLWithString:[webView mainFrameURL]] _drt_descriptionSuitableForTestResult] UTF8String]); +} + @end |