void PageClientImpl::startDrag(const WebCore::DragData& dragData, PassRefPtr<ShareableBitmap> dragImage) { webkitWebViewBaseStartDrag(WEBKIT_WEB_VIEW_BASE(m_viewWidget), dragData, dragImage); }
void PageClientImpl::toolTipChanged(const String&, const String& newToolTip) { webkitWebViewBaseSetTooltipText(WEBKIT_WEB_VIEW_BASE(m_viewWidget), newToolTip.utf8().data()); }
void PageClientImpl::updateTextInputState() { webkitWebViewBaseUpdateTextInputState(WEBKIT_WEB_VIEW_BASE(m_viewWidget)); }
bool PageClientImpl::isViewFocused() { return webkitWebViewBaseIsFocused(WEBKIT_WEB_VIEW_BASE(m_viewWidget)); }
bool PageClientImpl::isViewVisible() { return webkitWebViewBaseIsVisible(WEBKIT_WEB_VIEW_BASE(m_viewWidget)); }
// PageClient's pure virtual functions std::unique_ptr<DrawingAreaProxy> PageClientImpl::createDrawingAreaProxy() { return std::make_unique<DrawingAreaProxyImpl>(webkitWebViewBaseGetPage(WEBKIT_WEB_VIEW_BASE(m_viewWidget))); }
void PageClientImpl::enterAcceleratedCompositingMode(const LayerTreeContext&) { webkitWebViewBaseEnterAcceleratedCompositingMode(WEBKIT_WEB_VIEW_BASE(m_viewWidget)); }
WebCore::IntSize PageClientImpl::viewSize() { auto* drawingArea = static_cast<DrawingAreaProxyImpl*>(webkitWebViewBaseGetPage(WEBKIT_WEB_VIEW_BASE(m_viewWidget))->drawingArea()); return drawingArea ? drawingArea->size() : IntSize(); }
void PageClientImpl::didCommitLoadForMainFrame() { webkitWebViewBaseResetClickCounter(WEBKIT_WEB_VIEW_BASE(m_viewWidget)); }
void PageClientImpl::didChangeContentSize(const IntSize& size) { webkitWebViewBaseSetContentsSize(WEBKIT_WEB_VIEW_BASE(m_viewWidget), size); }
void PageClientImpl::wheelEventWasNotHandledByWebCore(const NativeWebWheelEvent& event) { webkitWebViewBaseForwardNextWheelEvent(WEBKIT_WEB_VIEW_BASE(m_viewWidget)); gtk_main_do_event(event.nativeEvent()); }
void PageClientImpl::selectionDidChange() { webkitWebViewBaseUpdateTextInputState(WEBKIT_WEB_VIEW_BASE(m_viewWidget)); if (WEBKIT_IS_WEB_VIEW(m_viewWidget)) webkitWebViewSelectionDidChange(WEBKIT_WEB_VIEW(m_viewWidget)); }
void PageClientImpl::pageClosed() { webkitWebViewBasePageClosed(WEBKIT_WEB_VIEW_BASE(m_viewWidget)); }
void PageClientImpl::willEnterAcceleratedCompositingMode() { webkitWebViewBaseWillEnterAcceleratedCompositingMode(WEBKIT_WEB_VIEW_BASE(m_viewWidget)); }
void PageClientImpl::handleDownloadRequest(DownloadProxy* download) { webkitWebViewBaseHandleDownloadRequest(WEBKIT_WEB_VIEW_BASE(m_viewWidget), download); }
WebContextMenuProxyGtk::WebContextMenuProxyGtk(GtkWidget* webView, WebPageProxy* page) : m_webView(webView) , m_page(page) { webkitWebViewBaseSetActiveContextMenuProxy(WEBKIT_WEB_VIEW_BASE(m_webView), this); }
void PageClientImpl::didCommitLoadForMainFrame(const String& /* mimeType */, bool /* useCustomContentProvider */ ) { webkitWebViewBaseResetClickCounter(WEBKIT_WEB_VIEW_BASE(m_viewWidget)); }
// PageClient's pure virtual functions PassOwnPtr<DrawingAreaProxy> PageClientImpl::createDrawingAreaProxy() { return DrawingAreaProxyImpl::create(webkitWebViewBaseGetPage(WEBKIT_WEB_VIEW_BASE(m_viewWidget))); }
bool PageClientImpl::isViewWindowActive() { return webkitWebViewBaseIsInWindowActive(WEBKIT_WEB_VIEW_BASE(m_viewWidget)); }
void PageClientImpl::didRelaunchProcess() { webkitWebViewBaseDidRelaunchWebProcess(WEBKIT_WEB_VIEW_BASE(m_viewWidget)); }