2 * Copyright (C) 2010, 2011 Apple Inc. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23 * THE POSSIBILITY OF SUCH DAMAGE.
27 #import "PageClientImpl.h"
31 #import "AttributedString.h"
32 #import "ColorSpaceData.h"
33 #import "DataReference.h"
34 #import "DictionaryPopupInfo.h"
35 #import "DownloadProxy.h"
36 #import "FindIndicator.h"
37 #import "NativeWebKeyboardEvent.h"
38 #import "NativeWebWheelEvent.h"
39 #import "NavigationState.h"
40 #import "StringUtilities.h"
41 #import "ViewSnapshotStore.h"
43 #import "WKFullScreenWindowController.h"
44 #import "WKStringCF.h"
45 #import "WKViewInternal.h"
46 #import "WKWebViewInternal.h"
47 #import "WebColorPickerMac.h"
48 #import "WebContextMenuProxyMac.h"
49 #import "WebEditCommandProxy.h"
50 #import "WebPopupMenuProxyMac.h"
51 #import "WindowServerConnection.h"
52 #import "_WKDownloadInternal.h"
53 #import "_WKThumbnailView.h"
54 #import <WebCore/AlternativeTextUIController.h>
55 #import <WebCore/BitmapImage.h>
56 #import <WebCore/Cursor.h>
57 #import <WebCore/FloatRect.h>
58 #import <WebCore/GraphicsContext.h>
59 #import <WebCore/Image.h>
60 #import <WebCore/KeyboardEvent.h>
61 #import <WebCore/NotImplemented.h>
62 #import <WebCore/SharedBuffer.h>
63 #import <WebCore/TextUndoInsertionMarkupMac.h>
64 #import <WebKitSystemInterface.h>
65 #import <wtf/text/CString.h>
66 #import <wtf/text/WTFString.h>
68 #if USE(DICTATION_ALTERNATIVES)
69 #import <AppKit/NSTextAlternatives.h>
72 @interface NSApplication (WebNSApplicationDetails)
73 - (NSCursor *)_cursorRectCursor;
76 #if HAVE(OUT_OF_PROCESS_LAYER_HOSTING)
77 @interface NSWindow (WebNSWindowDetails)
78 - (BOOL)_hostsLayersInWindowServer;
82 using namespace WebCore;
83 using namespace WebKit;
85 @interface WKEditCommandObjC : NSObject
87 RefPtr<WebEditCommandProxy> m_command;
89 - (id)initWithWebEditCommandProxy:(PassRefPtr<WebEditCommandProxy>)command;
90 - (WebEditCommandProxy*)command;
93 @interface WKEditorUndoTargetObjC : NSObject
94 - (void)undoEditing:(id)sender;
95 - (void)redoEditing:(id)sender;
98 @implementation WKEditCommandObjC
100 - (id)initWithWebEditCommandProxy:(PassRefPtr<WebEditCommandProxy>)command
110 - (WebEditCommandProxy*)command
112 return m_command.get();
117 @implementation WKEditorUndoTargetObjC
119 - (void)undoEditing:(id)sender
121 ASSERT([sender isKindOfClass:[WKEditCommandObjC class]]);
122 [sender command]->unapply();
125 - (void)redoEditing:(id)sender
127 ASSERT([sender isKindOfClass:[WKEditCommandObjC class]]);
128 [sender command]->reapply();
135 PageClientImpl::PageClientImpl(WKView* wkView, WKWebView *webView)
138 , m_undoTarget(adoptNS([[WKEditorUndoTargetObjC alloc] init]))
139 #if USE(DICTATION_ALTERNATIVES)
140 , m_alternativeTextUIController(adoptPtr(new AlternativeTextUIController))
144 ASSERT_UNUSED(m_webView, !m_webView);
148 PageClientImpl::~PageClientImpl()
152 std::unique_ptr<DrawingAreaProxy> PageClientImpl::createDrawingAreaProxy()
154 return [m_wkView _createDrawingAreaProxy];
157 void PageClientImpl::setViewNeedsDisplay(const WebCore::IntRect& rect)
159 ASSERT_NOT_REACHED();
162 void PageClientImpl::displayView()
164 ASSERT_NOT_REACHED();
167 bool PageClientImpl::canScrollView()
172 void PageClientImpl::scrollView(const IntRect& scrollRect, const IntSize& scrollOffset)
174 ASSERT_NOT_REACHED();
177 void PageClientImpl::requestScroll(const FloatPoint& scrollPosition, bool isProgrammaticScroll)
179 ASSERT_NOT_REACHED();
182 IntSize PageClientImpl::viewSize()
184 return IntSize([m_wkView bounds].size);
187 NSView *PageClientImpl::activeView() const
190 return m_wkView._thumbnailView ? (NSView *)m_wkView._thumbnailView : (NSView *)m_wkView;
196 bool PageClientImpl::isViewWindowActive()
198 NSWindow *activeViewWindow = activeView().window;
199 return activeViewWindow.isKeyWindow || [NSApp keyWindow] == activeViewWindow;
202 bool PageClientImpl::isViewFocused()
204 return [m_wkView _isFocused];
207 void PageClientImpl::makeFirstResponder()
209 [[m_wkView window] makeFirstResponder:m_wkView];
212 bool PageClientImpl::isViewVisible()
214 NSView *activeView = this->activeView();
215 NSWindow *activeViewWindow = activeView.window;
217 if (!activeViewWindow)
220 if (!activeViewWindow.isVisible)
223 #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1080
224 // Mountain Lion and previous do not support occlusion notifications, and as such will
225 // continue to report as "visible" when not on the active space.
226 if (!activeViewWindow.isOnActiveSpace)
230 if (activeView.isHiddenOrHasHiddenAncestor)
233 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
234 if ([m_wkView windowOcclusionDetectionEnabled] && (activeViewWindow.occlusionState & NSWindowOcclusionStateVisible) != NSWindowOcclusionStateVisible)
241 bool PageClientImpl::isViewVisibleOrOccluded()
243 return activeView().window.isVisible;
246 bool PageClientImpl::isViewInWindow()
248 return activeView().window;
251 bool PageClientImpl::isVisuallyIdle()
253 return WindowServerConnection::shared().applicationWindowModificationsHaveStopped() || !isViewVisible();
256 LayerHostingMode PageClientImpl::viewLayerHostingMode()
258 #if HAVE(OUT_OF_PROCESS_LAYER_HOSTING)
259 if ([activeView().window _hostsLayersInWindowServer])
260 return LayerHostingMode::OutOfProcess;
262 return LayerHostingMode::InProcess;
265 void PageClientImpl::viewWillMoveToAnotherWindow()
267 clearAllEditCommands();
270 ColorSpaceData PageClientImpl::colorSpace()
272 return [m_wkView _colorSpace];
275 void PageClientImpl::processDidExit()
277 [m_wkView _processDidExit];
280 void PageClientImpl::pageClosed()
282 [m_wkView _pageClosed];
283 #if USE(DICTATION_ALTERNATIVES)
284 m_alternativeTextUIController->clear();
288 void PageClientImpl::didRelaunchProcess()
290 [m_wkView _didRelaunchProcess];
293 void PageClientImpl::preferencesDidChange()
295 [m_wkView _preferencesDidChange];
298 void PageClientImpl::toolTipChanged(const String& oldToolTip, const String& newToolTip)
300 [m_wkView _toolTipChangedFrom:nsStringFromWebCoreString(oldToolTip) to:nsStringFromWebCoreString(newToolTip)];
303 void PageClientImpl::didCommitLoadForMainFrame(const String& mimeType, bool useCustomContentProvider)
307 void PageClientImpl::didFinishLoadingDataForCustomContentProvider(const String& suggestedFilename, const IPC::DataReference& dataReference)
311 void PageClientImpl::handleDownloadRequest(DownloadProxy* download)
313 ASSERT_ARG(download, download);
315 ASSERT([download->wrapper() isKindOfClass:[_WKDownload class]]);
316 [static_cast<_WKDownload *>(download->wrapper()) setOriginatingWebView:m_webView];
320 void PageClientImpl::setCursor(const WebCore::Cursor& cursor)
322 // FIXME: Would be nice to share this code with WebKit1's WebChromeClient.
324 if ([NSApp _cursorRectCursor])
330 NSWindow *window = [m_wkView window];
334 if ([window windowNumber] != [NSWindow windowNumberAtPoint:[NSEvent mouseLocation] belowWindowWithWindowNumber:0])
337 NSCursor *platformCursor = cursor.platformCursor();
338 if ([NSCursor currentCursor] == platformCursor)
341 [platformCursor set];
344 void PageClientImpl::setCursorHiddenUntilMouseMoves(bool hiddenUntilMouseMoves)
346 [NSCursor setHiddenUntilMouseMoves:hiddenUntilMouseMoves];
349 void PageClientImpl::didChangeViewportProperties(const WebCore::ViewportAttributes&)
353 void PageClientImpl::registerEditCommand(PassRefPtr<WebEditCommandProxy> prpCommand, WebPageProxy::UndoOrRedo undoOrRedo)
355 RefPtr<WebEditCommandProxy> command = prpCommand;
357 RetainPtr<WKEditCommandObjC> commandObjC = adoptNS([[WKEditCommandObjC alloc] initWithWebEditCommandProxy:command]);
358 String actionName = WebEditCommandProxy::nameForEditAction(command->editAction());
360 NSUndoManager *undoManager = [m_wkView undoManager];
361 [undoManager registerUndoWithTarget:m_undoTarget.get() selector:((undoOrRedo == WebPageProxy::Undo) ? @selector(undoEditing:) : @selector(redoEditing:)) object:commandObjC.get()];
362 if (!actionName.isEmpty())
363 [undoManager setActionName:(NSString *)actionName];
366 #if USE(INSERTION_UNDO_GROUPING)
367 void PageClientImpl::registerInsertionUndoGrouping()
369 registerInsertionUndoGroupingWithUndoManager([m_wkView undoManager]);
373 void PageClientImpl::clearAllEditCommands()
375 [[m_wkView undoManager] removeAllActionsWithTarget:m_undoTarget.get()];
378 bool PageClientImpl::canUndoRedo(WebPageProxy::UndoOrRedo undoOrRedo)
380 return (undoOrRedo == WebPageProxy::Undo) ? [[m_wkView undoManager] canUndo] : [[m_wkView undoManager] canRedo];
383 void PageClientImpl::executeUndoRedo(WebPageProxy::UndoOrRedo undoOrRedo)
385 return (undoOrRedo == WebPageProxy::Undo) ? [[m_wkView undoManager] undo] : [[m_wkView undoManager] redo];
388 void PageClientImpl::setDragImage(const IntPoint& clientPosition, PassRefPtr<ShareableBitmap> dragImage, bool isLinkDrag)
390 RetainPtr<CGImageRef> dragCGImage = dragImage->makeCGImage();
391 RetainPtr<NSImage> dragNSImage = adoptNS([[NSImage alloc] initWithCGImage:dragCGImage.get() size:dragImage->size()]);
393 [m_wkView _setDragImage:dragNSImage.get() at:clientPosition linkDrag:isLinkDrag];
396 void PageClientImpl::setPromisedData(const String& pasteboardName, PassRefPtr<SharedBuffer> imageBuffer, const String& filename, const String& extension, const String& title, const String& url, const String& visibleUrl, PassRefPtr<SharedBuffer> archiveBuffer)
398 RefPtr<Image> image = BitmapImage::create();
399 image->setData(imageBuffer.get(), true);
400 [m_wkView _setPromisedData:image.get() withFileName:filename withExtension:extension withTitle:title withURL:url withVisibleURL:visibleUrl withArchive:archiveBuffer.get() forPasteboard:pasteboardName];
403 void PageClientImpl::updateSecureInputState()
405 [m_wkView _updateSecureInputState];
408 void PageClientImpl::resetSecureInputState()
410 [m_wkView _resetSecureInputState];
413 void PageClientImpl::notifyInputContextAboutDiscardedComposition()
415 [m_wkView _notifyInputContextAboutDiscardedComposition];
418 FloatRect PageClientImpl::convertToDeviceSpace(const FloatRect& rect)
420 return [m_wkView _convertToDeviceSpace:rect];
423 FloatRect PageClientImpl::convertToUserSpace(const FloatRect& rect)
425 return [m_wkView _convertToUserSpace:rect];
428 IntPoint PageClientImpl::screenToRootView(const IntPoint& point)
430 #pragma clang diagnostic push
431 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
432 NSPoint windowCoord = [[m_wkView window] convertScreenToBase:point];
433 #pragma clang diagnostic pop
434 return IntPoint([m_wkView convertPoint:windowCoord fromView:nil]);
437 IntRect PageClientImpl::rootViewToScreen(const IntRect& rect)
439 NSRect tempRect = rect;
440 tempRect = [m_wkView convertRect:tempRect toView:nil];
441 #pragma clang diagnostic push
442 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
443 tempRect.origin = [[m_wkView window] convertBaseToScreen:tempRect.origin];
444 #pragma clang diagnostic pop
445 return enclosingIntRect(tempRect);
448 void PageClientImpl::doneWithKeyEvent(const NativeWebKeyboardEvent& event, bool eventWasHandled)
450 [m_wkView _doneWithKeyEvent:event.nativeEvent() eventWasHandled:eventWasHandled];
453 PassRefPtr<WebPopupMenuProxy> PageClientImpl::createPopupMenuProxy(WebPageProxy* page)
455 return WebPopupMenuProxyMac::create(m_wkView, page);
458 PassRefPtr<WebContextMenuProxy> PageClientImpl::createContextMenuProxy(WebPageProxy* page)
460 return WebContextMenuProxyMac::create(m_wkView, page);
463 #if ENABLE(INPUT_TYPE_COLOR)
464 PassRefPtr<WebColorPicker> PageClientImpl::createColorPicker(WebPageProxy* page, const WebCore::Color& initialColor, const WebCore::IntRect& rect)
466 return WebColorPickerMac::create(page, initialColor, rect, wkView());
470 void PageClientImpl::setFindIndicator(PassRefPtr<FindIndicator> findIndicator, bool fadeOut, bool animate)
472 [m_wkView _setFindIndicator:findIndicator fadeOut:fadeOut animate:animate];
475 void PageClientImpl::accessibilityWebProcessTokenReceived(const IPC::DataReference& data)
477 NSData* remoteToken = [NSData dataWithBytes:data.data() length:data.size()];
478 [m_wkView _setAccessibilityWebProcessToken:remoteToken];
481 void PageClientImpl::enterAcceleratedCompositingMode(const LayerTreeContext& layerTreeContext)
483 ASSERT(!layerTreeContext.isEmpty());
485 CALayer *renderLayer = WKMakeRenderLayer(layerTreeContext.contextID);
486 [m_wkView _setAcceleratedCompositingModeRootLayer:renderLayer];
489 void PageClientImpl::exitAcceleratedCompositingMode()
491 [m_wkView _setAcceleratedCompositingModeRootLayer:nil];
494 void PageClientImpl::updateAcceleratedCompositingMode(const LayerTreeContext& layerTreeContext)
496 ASSERT(!layerTreeContext.isEmpty());
498 CALayer *renderLayer = WKMakeRenderLayer(layerTreeContext.contextID);
499 [m_wkView _setAcceleratedCompositingModeRootLayer:renderLayer];
502 void PageClientImpl::setAcceleratedCompositingRootLayer(CALayer *rootLayer)
504 [m_wkView _setAcceleratedCompositingModeRootLayer:rootLayer];
507 CALayer *PageClientImpl::acceleratedCompositingRootLayer() const
509 return m_wkView._acceleratedCompositingModeRootLayer;
512 PassRefPtr<ViewSnapshot> PageClientImpl::takeViewSnapshot()
514 return [m_wkView _takeViewSnapshot];
517 void PageClientImpl::wheelEventWasNotHandledByWebCore(const NativeWebWheelEvent& event)
519 [m_wkView _wheelEventWasNotHandledByWebCore:event.nativeEvent()];
522 void PageClientImpl::pluginFocusOrWindowFocusChanged(uint64_t pluginComplexTextInputIdentifier, bool pluginHasFocusAndWindowHasFocus)
524 [m_wkView _pluginFocusOrWindowFocusChanged:pluginHasFocusAndWindowHasFocus pluginComplexTextInputIdentifier:pluginComplexTextInputIdentifier];
527 void PageClientImpl::setPluginComplexTextInputState(uint64_t pluginComplexTextInputIdentifier, PluginComplexTextInputState pluginComplexTextInputState)
529 [m_wkView _setPluginComplexTextInputState:pluginComplexTextInputState pluginComplexTextInputIdentifier:pluginComplexTextInputIdentifier];
532 void PageClientImpl::didPerformDictionaryLookup(const AttributedString& text, const DictionaryPopupInfo& dictionaryPopupInfo)
534 RetainPtr<NSAttributedString> attributedString = text.string;
535 NSPoint textBaselineOrigin = dictionaryPopupInfo.origin;
537 // Convert to screen coordinates.
538 textBaselineOrigin = [m_wkView convertPoint:textBaselineOrigin toView:nil];
539 textBaselineOrigin = [m_wkView.window convertRectToScreen:NSMakeRect(textBaselineOrigin.x, textBaselineOrigin.y, 0, 0)].origin;
541 WKShowWordDefinitionWindow(attributedString.get(), textBaselineOrigin, (NSDictionary *)dictionaryPopupInfo.options.get());
544 void PageClientImpl::dismissDictionaryLookupPanel()
546 // FIXME: We don't know which panel we are dismissing, it may not even be in the current page (see <rdar://problem/13875766>).
547 WKHideWordDefinitionWindow();
550 void PageClientImpl::showCorrectionPanel(AlternativeTextType type, const FloatRect& boundingBoxOfReplacedString, const String& replacedString, const String& replacementString, const Vector<String>& alternativeReplacementStrings)
552 #if USE(AUTOCORRECTION_PANEL)
553 if (!isViewVisible() || !isViewInWindow())
555 m_correctionPanel.show(m_wkView, type, boundingBoxOfReplacedString, replacedString, replacementString, alternativeReplacementStrings);
559 void PageClientImpl::dismissCorrectionPanel(ReasonForDismissingAlternativeText reason)
561 #if USE(AUTOCORRECTION_PANEL)
562 m_correctionPanel.dismiss(reason);
566 String PageClientImpl::dismissCorrectionPanelSoon(WebCore::ReasonForDismissingAlternativeText reason)
568 #if USE(AUTOCORRECTION_PANEL)
569 return m_correctionPanel.dismiss(reason);
575 void PageClientImpl::recordAutocorrectionResponse(AutocorrectionResponseType responseType, const String& replacedString, const String& replacementString)
577 NSCorrectionResponse response = responseType == AutocorrectionReverted ? NSCorrectionResponseReverted : NSCorrectionResponseEdited;
578 CorrectionPanel::recordAutocorrectionResponse(m_wkView, response, replacedString, replacementString);
581 void PageClientImpl::recommendedScrollbarStyleDidChange(int32_t newStyle)
583 NSArray *trackingAreas = [m_wkView trackingAreas];
584 NSUInteger count = [trackingAreas count];
587 for (NSUInteger i = 0; i < count; ++i)
588 [m_wkView removeTrackingArea:[trackingAreas objectAtIndex:i]];
590 // Now re-create a tracking area with the appropriate options given the new scrollbar style
591 NSTrackingAreaOptions options = NSTrackingMouseMoved | NSTrackingMouseEnteredAndExited | NSTrackingInVisibleRect;
592 if (newStyle == NSScrollerStyleLegacy)
593 options |= NSTrackingActiveAlways;
595 options |= NSTrackingActiveInKeyWindow;
597 NSTrackingArea *trackingArea = [[NSTrackingArea alloc] initWithRect:[m_wkView frame]
601 [m_wkView addTrackingArea:trackingArea];
602 [trackingArea release];
605 void PageClientImpl::intrinsicContentSizeDidChange(const IntSize& intrinsicContentSize)
607 [m_wkView _setIntrinsicContentSize:intrinsicContentSize];
610 bool PageClientImpl::executeSavedCommandBySelector(const String& selectorString)
612 return [m_wkView _executeSavedCommandBySelector:NSSelectorFromString(selectorString)];
615 #if USE(DICTATION_ALTERNATIVES)
616 uint64_t PageClientImpl::addDictationAlternatives(const RetainPtr<NSTextAlternatives>& alternatives)
618 return m_alternativeTextUIController->addAlternatives(alternatives);
621 void PageClientImpl::removeDictationAlternatives(uint64_t dictationContext)
623 m_alternativeTextUIController->removeAlternatives(dictationContext);
626 void PageClientImpl::showDictationAlternativeUI(const WebCore::FloatRect& boundingBoxOfDictatedText, uint64_t dictationContext)
628 if (!isViewVisible() || !isViewInWindow())
630 m_alternativeTextUIController->showAlternatives(m_wkView, boundingBoxOfDictatedText, dictationContext, ^(NSString* acceptedAlternative){
631 [m_wkView handleAcceptedAlternativeText:acceptedAlternative];
635 Vector<String> PageClientImpl::dictationAlternatives(uint64_t dictationContext)
637 return m_alternativeTextUIController->alternativesForContext(dictationContext);
641 #if ENABLE(FULLSCREEN_API)
643 WebFullScreenManagerProxyClient& PageClientImpl::fullScreenManagerProxyClient()
648 // WebFullScreenManagerProxyClient
650 void PageClientImpl::closeFullScreenManager()
652 [m_wkView _closeFullScreenWindowController];
655 bool PageClientImpl::isFullScreen()
657 if (!m_wkView._hasFullScreenWindowController)
660 return m_wkView._fullScreenWindowController.isFullScreen;
663 void PageClientImpl::enterFullScreen()
665 [m_wkView._fullScreenWindowController enterFullScreen:nil];
668 void PageClientImpl::exitFullScreen()
670 [m_wkView._fullScreenWindowController exitFullScreen];
673 void PageClientImpl::beganEnterFullScreen(const IntRect& initialFrame, const IntRect& finalFrame)
675 [m_wkView._fullScreenWindowController beganEnterFullScreenWithInitialFrame:initialFrame finalFrame:finalFrame];
678 void PageClientImpl::beganExitFullScreen(const IntRect& initialFrame, const IntRect& finalFrame)
680 [m_wkView._fullScreenWindowController beganExitFullScreenWithInitialFrame:initialFrame finalFrame:finalFrame];
683 #endif // ENABLE(FULLSCREEN_API)
685 void PageClientImpl::navigationGestureDidBegin()
689 NavigationState::fromWebPage(*m_webView->_page).navigationGestureDidBegin();
693 void PageClientImpl::navigationGestureWillEnd(bool willNavigate, WebBackForwardListItem& item)
697 NavigationState::fromWebPage(*m_webView->_page).navigationGestureWillEnd(willNavigate, item);
699 UNUSED_PARAM(willNavigate);
704 void PageClientImpl::navigationGestureDidEnd(bool willNavigate, WebBackForwardListItem& item)
708 NavigationState::fromWebPage(*m_webView->_page).navigationGestureDidEnd(willNavigate, item);
710 UNUSED_PARAM(willNavigate);
715 void PageClientImpl::willRecordNavigationSnapshot(WebBackForwardListItem& item)
719 NavigationState::fromWebPage(*m_webView->_page).willRecordNavigationSnapshot(item);
725 } // namespace WebKit
727 #endif // PLATFORM(MAC)