RefCounter<T>::Event -> RefCounterEvent
[WebKit-https.git] / Source / WebKit2 / UIProcess / WebPageProxy.h
1 /*
2  * Copyright (C) 2010, 2011, 2014-2015 Apple Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
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.
12  *
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.
24  */
25
26 #ifndef WebPageProxy_h
27 #define WebPageProxy_h
28
29 #include "APIObject.h"
30 #include "APISession.h"
31 #include "AssistedNodeInformation.h"
32 #include "AutoCorrectionCallback.h"
33 #include "Connection.h"
34 #include "ContextMenuContextData.h"
35 #include "DownloadID.h"
36 #include "DragControllerAction.h"
37 #include "DrawingAreaProxy.h"
38 #include "EditingRange.h"
39 #include "EditorState.h"
40 #include "GeolocationPermissionRequestManagerProxy.h"
41 #include "LayerTreeContext.h"
42 #include "MessageSender.h"
43 #include "NotificationPermissionRequestManagerProxy.h"
44 #include "PageLoadState.h"
45 #include "ProcessThrottler.h"
46 #include "SandboxExtension.h"
47 #include "ShareableBitmap.h"
48 #include "UserMediaPermissionRequestManagerProxy.h"
49 #include "VisibleContentRectUpdateInfo.h"
50 #include "WKBase.h"
51 #include "WKPagePrivate.h"
52 #include "WebColorPicker.h"
53 #include "WebContextMenuItemData.h"
54 #include "WebCoreArgumentCoders.h"
55 #include "WebFrameProxy.h"
56 #include "WebPageCreationParameters.h"
57 #include "WebPageDiagnosticLoggingClient.h"
58 #include "WebPageInjectedBundleClient.h"
59 #include "WebPreferences.h"
60 #include <WebCore/AlternativeTextClient.h> // FIXME: Needed by WebPageProxyMessages.h for DICTATION_ALTERNATIVES.
61 #include "WebPageProxyMessages.h"
62 #include "WebPopupMenuProxy.h"
63 #include "WebProcessLifetimeTracker.h"
64 #include <WebCore/Color.h>
65 #include <WebCore/DragActions.h>
66 #include <WebCore/FrameLoaderTypes.h>
67 #include <WebCore/HitTestResult.h>
68 #include <WebCore/MediaProducer.h>
69 #include <WebCore/Page.h>
70 #include <WebCore/PlatformScreen.h>
71 #include <WebCore/ScrollTypes.h>
72 #include <WebCore/SearchPopupMenu.h>
73 #include <WebCore/TextChecking.h>
74 #include <WebCore/TextGranularity.h>
75 #include <WebCore/ViewState.h>
76 #include <WebCore/VisibleSelection.h>
77 #include <memory>
78 #include <wtf/HashMap.h>
79 #include <wtf/HashSet.h>
80 #include <wtf/PassRefPtr.h>
81 #include <wtf/Ref.h>
82 #include <wtf/RefPtr.h>
83 #include <wtf/Vector.h>
84 #include <wtf/text/WTFString.h>
85
86 OBJC_CLASS NSView;
87 OBJC_CLASS _WKRemoteObjectRegistry;
88
89 #if ENABLE(DRAG_SUPPORT)
90 #include <WebCore/DragActions.h>
91 #endif
92
93 #if ENABLE(TOUCH_EVENTS)
94 #include "NativeWebTouchEvent.h"
95 #endif
96
97 #if PLATFORM(COCOA)
98 #include "LayerRepresentation.h"
99 #endif
100
101 #if PLATFORM(MAC)
102 #include "AttributedString.h"
103 #endif
104
105 #if PLATFORM(IOS)
106 #include "ProcessThrottler.h"
107 #endif
108
109 #if PLATFORM(GTK)
110 #include "ArgumentCodersGtk.h"
111 #endif
112
113 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS)
114 #include <WebCore/MediaPlaybackTargetPicker.h>
115 #include <WebCore/WebMediaSessionManagerClient.h>
116 #endif
117
118 #if USE(APPLE_INTERNAL_SDK)
119 #include <WebKitAdditions/WebPageProxyIncludes.h>
120 #endif
121
122 #if ENABLE(MEDIA_SESSION)
123 namespace WebCore {
124 class MediaSessionMetadata;
125 }
126 #endif
127
128 namespace API {
129 class ContextMenuClient;
130 class FindClient;
131 class FindMatchesClient;
132 class FormClient;
133 class HistoryClient;
134 class LoaderClient;
135 class Navigation;
136 class NavigationClient;
137 class PolicyClient;
138 class UIClient;
139 class URLRequest;
140 }
141
142 namespace IPC {
143 class ArgumentDecoder;
144 class Connection;
145 }
146
147 namespace WebCore {
148 class AuthenticationChallenge;
149 class Cursor;
150 class DragData;
151 class FloatRect;
152 class GraphicsLayer;
153 class IntSize;
154 class ProtectionSpace;
155 class RunLoopObserver;
156 class SharedBuffer;
157 class TextIndicator;
158 struct DictionaryPopupInfo;
159 struct ExceptionDetails;
160 struct FileChooserSettings;
161 struct SecurityOriginData;
162 struct TextAlternativeWithRange;
163 struct TextCheckingResult;
164 struct ViewportAttributes;
165 struct WindowFeatures;
166 }
167
168 #if PLATFORM(GTK)
169 typedef GtkWidget* PlatformWidget;
170 #endif
171
172 namespace WebKit {
173
174 enum HiddenPageThrottlingAutoIncreasesCounterType { };
175 typedef RefCounter<HiddenPageThrottlingAutoIncreasesCounterType> HiddenPageThrottlingAutoIncreasesCounter;
176
177 class CertificateInfo;
178 class NativeWebGestureEvent;
179 class NativeWebKeyboardEvent;
180 class NativeWebMouseEvent;
181 class NativeWebWheelEvent;
182 class PageClient;
183 class RemoteLayerTreeScrollingPerformanceData;
184 class RemoteLayerTreeTransaction;
185 class RemoteScrollingCoordinatorProxy;
186 class StringPairVector;
187 class UserData;
188 class ViewSnapshot;
189 class VisitedLinkStore;
190 class WebBackForwardList;
191 class WebBackForwardListItem;
192 class WebContextMenuProxy;
193 class WebEditCommandProxy;
194 class WebFullScreenManagerProxy;
195 class WebNavigationState;
196 class WebVideoFullscreenManagerProxy;
197 class WebKeyboardEvent;
198 class WebMouseEvent;
199 class WebOpenPanelResultListenerProxy;
200 class WebPageGroup;
201 class WebProcessProxy;
202 class WebUserContentControllerProxy;
203 class WebWheelEvent;
204 class WebsiteDataStore;
205 struct AttributedString;
206 struct ColorSpaceData;
207 struct EditingRange;
208 struct EditorState;
209 struct PlatformPopupMenuData;
210 struct PrintInfo;
211 struct WebPopupItem;
212
213 #if ENABLE(VIBRATION)
214 class WebVibrationProxy;
215 #endif
216
217 #if USE(QUICK_LOOK)
218 class QuickLookDocumentData;
219 #endif
220
221 typedef GenericCallback<uint64_t> UnsignedCallback;
222 typedef GenericCallback<EditingRange> EditingRangeCallback;
223 typedef GenericCallback<const String&> StringCallback;
224 typedef GenericCallback<API::SerializedScriptValue*, bool, const WebCore::ExceptionDetails&> ScriptValueCallback;
225
226 #if PLATFORM(GTK)
227 typedef GenericCallback<API::Error*> PrintFinishedCallback;
228 #endif
229
230 #if ENABLE(TOUCH_EVENTS)
231 struct QueuedTouchEvents {
232     QueuedTouchEvents(const NativeWebTouchEvent& event)
233         : forwardedEvent(event)
234     {
235     }
236     NativeWebTouchEvent forwardedEvent;
237     Vector<NativeWebTouchEvent> deferredTouchEvents;
238 };
239 #endif
240
241 typedef GenericCallback<const String&, bool, int32_t> ValidateCommandCallback;
242 typedef GenericCallback<const WebCore::IntRect&, const EditingRange&> RectForCharacterRangeCallback;
243
244 #if PLATFORM(MAC)
245 typedef GenericCallback<const AttributedString&, const EditingRange&> AttributedStringForCharacterRangeCallback;
246 typedef GenericCallback<const String&, double, bool> FontAtSelectionCallback;
247 #endif
248
249 #if PLATFORM(IOS)
250 typedef GenericCallback<const WebCore::IntPoint&, uint32_t, uint32_t, uint32_t> GestureCallback;
251 typedef GenericCallback<const WebCore::IntPoint&, uint32_t> TouchesCallback;
252 struct NodeAssistanceArguments {
253     AssistedNodeInformation m_nodeInformation;
254     bool m_userIsInteracting;
255     bool m_blurPreviousNode;
256     RefPtr<API::Object> m_userData;
257 };
258 #endif
259
260 #if PLATFORM(COCOA)
261 typedef GenericCallback<const WebCore::MachSendRight&> MachSendRightCallback;
262 #endif
263
264 class WebPageProxy : public API::ObjectImpl<API::Object::Type::Page>
265 #if ENABLE(INPUT_TYPE_COLOR)
266     , public WebColorPicker::Client
267 #endif
268 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS)
269     , public WebCore::WebMediaSessionManagerClient
270 #endif
271     , public WebPopupMenuProxy::Client
272     , public IPC::MessageReceiver
273     , public IPC::MessageSender {
274 public:
275     static Ref<WebPageProxy> create(PageClient&, WebProcessProxy&, uint64_t pageID, Ref<API::PageConfiguration>&&);
276     virtual ~WebPageProxy();
277
278     const API::PageConfiguration& configuration() const;
279
280     uint64_t pageID() const { return m_pageID; }
281     WebCore::SessionID sessionID() const { return m_sessionID; }
282     void setSessionID(WebCore::SessionID);
283
284     WebFrameProxy* mainFrame() const { return m_mainFrame.get(); }
285     WebFrameProxy* focusedFrame() const { return m_focusedFrame.get(); }
286     WebFrameProxy* frameSetLargestFrame() const { return m_frameSetLargestFrame.get(); }
287
288     DrawingAreaProxy* drawingArea() const { return m_drawingArea.get(); }
289
290     WebNavigationState& navigationState() { return *m_navigationState.get(); }
291
292     WebsiteDataStore& websiteDataStore() { return m_websiteDataStore; }
293
294 #if ENABLE(DATA_DETECTION)
295     NSArray *dataDetectionResults() { return m_dataDetectionResults.get(); }
296 #endif
297         
298 #if ENABLE(ASYNC_SCROLLING)
299     RemoteScrollingCoordinatorProxy* scrollingCoordinatorProxy() const { return m_scrollingCoordinatorProxy.get(); }
300 #endif
301
302     WebBackForwardList& backForwardList() { return m_backForwardList; }
303
304     bool addsVisitedLinks() const { return m_addsVisitedLinks; }
305     void setAddsVisitedLinks(bool addsVisitedLinks) { m_addsVisitedLinks = addsVisitedLinks; }
306
307     void fullscreenMayReturnToInline();
308     void didEnterFullscreen();
309     void didExitFullscreen();
310
311     WebInspectorProxy* inspector();
312
313 #if ENABLE(REMOTE_INSPECTOR)
314     bool allowsRemoteInspection() const { return m_allowsRemoteInspection; }
315     void setAllowsRemoteInspection(bool);
316     String remoteInspectionNameOverride() const { return m_remoteInspectionNameOverride; }
317     void setRemoteInspectionNameOverride(const String&);
318 #endif
319
320 #if ENABLE(VIBRATION)
321     WebVibrationProxy* vibration() { return m_vibration.get(); }
322 #endif
323
324 #if ENABLE(FULLSCREEN_API)
325     WebFullScreenManagerProxy* fullScreenManager();
326 #endif
327 #if PLATFORM(IOS) || (PLATFORM(MAC) && ENABLE(VIDEO_PRESENTATION_MODE))
328     RefPtr<WebVideoFullscreenManagerProxy> videoFullscreenManager();
329 #endif
330
331 #if PLATFORM(IOS)
332     bool allowsMediaDocumentInlinePlayback() const;
333     void setAllowsMediaDocumentInlinePlayback(bool);
334 #endif
335
336 #if ENABLE(CONTEXT_MENUS)
337     API::ContextMenuClient& contextMenuClient() { return *m_contextMenuClient; }
338     void setContextMenuClient(std::unique_ptr<API::ContextMenuClient>);
339 #endif
340     API::FindClient& findClient() { return *m_findClient; }
341     void setFindClient(std::unique_ptr<API::FindClient>);
342     API::FindMatchesClient& findMatchesClient() { return *m_findMatchesClient; }
343     void setFindMatchesClient(std::unique_ptr<API::FindMatchesClient>);
344     API::DiagnosticLoggingClient& diagnosticLoggingClient() { return *m_diagnosticLoggingClient; }
345     void setDiagnosticLoggingClient(std::unique_ptr<API::DiagnosticLoggingClient>);
346     void setFormClient(std::unique_ptr<API::FormClient>);
347     void setNavigationClient(std::unique_ptr<API::NavigationClient>);
348     void setHistoryClient(std::unique_ptr<API::HistoryClient>);
349     void setLoaderClient(std::unique_ptr<API::LoaderClient>);
350     void setPolicyClient(std::unique_ptr<API::PolicyClient>);
351     void setInjectedBundleClient(const WKPageInjectedBundleClientBase*);
352     WebPageInjectedBundleClient* injectedBundleClient() { return m_injectedBundleClient.get(); }
353
354     API::UIClient& uiClient() { return *m_uiClient; }
355     void setUIClient(std::unique_ptr<API::UIClient>);
356
357     void initializeWebPage();
358
359     void close();
360     bool tryClose();
361     bool isClosed() const { return m_isClosed; }
362
363     RefPtr<API::Navigation> loadRequest(const WebCore::ResourceRequest&, WebCore::ShouldOpenExternalURLsPolicy = WebCore::ShouldOpenExternalURLsPolicy::ShouldAllowExternalSchemes, API::Object* userData = nullptr);
364     RefPtr<API::Navigation> loadFile(const String& fileURL, const String& resourceDirectoryURL, API::Object* userData = nullptr);
365     RefPtr<API::Navigation> loadData(API::Data*, const String& MIMEType, const String& encoding, const String& baseURL, API::Object* userData = nullptr);
366     RefPtr<API::Navigation> loadHTMLString(const String& htmlString, const String& baseURL, API::Object* userData = nullptr);
367     void loadAlternateHTMLString(const String& htmlString, const String& baseURL, const String& unreachableURL, API::Object* userData = nullptr);
368     void loadPlainTextString(const String&, API::Object* userData = nullptr);
369     void loadWebArchiveData(API::Data*, API::Object* userData = nullptr);
370     void navigateToPDFLinkWithSimulatedClick(const String& url, WebCore::IntPoint documentPoint, WebCore::IntPoint screenPoint);
371
372     void stopLoading();
373     RefPtr<API::Navigation> reload(bool reloadFromOrigin, bool contentBlockersEnabled);
374
375     RefPtr<API::Navigation> goForward();
376     RefPtr<API::Navigation> goBack();
377
378     RefPtr<API::Navigation> goToBackForwardItem(WebBackForwardListItem*);
379     void tryRestoreScrollPosition();
380     void didChangeBackForwardList(WebBackForwardListItem* addedItem, Vector<RefPtr<WebBackForwardListItem>> removed);
381     void willGoToBackForwardListItem(uint64_t itemID, const UserData&);
382
383     bool shouldKeepCurrentBackForwardListItemInList(WebBackForwardListItem*);
384
385     bool willHandleHorizontalScrollEvents() const;
386
387     bool canShowMIMEType(const String& mimeType);
388
389     bool drawsBackground() const { return m_drawsBackground; }
390     void setDrawsBackground(bool);
391
392     float topContentInset() const { return m_topContentInset; }
393     void setTopContentInset(float);
394
395     WebCore::Color underlayColor() const { return m_underlayColor; }
396     void setUnderlayColor(const WebCore::Color&);
397
398     // At this time, m_pageExtendedBackgroundColor can be set via pageExtendedBackgroundColorDidChange() which is a message
399     // from the UIProcess, or by didCommitLayerTree(). When PLATFORM(MAC) adopts UI side compositing, we should get rid of
400     // the message entirely.
401     WebCore::Color pageExtendedBackgroundColor() const { return m_pageExtendedBackgroundColor; }
402
403     void viewWillStartLiveResize();
404     void viewWillEndLiveResize();
405
406     void setInitialFocus(bool forward, bool isKeyboardEventValid, const WebKeyboardEvent&, std::function<void (CallbackBase::Error)>);
407     
408     void clearSelection();
409     void restoreSelectionInFocusedEditableElement();
410
411     void setViewNeedsDisplay(const WebCore::IntRect&);
412     void displayView();
413     bool canScrollView();
414     void scrollView(const WebCore::IntRect& scrollRect, const WebCore::IntSize& scrollOffset); // FIXME: CoordinatedGraphics should use requestScroll().
415     void requestScroll(const WebCore::FloatPoint& scrollPosition, const WebCore::IntPoint& scrollOrigin, bool isProgrammaticScroll);
416     
417     void setDelegatesScrolling(bool delegatesScrolling) { m_delegatesScrolling = delegatesScrolling; }
418     bool delegatesScrolling() const { return m_delegatesScrolling; }
419
420     enum class ViewStateChangeDispatchMode { Deferrable, Immediate };
421     void viewStateDidChange(WebCore::ViewState::Flags mayHaveChanged, bool wantsSynchronousReply = false, ViewStateChangeDispatchMode = ViewStateChangeDispatchMode::Deferrable);
422     bool isInWindow() const { return m_viewState & WebCore::ViewState::IsInWindow; }
423     void waitForDidUpdateViewState();
424     void didUpdateViewState() { m_waitingForDidUpdateViewState = false; }
425
426     void layerHostingModeDidChange();
427
428     WebCore::IntSize viewSize() const;
429     bool isViewVisible() const { return m_viewState & WebCore::ViewState::IsVisible; }
430     bool isViewWindowActive() const;
431
432     void addMIMETypeWithCustomContentProvider(const String& mimeType);
433
434     void executeEditCommand(const String& commandName, const String& argument = String());
435     void validateCommand(const String& commandName, std::function<void (const String&, bool, int32_t, CallbackBase::Error)>);
436
437     const EditorState& editorState() const { return m_editorState; }
438     bool canDelete() const { return hasSelectedRange() && isContentEditable(); }
439     bool hasSelectedRange() const { return m_editorState.selectionIsRange; }
440     bool isContentEditable() const { return m_editorState.isContentEditable; }
441     
442     bool maintainsInactiveSelection() const { return m_maintainsInactiveSelection; }
443     void setMaintainsInactiveSelection(bool);
444     void setEditable(bool);
445     bool isEditable() const { return m_isEditable; }
446
447 #if PLATFORM(IOS)
448     void executeEditCommand(const String& commandName, std::function<void (CallbackBase::Error)>);
449     double displayedContentScale() const { return m_lastVisibleContentRectUpdate.scale(); }
450     const WebCore::FloatRect& exposedContentRect() const { return m_lastVisibleContentRectUpdate.exposedRect(); }
451     const WebCore::FloatRect& unobscuredContentRect() const { return m_lastVisibleContentRectUpdate.unobscuredRect(); }
452
453     void updateVisibleContentRects(const WebCore::FloatRect& exposedRect, const WebCore::FloatRect& unobscuredRect, const WebCore::FloatRect& unobscuredRectInScrollViewCoordinates, const WebCore::FloatRect& customFixedPositionRect, double scale, bool inStableState, bool isChangingObscuredInsetsInteractively, bool allowShrinkToFit, double timestamp, double horizontalVelocity, double verticalVelocity, double scaleChangeRate);
454     void resendLastVisibleContentRects();
455
456     enum class UnobscuredRectConstraint { ConstrainedToDocumentRect, Unconstrained };
457     WebCore::FloatRect computeCustomFixedPositionRect(const WebCore::FloatRect& unobscuredContentRect, double displayedContentScale, UnobscuredRectConstraint = UnobscuredRectConstraint::Unconstrained) const;
458     void overflowScrollViewWillStartPanGesture();
459     void overflowScrollViewDidScroll();
460     void overflowScrollWillStartScroll();
461     void overflowScrollDidEndScroll();
462
463     void dynamicViewportSizeUpdate(const WebCore::FloatSize& minimumLayoutSize, const WebCore::FloatSize& maximumUnobscuredSize, const WebCore::FloatRect& targetExposedContentRect, const WebCore::FloatRect& targetUnobscuredRect, const WebCore::FloatRect& targetUnobscuredRectInScrollViewCoordinates, double targetScale, int32_t deviceOrientation);
464     void synchronizeDynamicViewportUpdate();
465
466     void setViewportConfigurationMinimumLayoutSize(const WebCore::FloatSize&);
467     void setMaximumUnobscuredSize(const WebCore::FloatSize&);
468     void setDeviceOrientation(int32_t);
469     int32_t deviceOrientation() const { return m_deviceOrientation; }
470     void willCommitLayerTree(uint64_t transactionID);
471
472     void selectWithGesture(const WebCore::IntPoint, WebCore::TextGranularity, uint32_t gestureType, uint32_t gestureState, bool isInteractingWithAssistedNode, std::function<void (const WebCore::IntPoint&, uint32_t, uint32_t, uint32_t, CallbackBase::Error)>);
473     void updateSelectionWithTouches(const WebCore::IntPoint, uint32_t touches, bool baseIsStart, std::function<void (const WebCore::IntPoint&, uint32_t, CallbackBase::Error)>);
474     void selectWithTwoTouches(const WebCore::IntPoint from, const WebCore::IntPoint to, uint32_t gestureType, uint32_t gestureState, std::function<void (const WebCore::IntPoint&, uint32_t, uint32_t, uint32_t, CallbackBase::Error)>);
475     void updateBlockSelectionWithTouch(const WebCore::IntPoint, uint32_t touch, uint32_t handlePosition);
476     void extendSelection(WebCore::TextGranularity);
477     void selectWordBackward();
478     void moveSelectionByOffset(int32_t offset, std::function<void (CallbackBase::Error)>);
479     void selectTextWithGranularityAtPoint(const WebCore::IntPoint, WebCore::TextGranularity, bool isInteractingWithAssistedNode, std::function<void (CallbackBase::Error)>);
480     void selectPositionAtPoint(const WebCore::IntPoint, bool isInteractingWithAssistedNode, std::function<void (CallbackBase::Error)>);
481     void selectPositionAtBoundaryWithDirection(const WebCore::IntPoint, WebCore::TextGranularity, WebCore::SelectionDirection, bool isInteractingWithAssistedNode, std::function<void (CallbackBase::Error)>);
482     void moveSelectionAtBoundaryWithDirection(WebCore::TextGranularity, WebCore::SelectionDirection, std::function<void(CallbackBase::Error)>);
483     void beginSelectionInDirection(WebCore::SelectionDirection, std::function<void (uint64_t, CallbackBase::Error)>);
484     void updateSelectionWithExtentPoint(const WebCore::IntPoint, bool isInteractingWithAssistedNode, std::function<void (uint64_t, CallbackBase::Error)>);
485     void updateSelectionWithExtentPointAndBoundary(const WebCore::IntPoint, WebCore::TextGranularity, bool isInteractingWithAssistedNode, std::function<void(uint64_t, CallbackBase::Error)>);
486     void requestAutocorrectionData(const String& textForAutocorrection, std::function<void (const Vector<WebCore::FloatRect>&, const String&, double, uint64_t, CallbackBase::Error)>);
487     void applyAutocorrection(const String& correction, const String& originalText, std::function<void (const String&, CallbackBase::Error)>);
488     bool applyAutocorrection(const String& correction, const String& originalText);
489     void requestAutocorrectionContext(std::function<void (const String&, const String&, const String&, const String&, uint64_t, uint64_t, CallbackBase::Error)>);
490     void getAutocorrectionContext(String& contextBefore, String& markedText, String& selectedText, String& contextAfter, uint64_t& location, uint64_t& length);
491     void requestDictationContext(std::function<void (const String&, const String&, const String&, CallbackBase::Error)>);
492     void replaceDictatedText(const String& oldText, const String& newText);
493     void replaceSelectedText(const String& oldText, const String& newText);
494     void didReceivePositionInformation(const InteractionInformationAtPosition&);
495     void getPositionInformation(const WebCore::IntPoint&, InteractionInformationAtPosition&);
496     void requestPositionInformation(const WebCore::IntPoint&);
497     void startInteractionWithElementAtPosition(const WebCore::IntPoint&);
498     void stopInteraction();
499     void performActionOnElement(uint32_t action);
500     void saveImageToLibrary(const SharedMemory::Handle& imageHandle, uint64_t imageSize);
501     void didUpdateBlockSelectionWithTouch(uint32_t touch, uint32_t flags, float growThreshold, float shrinkThreshold);
502     void focusNextAssistedNode(bool isForward, std::function<void (CallbackBase::Error)>);
503     void setAssistedNodeValue(const String&);
504     void setAssistedNodeValueAsNumber(double);
505     void setAssistedNodeSelectedIndex(uint32_t index, bool allowMultipleSelection = false);
506     void applicationDidEnterBackground();
507     void applicationWillEnterForeground();
508     void applicationWillResignActive();
509     void applicationDidBecomeActive();
510     void zoomToRect(WebCore::FloatRect, double minimumScale, double maximumScale);
511     void commitPotentialTapFailed();
512     void didNotHandleTapAsClick(const WebCore::IntPoint&);
513     void disableDoubleTapGesturesDuringTapIfNecessary(uint64_t requestID);
514     void didFinishDrawingPagesToPDF(const IPC::DataReference&);
515     void contentSizeCategoryDidChange(const String& contentSizeCategory);
516     void getLookupContextAtPoint(const WebCore::IntPoint&, std::function<void(const String&, CallbackBase::Error)>);
517 #endif
518 #if ENABLE(DATA_DETECTION)
519     void setDataDetectionResult(const DataDetectionResult&);
520 #endif
521     void didCommitLayerTree(const WebKit::RemoteLayerTreeTransaction&);
522
523 #if USE(COORDINATED_GRAPHICS_MULTIPROCESS)
524     void didRenderFrame(const WebCore::IntSize& contentsSize, const WebCore::IntRect& coveredRect);
525     void commitPageTransitionViewport();
526 #endif
527 #if PLATFORM(EFL)
528     void setThemePath(const String&);
529 #endif
530
531 #if PLATFORM(GTK)
532     void setComposition(const String& text, Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd);
533     void confirmComposition(const String& compositionString, int64_t selectionStart, int64_t selectionLength);
534     void cancelComposition();
535 #endif
536
537 #if PLATFORM(GTK)
538     void setInputMethodState(bool enabled);
539 #endif
540
541 #if PLATFORM (GTK) && HAVE(GTK_GESTURES)
542     void getCenterForZoomGesture(const WebCore::IntPoint& centerInViewCoordinates, WebCore::IntPoint& center);
543 #endif
544
545 #if PLATFORM(COCOA)
546     void windowAndViewFramesChanged(const WebCore::FloatRect& viewFrameInWindowCoordinates, const WebCore::FloatPoint& accessibilityViewCoordinates);
547     void setMainFrameIsScrollable(bool);
548
549     void sendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, const String& textInput);
550     bool shouldDelayWindowOrderingForEvent(const WebMouseEvent&);
551     bool acceptsFirstMouse(int eventNumber, const WebMouseEvent&);
552
553     void setAcceleratedCompositingRootLayer(LayerOrView*);
554     LayerOrView* acceleratedCompositingRootLayer() const;
555
556     void insertTextAsync(const String& text, const EditingRange& replacementRange, bool registerUndoGroup = false, EditingRangeIsRelativeTo = EditingRangeIsRelativeTo::EditableRoot);
557     void getMarkedRangeAsync(std::function<void (EditingRange, CallbackBase::Error)>);
558     void getSelectedRangeAsync(std::function<void (EditingRange, CallbackBase::Error)>);
559     void characterIndexForPointAsync(const WebCore::IntPoint&, std::function<void (uint64_t, CallbackBase::Error)>);
560     void firstRectForCharacterRangeAsync(const EditingRange&, std::function<void (const WebCore::IntRect&, const EditingRange&, CallbackBase::Error)>);
561     void setCompositionAsync(const String& text, Vector<WebCore::CompositionUnderline> underlines, const EditingRange& selectionRange, const EditingRange& replacementRange);
562     void confirmCompositionAsync();
563
564     void setScrollPerformanceDataCollectionEnabled(bool);
565     bool scrollPerformanceDataCollectionEnabled() const { return m_scrollPerformanceDataCollectionEnabled; }
566     RemoteLayerTreeScrollingPerformanceData* scrollingPerformanceData() { return m_scrollingPerformanceData.get(); }
567 #endif // PLATFORM(COCOA)
568
569 #if PLATFORM(MAC)
570     void insertDictatedTextAsync(const String& text, const EditingRange& replacementRange, const Vector<WebCore::TextAlternativeWithRange>& dictationAlternatives, bool registerUndoGroup);
571     void attributedSubstringForCharacterRangeAsync(const EditingRange&, std::function<void (const AttributedString&, const EditingRange&, CallbackBase::Error)>);
572     void setFont(const String& fontFamily, double fontSize, uint64_t fontTraits);
573     void fontAtSelection(std::function<void (const String&, double, bool, CallbackBase::Error)>);
574
575     void startWindowDrag();
576     NSWindow *platformWindow();
577     void rootViewToWindow(const WebCore::IntRect& viewRect, WebCore::IntRect& windowRect);
578
579 #if WK_API_ENABLED
580     NSView *inspectorAttachmentView();
581     _WKRemoteObjectRegistry *remoteObjectRegistry();
582 #endif
583
584     void intrinsicContentSizeDidChange(const WebCore::IntSize& intrinsicContentSize);
585     CGRect boundsOfLayerInLayerBackedWindowCoordinates(CALayer *) const;
586 #endif // PLATFORM(MAC)
587
588 #if PLATFORM(EFL)
589     void handleInputMethodKeydown(bool& handled);
590     void confirmComposition(const String&);
591     void setComposition(const String&, Vector<WebCore::CompositionUnderline>&, int);
592     void cancelComposition();
593 #endif
594
595 #if PLATFORM(GTK)
596     PlatformWidget viewWidget();
597     const WebCore::Color& backgroundColor() const { return m_backgroundColor; }
598     void setBackgroundColor(const WebCore::Color& color) { m_backgroundColor = color; }
599 #endif
600
601     void handleMouseEvent(const NativeWebMouseEvent&);
602     void handleWheelEvent(const NativeWebWheelEvent&);
603     void handleKeyboardEvent(const NativeWebKeyboardEvent&);
604
605 #if ENABLE(MAC_GESTURE_EVENTS)
606     void handleGestureEvent(const NativeWebGestureEvent&);
607 #endif
608
609 #if ENABLE(IOS_TOUCH_EVENTS)
610     void handleTouchEventSynchronously(const NativeWebTouchEvent&);
611     void handleTouchEventAsynchronously(const NativeWebTouchEvent&);
612
613 #elif ENABLE(TOUCH_EVENTS)
614     void handleTouchEvent(const NativeWebTouchEvent&);
615 #endif
616
617     void scrollBy(WebCore::ScrollDirection, WebCore::ScrollGranularity);
618     void centerSelectionInVisibleArea();
619
620     const String& toolTip() const { return m_toolTip; }
621
622     const String& userAgent() const { return m_userAgent; }
623     void setApplicationNameForUserAgent(const String&);
624     const String& applicationNameForUserAgent() const { return m_applicationNameForUserAgent; }
625     void setCustomUserAgent(const String&);
626     const String& customUserAgent() const { return m_customUserAgent; }
627     static String standardUserAgent(const String& applicationName = String());
628
629     bool supportsTextEncoding() const;
630     void setCustomTextEncodingName(const String&);
631     String customTextEncodingName() const { return m_customTextEncodingName; }
632
633     bool areActiveDOMObjectsAndAnimationsSuspended() const { return m_isPageSuspended; }
634     void resumeActiveDOMObjectsAndAnimations();
635     void suspendActiveDOMObjectsAndAnimations();
636
637     double estimatedProgress() const;
638
639     void terminateProcess();
640
641     SessionState sessionState(const std::function<bool (WebBackForwardListItem&)>& = nullptr) const;
642     RefPtr<API::Navigation> restoreFromSessionState(SessionState, bool navigate);
643
644     bool supportsTextZoom() const;
645     double textZoomFactor() const { return m_textZoomFactor; }
646     void setTextZoomFactor(double);
647     double pageZoomFactor() const;
648     void setPageZoomFactor(double);
649     void setPageAndTextZoomFactors(double pageZoomFactor, double textZoomFactor);
650
651     void scalePage(double scale, const WebCore::IntPoint& origin);
652     void scalePageInViewCoordinates(double scale, const WebCore::IntPoint& centerInViewCoordinates);
653     double pageScaleFactor() const;
654     double viewScaleFactor() const { return m_viewScaleFactor; }
655     void scaleView(double scale);
656     void setShouldScaleViewToFitDocument(bool);
657     
658     float deviceScaleFactor() const;
659     void setIntrinsicDeviceScaleFactor(float);
660     void setCustomDeviceScaleFactor(float);
661     void windowScreenDidChange(PlatformDisplayID);
662
663     void setUseFixedLayout(bool);
664     void setFixedLayoutSize(const WebCore::IntSize&);
665     bool useFixedLayout() const { return m_useFixedLayout; };
666     const WebCore::IntSize& fixedLayoutSize() const { return m_fixedLayoutSize; };
667
668     void listenForLayoutMilestones(WebCore::LayoutMilestones);
669
670     bool hasHorizontalScrollbar() const { return m_mainFrameHasHorizontalScrollbar; }
671     bool hasVerticalScrollbar() const { return m_mainFrameHasVerticalScrollbar; }
672
673     void setSuppressScrollbarAnimations(bool);
674     bool areScrollbarAnimationsSuppressed() const { return m_suppressScrollbarAnimations; }
675
676     bool isPinnedToLeftSide() const { return m_mainFrameIsPinnedToLeftSide; }
677     bool isPinnedToRightSide() const { return m_mainFrameIsPinnedToRightSide; }
678     bool isPinnedToTopSide() const { return m_mainFrameIsPinnedToTopSide; }
679     bool isPinnedToBottomSide() const { return m_mainFrameIsPinnedToBottomSide; }
680
681     bool rubberBandsAtLeft() const;
682     void setRubberBandsAtLeft(bool);
683     bool rubberBandsAtRight() const;
684     void setRubberBandsAtRight(bool);
685     bool rubberBandsAtTop() const;
686     void setRubberBandsAtTop(bool);
687     bool rubberBandsAtBottom() const;
688     void setRubberBandsAtBottom(bool);
689
690     void setShouldUseImplicitRubberBandControl(bool shouldUseImplicitRubberBandControl) { m_shouldUseImplicitRubberBandControl = shouldUseImplicitRubberBandControl; }
691     bool shouldUseImplicitRubberBandControl() const { return m_shouldUseImplicitRubberBandControl; }
692         
693     void setEnableVerticalRubberBanding(bool);
694     bool verticalRubberBandingIsEnabled() const;
695     void setEnableHorizontalRubberBanding(bool);
696     bool horizontalRubberBandingIsEnabled() const;
697         
698     void setBackgroundExtendsBeyondPage(bool);
699     bool backgroundExtendsBeyondPage() const;
700
701     void setPaginationMode(WebCore::Pagination::Mode);
702     WebCore::Pagination::Mode paginationMode() const { return m_paginationMode; }
703     void setPaginationBehavesLikeColumns(bool);
704     bool paginationBehavesLikeColumns() const { return m_paginationBehavesLikeColumns; }
705     void setPageLength(double);
706     double pageLength() const { return m_pageLength; }
707     void setGapBetweenPages(double);
708     double gapBetweenPages() const { return m_gapBetweenPages; }
709     void setPaginationLineGridEnabled(bool);
710     bool paginationLineGridEnabled() const { return m_paginationLineGridEnabled; }
711     unsigned pageCount() const { return m_pageCount; }
712
713 #if PLATFORM(COCOA)
714     // Called by the web process through a message.
715     void registerWebProcessAccessibilityToken(const IPC::DataReference&);
716     // Called by the UI process when it is ready to send its tokens to the web process.
717     void registerUIProcessAccessibilityTokens(const IPC::DataReference& elemenToken, const IPC::DataReference& windowToken);
718     bool readSelectionFromPasteboard(const String& pasteboardName);
719     String stringSelectionForPasteboard();
720     RefPtr<WebCore::SharedBuffer> dataSelectionForPasteboard(const String& pasteboardType);
721     void makeFirstResponder();
722
723     ColorSpaceData colorSpace();
724 #endif
725
726 #if ENABLE(SERVICE_CONTROLS)
727     void replaceSelectionWithPasteboardData(const Vector<String>& types, const IPC::DataReference&);
728 #endif
729
730     void pageScaleFactorDidChange(double);
731     void pluginScaleFactorDidChange(double);
732     void pluginZoomFactorDidChange(double);
733
734     // Find.
735     void findString(const String&, FindOptions, unsigned maxMatchCount);
736     void findStringMatches(const String&, FindOptions, unsigned maxMatchCount);
737     void getImageForFindMatch(int32_t matchIndex);
738     void selectFindMatch(int32_t matchIndex);
739     void didGetImageForFindMatch(const ShareableBitmap::Handle& contentImageHandle, uint32_t matchIndex);
740     void hideFindUI();
741     void countStringMatches(const String&, FindOptions, unsigned maxMatchCount);
742     void didCountStringMatches(const String&, uint32_t matchCount);
743     void setTextIndicator(const WebCore::TextIndicatorData&, uint64_t /* WebCore::TextIndicatorWindowLifetime */ lifetime = 0 /* Permanent */);
744     void setTextIndicatorAnimationProgress(float);
745     void clearTextIndicator();
746     void didFindString(const String&, const Vector<WebCore::IntRect>&, uint32_t matchCount, int32_t matchIndex);
747     void didFailToFindString(const String&);
748     void didFindStringMatches(const String&, const Vector<Vector<WebCore::IntRect>>& matchRects, int32_t firstIndexAfterSelection);
749
750     void getContentsAsString(std::function<void (const String&, CallbackBase::Error)>);
751     void getBytecodeProfile(std::function<void (const String&, CallbackBase::Error)>);
752     void isWebProcessResponsive(std::function<void (bool isWebProcessResponsive)>);
753
754 #if ENABLE(MHTML)
755     void getContentsAsMHTMLData(std::function<void (API::Data*, CallbackBase::Error)>);
756 #endif
757     void getMainResourceDataOfFrame(WebFrameProxy*, std::function<void (API::Data*, CallbackBase::Error)>);
758     void getResourceDataFromFrame(WebFrameProxy*, API::URL*, std::function<void (API::Data*, CallbackBase::Error)>);
759     void getRenderTreeExternalRepresentation(std::function<void (const String&, CallbackBase::Error)>);
760     void getSelectionOrContentsAsString(std::function<void (const String&, CallbackBase::Error)>);
761     void getSelectionAsWebArchiveData(std::function<void (API::Data*, CallbackBase::Error)>);
762     void getSourceForFrame(WebFrameProxy*, std::function<void (const String&, CallbackBase::Error)>);
763     void getWebArchiveOfFrame(WebFrameProxy*, std::function<void (API::Data*, CallbackBase::Error)>);
764     void runJavaScriptInMainFrame(const String&, std::function<void (API::SerializedScriptValue*, bool hadException, const WebCore::ExceptionDetails&, CallbackBase::Error)> callbackFunction);
765     void forceRepaint(PassRefPtr<VoidCallback>);
766
767     float headerHeight(WebFrameProxy*);
768     float footerHeight(WebFrameProxy*);
769     void drawHeader(WebFrameProxy*, const WebCore::FloatRect&);
770     void drawFooter(WebFrameProxy*, const WebCore::FloatRect&);
771
772 #if PLATFORM(COCOA)
773     // Dictionary.
774     void performDictionaryLookupAtLocation(const WebCore::FloatPoint&);
775     void performDictionaryLookupOfCurrentSelection();
776 #endif
777
778     void receivedPolicyDecision(WebCore::PolicyAction, WebFrameProxy*, uint64_t listenerID, API::Navigation* navigationID);
779
780     void backForwardRemovedItem(uint64_t itemID);
781
782 #if ENABLE(DRAG_SUPPORT)    
783     // Drag and drop support.
784     void dragEntered(WebCore::DragData&, const String& dragStorageName = String());
785     void dragUpdated(WebCore::DragData&, const String& dragStorageName = String());
786     void dragExited(WebCore::DragData&, const String& dragStorageName = String());
787     void performDragOperation(WebCore::DragData&, const String& dragStorageName, const SandboxExtension::Handle&, const SandboxExtension::HandleArray&);
788
789     void didPerformDragControllerAction(uint64_t dragOperation, bool mouseIsOverFileInput, unsigned numberOfItemsToBeAccepted);
790     void dragEnded(const WebCore::IntPoint& clientPosition, const WebCore::IntPoint& globalPosition, uint64_t operation);
791 #if PLATFORM(COCOA)
792     void setDragImage(const WebCore::IntPoint& clientPosition, const ShareableBitmap::Handle& dragImageHandle, bool isLinkDrag);
793     void setPromisedDataForImage(const String& pasteboardName, const SharedMemory::Handle& imageHandle, uint64_t imageSize, const String& filename, const String& extension,
794                          const String& title, const String& url, const String& visibleURL, const SharedMemory::Handle& archiveHandle, uint64_t archiveSize);
795 #if ENABLE(ATTACHMENT_ELEMENT)
796     void setPromisedDataForAttachment(const String& pasteboardName, const String& filename, const String& extension, const String& title, const String& url, const String& visibleURL);
797 #endif
798 #endif
799 #if PLATFORM(GTK)
800     void startDrag(const WebCore::DragData&, const ShareableBitmap::Handle& dragImage);
801 #endif
802 #endif
803
804     void processDidBecomeUnresponsive();
805     void processDidBecomeResponsive();
806     void processDidCrash();
807     void willChangeProcessIsResponsive();
808     void didChangeProcessIsResponsive();
809
810 #if PLATFORM(IOS)
811     void processWillBecomeSuspended();
812     void processWillBecomeForeground();
813 #endif
814
815     virtual void enterAcceleratedCompositingMode(const LayerTreeContext&);
816     virtual void exitAcceleratedCompositingMode();
817     virtual void updateAcceleratedCompositingMode(const LayerTreeContext&);
818     void willEnterAcceleratedCompositingMode();
819
820     enum UndoOrRedo { Undo, Redo };
821     void addEditCommand(WebEditCommandProxy*);
822     void removeEditCommand(WebEditCommandProxy*);
823     bool isValidEditCommand(WebEditCommandProxy*);
824     void registerEditCommand(PassRefPtr<WebEditCommandProxy>, UndoOrRedo);
825
826 #if PLATFORM(COCOA)
827     void registerKeypressCommandName(const String& name) { m_knownKeypressCommandNames.add(name); }
828     bool isValidKeypressCommandName(const String& name) const { return m_knownKeypressCommandNames.contains(name); }
829 #endif
830
831     WebProcessProxy& process() { return m_process; }
832     pid_t processIdentifier() const;
833
834     WebPreferences& preferences() { return m_preferences; }
835     void setPreferences(WebPreferences&);
836
837     WebPageGroup& pageGroup() { return m_pageGroup; }
838
839     bool isValid() const;
840
841 #if ENABLE(DRAG_SUPPORT)
842     WebCore::DragOperation currentDragOperation() const { return m_currentDragOperation; }
843     bool currentDragIsOverFileInput() const { return m_currentDragIsOverFileInput; }
844     unsigned currentDragNumberOfFilesToBeAccepted() const { return m_currentDragNumberOfFilesToBeAccepted; }
845     void resetCurrentDragInformation()
846     {
847         m_currentDragOperation = WebCore::DragOperationNone;
848         m_currentDragIsOverFileInput = false;
849         m_currentDragNumberOfFilesToBeAccepted = 0;
850     }
851 #endif
852
853     void preferencesDidChange();
854
855 #if ENABLE(CONTEXT_MENUS)
856     // Called by the WebContextMenuProxy.
857     void contextMenuItemSelected(const WebContextMenuItemData&);
858 #endif
859
860     // Called by the WebOpenPanelResultListenerProxy.
861 #if PLATFORM(IOS)
862     void didChooseFilesForOpenPanelWithDisplayStringAndIcon(const Vector<String>&, const String& displayString, const API::Data* iconData);
863 #endif
864     void didChooseFilesForOpenPanel(const Vector<String>&);
865     void didCancelForOpenPanel();
866
867     WebPageCreationParameters creationParameters();
868
869 #if USE(COORDINATED_GRAPHICS_MULTIPROCESS)
870     void findZoomableAreaForPoint(const WebCore::IntPoint&, const WebCore::IntSize&);
871 #endif
872
873     void handleDownloadRequest(DownloadProxy*);
874
875     void advanceToNextMisspelling(bool startBeforeSelection);
876     void changeSpellingToWord(const String& word);
877 #if USE(APPKIT)
878     void uppercaseWord();
879     void lowercaseWord();
880     void capitalizeWord();
881 #endif
882
883 #if PLATFORM(COCOA)
884     bool isSmartInsertDeleteEnabled() const { return m_isSmartInsertDeleteEnabled; }
885     void setSmartInsertDeleteEnabled(bool);
886 #endif
887
888 #if PLATFORM(GTK)
889     String accessibilityPlugID() const { return m_accessibilityPlugID; }
890 #endif
891
892     void setCanRunModal(bool);
893     bool canRunModal();
894
895     void beginPrinting(WebFrameProxy*, const PrintInfo&);
896     void endPrinting();
897     void computePagesForPrinting(WebFrameProxy*, const PrintInfo&, PassRefPtr<ComputedPagesCallback>);
898 #if PLATFORM(COCOA)
899     void drawRectToImage(WebFrameProxy*, const PrintInfo&, const WebCore::IntRect&, const WebCore::IntSize&, PassRefPtr<ImageCallback>);
900     void drawPagesToPDF(WebFrameProxy*, const PrintInfo&, uint32_t first, uint32_t count, PassRefPtr<DataCallback>);
901 #elif PLATFORM(GTK)
902     void drawPagesForPrinting(WebFrameProxy*, const PrintInfo&, PassRefPtr<PrintFinishedCallback>);
903 #endif
904
905     PageLoadState& pageLoadState() { return m_pageLoadState; }
906
907 #if PLATFORM(COCOA)
908     void handleAlternativeTextUIResult(const String& result);
909 #endif
910
911     void saveDataToFileInDownloadsFolder(const String& suggestedFilename, const String& mimeType, const String& originatingURLString, API::Data*);
912     void savePDFToFileInDownloadsFolder(const String& suggestedFilename, const String& originatingURLString, const IPC::DataReference&);
913 #if PLATFORM(COCOA)
914     void savePDFToTemporaryFolderAndOpenWithNativeApplicationRaw(const String& suggestedFilename, const String& originatingURLString, const uint8_t* data, unsigned long size, const String& pdfUUID);
915     void savePDFToTemporaryFolderAndOpenWithNativeApplication(const String& suggestedFilename, const String& originatingURLString, const IPC::DataReference&, const String& pdfUUID);
916     void openPDFFromTemporaryFolderWithNativeApplication(const String& pdfUUID);
917 #endif
918
919     WebCore::IntRect visibleScrollerThumbRect() const { return m_visibleScrollerThumbRect; }
920
921     uint64_t renderTreeSize() const { return m_renderTreeSize; }
922
923     void printMainFrame();
924     
925     void setMediaVolume(float);
926     void setMuted(bool);
927     void setMayStartMediaWhenInWindow(bool);
928     bool mayStartMediaWhenInWindow() const { return m_mayStartMediaWhenInWindow; }
929         
930 #if ENABLE(MEDIA_SESSION)
931     bool hasMediaSessionWithActiveMediaElements() const { return m_hasMediaSessionWithActiveMediaElements; }
932     void handleMediaEvent(WebCore::MediaEventType);
933     void setVolumeOfMediaElement(double, uint64_t);
934 #endif
935
936     // WebPopupMenuProxy::Client
937     virtual NativeWebMouseEvent* currentlyProcessedMouseDownEvent() override;
938
939     void setSuppressVisibilityUpdates(bool flag);
940     bool suppressVisibilityUpdates() { return m_suppressVisibilityUpdates; }
941
942 #if PLATFORM(IOS)
943     void willStartUserTriggeredZooming();
944
945     void potentialTapAtPosition(const WebCore::FloatPoint&, uint64_t& requestID);
946     void commitPotentialTap();
947     void cancelPotentialTap();
948     void tapHighlightAtPosition(const WebCore::FloatPoint&, uint64_t& requestID);
949     void handleTap(const WebCore::FloatPoint&);
950
951     void inspectorNodeSearchMovedToPosition(const WebCore::FloatPoint&);
952     void inspectorNodeSearchEndedAtPosition(const WebCore::FloatPoint&);
953
954     void blurAssistedNode();
955 #endif
956
957     void postMessageToInjectedBundle(const String& messageName, API::Object* messageBody);
958
959 #if ENABLE(INPUT_TYPE_COLOR)
960     void setColorPickerColor(const WebCore::Color&);
961     void endColorPicker();
962 #endif
963
964     WebCore::IntSize minimumLayoutSize() const { return m_minimumLayoutSize; }
965     void setMinimumLayoutSize(const WebCore::IntSize&);
966
967     bool autoSizingShouldExpandToViewHeight() const { return m_autoSizingShouldExpandToViewHeight; }
968     void setAutoSizingShouldExpandToViewHeight(bool);
969
970     void didReceiveAuthenticationChallengeProxy(uint64_t frameID, PassRefPtr<AuthenticationChallengeProxy>);
971
972     int64_t spellDocumentTag();
973     void didFinishCheckingText(uint64_t requestID, const Vector<WebCore::TextCheckingResult>&);
974     void didCancelCheckingText(uint64_t requestID);
975
976     void connectionWillOpen(IPC::Connection&);
977     void webProcessWillShutDown();
978
979     void processDidFinishLaunching();
980
981     void didSaveToPageCache();
982         
983     void setScrollPinningBehavior(WebCore::ScrollPinningBehavior);
984     WebCore::ScrollPinningBehavior scrollPinningBehavior() const { return m_scrollPinningBehavior; }
985
986     void setOverlayScrollbarStyle(WTF::Optional<WebCore::ScrollbarOverlayStyle>);
987     WTF::Optional<WebCore::ScrollbarOverlayStyle> overlayScrollbarStyle() const { return m_scrollbarOverlayStyle; }
988
989     bool shouldRecordNavigationSnapshots() const { return m_shouldRecordNavigationSnapshots; }
990     void setShouldRecordNavigationSnapshots(bool shouldRecordSnapshots) { m_shouldRecordNavigationSnapshots = shouldRecordSnapshots; }
991     void recordNavigationSnapshot();
992     void recordNavigationSnapshot(WebBackForwardListItem&);
993
994 #if PLATFORM(COCOA)
995     PassRefPtr<ViewSnapshot> takeViewSnapshot();
996 #endif
997
998 #if ENABLE(SUBTLE_CRYPTO)
999     void wrapCryptoKey(const Vector<uint8_t>&, bool& succeeded, Vector<uint8_t>&);
1000     void unwrapCryptoKey(const Vector<uint8_t>&, bool& succeeded, Vector<uint8_t>&);
1001 #endif
1002
1003     void takeSnapshot(WebCore::IntRect, WebCore::IntSize bitmapSize, SnapshotOptions, std::function<void (const ShareableBitmap::Handle&, CallbackBase::Error)>);
1004
1005     void navigationGestureDidBegin();
1006     void navigationGestureWillEnd(bool willNavigate, WebBackForwardListItem&);
1007     void navigationGestureDidEnd(bool willNavigate, WebBackForwardListItem&);
1008     void navigationGestureDidEnd();
1009     void navigationGestureSnapshotWasRemoved();
1010     void willRecordNavigationSnapshot(WebBackForwardListItem&);
1011
1012     bool isShowingNavigationGestureSnapshot() const { return m_isShowingNavigationGestureSnapshot; }
1013
1014     bool isPlayingAudio() const { return !!(m_mediaState & WebCore::MediaProducer::IsPlayingAudio); }
1015     void isPlayingMediaDidChange(WebCore::MediaProducer::MediaStateFlags, uint64_t);
1016
1017 #if ENABLE(MEDIA_SESSION)
1018     void hasMediaSessionWithActiveMediaElementsDidChange(bool);
1019     void mediaSessionMetadataDidChange(const WebCore::MediaSessionMetadata&);
1020     void focusedContentMediaElementDidChange(uint64_t);
1021 #endif
1022
1023 #if PLATFORM(MAC)
1024     void removeNavigationGestureSnapshot();
1025
1026     API::HitTestResult* lastMouseMoveHitTestResult() const { return m_lastMouseMoveHitTestResult.get(); }
1027     void performImmediateActionHitTestAtLocation(WebCore::FloatPoint);
1028
1029     void immediateActionDidUpdate();
1030     void immediateActionDidCancel();
1031     void immediateActionDidComplete();
1032
1033     void* immediateActionAnimationControllerForHitTestResult(RefPtr<API::HitTestResult>, uint64_t, RefPtr<API::Object>);
1034
1035     void installViewStateChangeCompletionHandler(void(^completionHandler)());
1036
1037     void handleAcceptedCandidate(WebCore::TextCheckingResult);
1038     void didHandleAcceptedCandidate();
1039 #endif
1040
1041 #if PLATFORM(EFL) && HAVE(ACCESSIBILITY) && defined(HAVE_ECORE_X)
1042     bool accessibilityObjectReadByPoint(const WebCore::IntPoint&);
1043     bool accessibilityObjectReadPrevious();
1044     bool accessibilityObjectReadNext();
1045 #endif
1046
1047 #if USE(UNIFIED_TEXT_CHECKING)
1048     void checkTextOfParagraph(const String& text, uint64_t checkingTypes, Vector<WebCore::TextCheckingResult>& results);
1049 #endif
1050     void getGuessesForWord(const String& word, const String& context, Vector<String>& guesses);
1051
1052     void setShouldDispatchFakeMouseMoveEvents(bool);
1053
1054     // Diagnostic messages logging.
1055     void logDiagnosticMessage(const String& message, const String& description, bool shouldSample);
1056     void logDiagnosticMessageWithResult(const String& message, const String& description, uint32_t result, bool shouldSample);
1057     void logDiagnosticMessageWithValue(const String& message, const String& description, const String& value, bool shouldSample);
1058     void logSampledDiagnosticMessage(const String& message, const String& description);
1059     void logSampledDiagnosticMessageWithResult(const String& message, const String& description, uint32_t result);
1060     void logSampledDiagnosticMessageWithValue(const String& message, const String& description, const String& value);
1061
1062 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS)
1063     void addPlaybackTargetPickerClient(uint64_t);
1064     void removePlaybackTargetPickerClient(uint64_t);
1065     void showPlaybackTargetPicker(uint64_t, const WebCore::FloatRect&, bool hasVideo);
1066     void playbackTargetPickerClientStateDidChange(uint64_t, WebCore::MediaProducer::MediaStateFlags);
1067     void setMockMediaPlaybackTargetPickerEnabled(bool);
1068     void setMockMediaPlaybackTargetPickerState(const String&, WebCore::MediaPlaybackTargetContext::State);
1069
1070     // WebMediaSessionManagerClient
1071     virtual void setPlaybackTarget(uint64_t, Ref<WebCore::MediaPlaybackTarget>&&) override;
1072     virtual void externalOutputDeviceAvailableDidChange(uint64_t, bool) override;
1073     virtual void setShouldPlayToPlaybackTarget(uint64_t, bool) override;
1074 #endif
1075
1076     void didChangeBackgroundColor();
1077     void didLayoutForCustomContentProvider();
1078
1079     // For testing
1080     void clearWheelEventTestTrigger();
1081     void callAfterNextPresentationUpdate(std::function<void (CallbackBase::Error)>);
1082
1083     void didLayout(uint32_t layoutMilestones);
1084
1085     void didRestoreScrollPosition();
1086
1087 private:
1088     WebPageProxy(PageClient&, WebProcessProxy&, uint64_t pageID, Ref<API::PageConfiguration>&&);
1089     void platformInitialize();
1090
1091     void updateViewState(WebCore::ViewState::Flags flagsToUpdate = WebCore::ViewState::AllFlags);
1092     void updateActivityToken();
1093     void updateProccessSuppressionState();
1094     void updateHiddenPageThrottlingAutoIncreases();
1095
1096     enum class ResetStateReason {
1097         PageInvalidated,
1098         WebProcessExited,
1099     };
1100     void resetState(ResetStateReason);
1101     void resetStateAfterProcessExited();
1102
1103     void setUserAgent(const String&);
1104
1105     // IPC::MessageReceiver
1106     // Implemented in generated WebPageProxyMessageReceiver.cpp
1107     virtual void didReceiveMessage(IPC::Connection&, IPC::MessageDecoder&) override;
1108     virtual void didReceiveSyncMessage(IPC::Connection&, IPC::MessageDecoder&, std::unique_ptr<IPC::MessageEncoder>&) override;
1109
1110     // IPC::MessageSender
1111     virtual bool sendMessage(std::unique_ptr<IPC::MessageEncoder>, unsigned messageSendFlags) override;
1112     virtual IPC::Connection* messageSenderConnection() override;
1113     virtual uint64_t messageSenderDestinationID() override;
1114
1115     // WebPopupMenuProxy::Client
1116     virtual void valueChangedForPopupMenu(WebPopupMenuProxy*, int32_t newSelectedIndex) override;
1117     virtual void setTextFromItemForPopupMenu(WebPopupMenuProxy*, int32_t index) override;
1118 #if PLATFORM(GTK)
1119     virtual void failedToShowPopupMenu() override;
1120 #endif
1121
1122     void didCreateMainFrame(uint64_t frameID);
1123     void didCreateSubframe(uint64_t frameID);
1124
1125     void didStartProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, const String& url, const String& unreachableURL, const UserData&);
1126     void didReceiveServerRedirectForProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, const String&, const UserData&);
1127     void didChangeProvisionalURLForFrame(uint64_t frameID, uint64_t navigationID, const String& url);
1128     void didFailProvisionalLoadForFrame(uint64_t frameID, const WebCore::SecurityOriginData& frameSecurityOrigin, uint64_t navigationID, const String& provisionalURL, const WebCore::ResourceError&, const UserData&);
1129     void didCommitLoadForFrame(uint64_t frameID, uint64_t navigationID, const String& mimeType, bool frameHasCustomContentProvider, bool mainFramePluginHandlesPageScaleGesture, uint32_t frameLoadType, const WebCore::CertificateInfo&, bool containsPluginDocument, const UserData&);
1130     void didFinishDocumentLoadForFrame(uint64_t frameID, uint64_t navigationID, const UserData&);
1131     void didFinishLoadForFrame(uint64_t frameID, uint64_t navigationID, const UserData&);
1132     void didFailLoadForFrame(uint64_t frameID, uint64_t navigationID, const WebCore::ResourceError&, const UserData&);
1133     void didSameDocumentNavigationForFrame(uint64_t frameID, uint64_t navigationID, uint32_t sameDocumentNavigationType, const String&, const UserData&);
1134     void didReceiveTitleForFrame(uint64_t frameID, const String&, const UserData&);
1135     void didFirstLayoutForFrame(uint64_t frameID, const UserData&);
1136     void didFirstVisuallyNonEmptyLayoutForFrame(uint64_t frameID, const UserData&);
1137     void didDisplayInsecureContentForFrame(uint64_t frameID, const UserData&);
1138     void didRunInsecureContentForFrame(uint64_t frameID, const UserData&);
1139     void didDetectXSSForFrame(uint64_t frameID, const UserData&);
1140     void frameDidBecomeFrameSet(uint64_t frameID, bool);
1141     void didStartProgress();
1142     void didChangeProgress(double);
1143     void didFinishProgress();
1144     void setNetworkRequestsInProgress(bool);
1145
1146     void didDestroyNavigation(uint64_t navigationID);
1147
1148     void decidePolicyForNavigationAction(uint64_t frameID, const WebCore::SecurityOriginData& frameSecurityOrigin, uint64_t navigationID, const NavigationActionData&, uint64_t originatingFrameID, const WebCore::SecurityOriginData& originatingFrameSecurityOrigin, const WebCore::ResourceRequest& originalRequest, const WebCore::ResourceRequest&, uint64_t listenerID, const UserData&, bool& receivedPolicyAction, uint64_t& newNavigationID, uint64_t& policyAction, DownloadID&);
1149     void decidePolicyForNewWindowAction(uint64_t frameID, const WebCore::SecurityOriginData& frameSecurityOrigin, const NavigationActionData&, const WebCore::ResourceRequest&, const String& frameName, uint64_t listenerID, const UserData&);
1150     void decidePolicyForResponse(uint64_t frameID, const WebCore::SecurityOriginData& frameSecurityOrigin, const WebCore::ResourceResponse&, const WebCore::ResourceRequest&, bool canShowMIMEType, uint64_t listenerID, const UserData&);
1151     void decidePolicyForResponseSync(uint64_t frameID, const WebCore::SecurityOriginData& frameSecurityOrigin, const WebCore::ResourceResponse&, const WebCore::ResourceRequest&, bool canShowMIMEType, uint64_t listenerID, const UserData&, bool& receivedPolicyAction, uint64_t& policyAction, DownloadID&);
1152     void unableToImplementPolicy(uint64_t frameID, const WebCore::ResourceError&, const UserData&);
1153
1154     void willSubmitForm(uint64_t frameID, uint64_t sourceFrameID, const Vector<std::pair<String, String>>& textFieldValues, uint64_t listenerID, const UserData&);
1155
1156     // History client
1157     void didNavigateWithNavigationData(const WebNavigationDataStore&, uint64_t frameID);
1158     void didPerformClientRedirect(const String& sourceURLString, const String& destinationURLString, uint64_t frameID);
1159     void didPerformServerRedirect(const String& sourceURLString, const String& destinationURLString, uint64_t frameID);
1160     void didUpdateHistoryTitle(const String& title, const String& url, uint64_t frameID);
1161
1162     // UI client
1163     void createNewPage(uint64_t frameID, const WebCore::SecurityOriginData&, const WebCore::ResourceRequest&, const WebCore::WindowFeatures&, const NavigationActionData&, uint64_t& newPageID, WebPageCreationParameters&);
1164     void showPage();
1165     void closePage(bool stopResponsivenessTimer);
1166     void runJavaScriptAlert(uint64_t frameID, const WebCore::SecurityOriginData&, const String&, RefPtr<Messages::WebPageProxy::RunJavaScriptAlert::DelayedReply>);
1167     void runJavaScriptConfirm(uint64_t frameID, const WebCore::SecurityOriginData&, const String&, RefPtr<Messages::WebPageProxy::RunJavaScriptConfirm::DelayedReply>);
1168     void runJavaScriptPrompt(uint64_t frameID, const WebCore::SecurityOriginData&, const String&, const String&, RefPtr<Messages::WebPageProxy::RunJavaScriptPrompt::DelayedReply>);
1169     void setStatusText(const String&);
1170     void mouseDidMoveOverElement(const WebHitTestResultData&, uint32_t modifiers, const UserData&);
1171
1172 #if ENABLE(NETSCAPE_PLUGIN_API)
1173     void unavailablePluginButtonClicked(uint32_t opaquePluginUnavailabilityReason, const String& mimeType, const String& pluginURLString, const String& pluginsPageURLString, const String& frameURLString, const String& pageURLString);
1174 #endif // ENABLE(NETSCAPE_PLUGIN_API)
1175 #if ENABLE(WEBGL)
1176     void webGLPolicyForURL(const String& url, uint32_t& loadPolicy);
1177     void resolveWebGLPolicyForURL(const String& url, uint32_t& loadPolicy);
1178 #endif // ENABLE(WEBGL)
1179     void setToolbarsAreVisible(bool toolbarsAreVisible);
1180     void getToolbarsAreVisible(bool& toolbarsAreVisible);
1181     void setMenuBarIsVisible(bool menuBarIsVisible);
1182     void getMenuBarIsVisible(bool& menuBarIsVisible);
1183     void setStatusBarIsVisible(bool statusBarIsVisible);
1184     void getStatusBarIsVisible(bool& statusBarIsVisible);
1185     void setIsResizable(bool isResizable);
1186     void getIsResizable(bool& isResizable);
1187     void setWindowFrame(const WebCore::FloatRect&);
1188     void getWindowFrame(WebCore::FloatRect&);
1189     void screenToRootView(const WebCore::IntPoint& screenPoint, WebCore::IntPoint& windowPoint);
1190     void rootViewToScreen(const WebCore::IntRect& viewRect, WebCore::IntRect& result);
1191 #if PLATFORM(IOS)
1192     void accessibilityScreenToRootView(const WebCore::IntPoint& screenPoint, WebCore::IntPoint& windowPoint);
1193     void rootViewToAccessibilityScreen(const WebCore::IntRect& viewRect, WebCore::IntRect& result);
1194 #endif
1195     void runBeforeUnloadConfirmPanel(const String& message, uint64_t frameID, RefPtr<Messages::WebPageProxy::RunBeforeUnloadConfirmPanel::DelayedReply>);
1196     void didChangeViewportProperties(const WebCore::ViewportAttributes&);
1197     void pageDidScroll();
1198     void runOpenPanel(uint64_t frameID, const WebCore::FileChooserSettings&);
1199     void printFrame(uint64_t frameID);
1200     void exceededDatabaseQuota(uint64_t frameID, const String& originIdentifier, const String& databaseName, const String& displayName, uint64_t currentQuota, uint64_t currentOriginUsage, uint64_t currentDatabaseUsage, uint64_t expectedUsage, PassRefPtr<Messages::WebPageProxy::ExceededDatabaseQuota::DelayedReply>);
1201     void reachedApplicationCacheOriginQuota(const String& originIdentifier, uint64_t currentQuota, uint64_t totalBytesNeeded, PassRefPtr<Messages::WebPageProxy::ReachedApplicationCacheOriginQuota::DelayedReply>);
1202     void requestGeolocationPermissionForFrame(uint64_t geolocationID, uint64_t frameID, String originIdentifier);
1203
1204     void requestUserMediaPermissionForFrame(uint64_t userMediaID, uint64_t frameID, String userMediaDocumentOriginIdentifier, String topLevelDocumentOriginIdentifier, const Vector<String>& audioDeviceUIDs, const Vector<String>& videoDeviceUIDs);
1205     void checkUserMediaPermissionForFrame(uint64_t userMediaID, uint64_t frameID, String userMediaDocumentOriginIdentifier, String topLevelDocumentOriginIdentifier);
1206
1207     void runModal();
1208     void notifyScrollerThumbIsVisibleInRect(const WebCore::IntRect&);
1209     void recommendedScrollbarStyleDidChange(int32_t newStyle);
1210     void didChangeScrollbarsForMainFrame(bool hasHorizontalScrollbar, bool hasVerticalScrollbar);
1211     void didChangeScrollOffsetPinningForMainFrame(bool pinnedToLeftSide, bool pinnedToRightSide, bool pinnedToTopSide, bool pinnedToBottomSide);
1212     void didChangePageCount(unsigned);
1213     void pageExtendedBackgroundColorDidChange(const WebCore::Color&);
1214 #if ENABLE(NETSCAPE_PLUGIN_API)
1215     void didFailToInitializePlugin(const String& mimeType, const String& frameURLString, const String& pageURLString);
1216     void didBlockInsecurePluginVersion(const String& mimeType, const String& pluginURLString, const String& frameURLString, const String& pageURLString, bool replacementObscured);
1217 #endif // ENABLE(NETSCAPE_PLUGIN_API)
1218     void setCanShortCircuitHorizontalWheelEvents(bool canShortCircuitHorizontalWheelEvents) { m_canShortCircuitHorizontalWheelEvents = canShortCircuitHorizontalWheelEvents; }
1219
1220     void reattachToWebProcess();
1221     RefPtr<API::Navigation> reattachToWebProcessForReload();
1222     RefPtr<API::Navigation> reattachToWebProcessWithItem(WebBackForwardListItem*);
1223
1224     void requestNotificationPermission(uint64_t notificationID, const String& originString);
1225     void showNotification(const String& title, const String& body, const String& iconURL, const String& tag, const String& lang, const String& dir, const String& originString, uint64_t notificationID);
1226     void cancelNotification(uint64_t notificationID);
1227     void clearNotifications(const Vector<uint64_t>& notificationIDs);
1228     void didDestroyNotification(uint64_t notificationID);
1229
1230 #if USE(COORDINATED_GRAPHICS_MULTIPROCESS)
1231     void pageDidRequestScroll(const WebCore::IntPoint&);
1232     void pageTransitionViewportReady();
1233     void didFindZoomableArea(const WebCore::IntPoint&, const WebCore::IntRect&);
1234 #endif
1235
1236     void didChangeContentSize(const WebCore::IntSize&);
1237
1238 #if ENABLE(INPUT_TYPE_COLOR)
1239     void showColorPicker(const WebCore::Color& initialColor, const WebCore::IntRect&);
1240     virtual void didChooseColor(const WebCore::Color&) override;
1241     virtual void didEndColorPicker() override;
1242 #endif
1243
1244     void editorStateChanged(const EditorState&);
1245     void compositionWasCanceled(const EditorState&);
1246
1247     // Back/Forward list management
1248     void backForwardAddItem(uint64_t itemID);
1249     void backForwardGoToItem(uint64_t itemID, SandboxExtension::Handle&);
1250     void backForwardItemAtIndex(int32_t index, uint64_t& itemID);
1251     void backForwardBackListCount(int32_t& count);
1252     void backForwardForwardListCount(int32_t& count);
1253     void backForwardClear();
1254
1255     // Undo management
1256     void registerEditCommandForUndo(uint64_t commandID, uint32_t editAction);
1257     void registerInsertionUndoGrouping();
1258     void clearAllEditCommands();
1259     void canUndoRedo(uint32_t action, bool& result);
1260     void executeUndoRedo(uint32_t action, bool& result);
1261
1262     // Keyboard handling
1263 #if PLATFORM(COCOA)
1264     void executeSavedCommandBySelector(const String& selector, bool& handled);
1265 #endif
1266
1267 #if PLATFORM(GTK)
1268     void getEditorCommandsForKeyEvent(const AtomicString&, Vector<String>&);
1269     void bindAccessibilityTree(const String&);
1270 #endif
1271 #if PLATFORM(EFL)
1272     void getEditorCommandsForKeyEvent(Vector<String>&);
1273 #endif
1274
1275     // Popup Menu.
1276     void showPopupMenu(const WebCore::IntRect& rect, uint64_t textDirection, const Vector<WebPopupItem>& items, int32_t selectedIndex, const PlatformPopupMenuData&);
1277     void hidePopupMenu();
1278
1279 #if ENABLE(CONTEXT_MENUS)
1280     void showContextMenu(const ContextMenuContextData&, const UserData&);
1281     void internalShowContextMenu(const ContextMenuContextData&, const UserData&);
1282 #endif
1283
1284 #if ENABLE(TELEPHONE_NUMBER_DETECTION)
1285 #if PLATFORM(MAC)
1286     void showTelephoneNumberMenu(const String& telephoneNumber, const WebCore::IntPoint&);
1287 #endif
1288 #endif
1289
1290     // Search popup results
1291     void saveRecentSearches(const String&, const Vector<WebCore::RecentSearch>&);
1292     void loadRecentSearches(const String&, Vector<WebCore::RecentSearch>&);
1293
1294 #if PLATFORM(COCOA)
1295     // Speech.
1296     void getIsSpeaking(bool&);
1297     void speak(const String&);
1298     void stopSpeaking();
1299
1300     // Spotlight.
1301     void searchWithSpotlight(const String&);
1302         
1303     void searchTheWeb(const String&);
1304
1305     // Dictionary.
1306     void didPerformDictionaryLookup(const WebCore::DictionaryPopupInfo&);
1307 #endif
1308
1309 #if PLATFORM(MAC)
1310     bool appleMailPaginationQuirkEnabled();
1311 #endif
1312
1313     // Spelling and grammar.
1314     void checkSpellingOfString(const String& text, int32_t& misspellingLocation, int32_t& misspellingLength);
1315     void checkGrammarOfString(const String& text, Vector<WebCore::GrammarDetail>&, int32_t& badGrammarLocation, int32_t& badGrammarLength);
1316     void spellingUIIsShowing(bool&);
1317     void updateSpellingUIWithMisspelledWord(const String& misspelledWord);
1318     void updateSpellingUIWithGrammarString(const String& badGrammarPhrase, const WebCore::GrammarDetail&);
1319     void learnWord(const String& word);
1320     void ignoreWord(const String& word);
1321     void requestCheckingOfString(uint64_t requestID, const WebCore::TextCheckingRequestData&);
1322
1323     void setFocus(bool focused);
1324     void takeFocus(uint32_t direction);
1325     void setToolTip(const String&);
1326     void setCursor(const WebCore::Cursor&);
1327     void setCursorHiddenUntilMouseMoves(bool);
1328
1329     void didReceiveEvent(uint32_t opaqueType, bool handled);
1330     void stopResponsivenessTimer();
1331
1332     void voidCallback(uint64_t);
1333     void dataCallback(const IPC::DataReference&, uint64_t);
1334     void imageCallback(const ShareableBitmap::Handle&, uint64_t);
1335     void stringCallback(const String&, uint64_t);
1336     void scriptValueCallback(const IPC::DataReference&, bool hadException, const WebCore::ExceptionDetails&, uint64_t);
1337     void computedPagesCallback(const Vector<WebCore::IntRect>&, double totalScaleFactorForPrinting, uint64_t);
1338     void validateCommandCallback(const String&, bool, int, uint64_t);
1339     void unsignedCallback(uint64_t, uint64_t);
1340     void editingRangeCallback(const EditingRange&, uint64_t);
1341 #if PLATFORM(COCOA)
1342     void machSendRightCallback(const WebCore::MachSendRight&, uint64_t);
1343 #endif
1344     void rectForCharacterRangeCallback(const WebCore::IntRect&, const EditingRange&, uint64_t);
1345 #if PLATFORM(MAC)
1346     void attributedStringForCharacterRangeCallback(const AttributedString&, const EditingRange&, uint64_t);
1347     void fontAtSelectionCallback(const String&, double, bool, uint64_t);
1348 #endif
1349 #if PLATFORM(IOS)
1350     void gestureCallback(const WebCore::IntPoint&, uint32_t, uint32_t, uint32_t, uint64_t);
1351     void touchesCallback(const WebCore::IntPoint&, uint32_t, uint64_t);
1352     void autocorrectionDataCallback(const Vector<WebCore::FloatRect>&, const String&, float, uint64_t, uint64_t);
1353     void autocorrectionContextCallback(const String&, const String&, const String&, const String&, uint64_t, uint64_t, uint64_t);
1354     void dictationContextCallback(const String&, const String&, const String&, uint64_t);
1355     void interpretKeyEvent(const EditorState&, bool isCharEvent, bool& handled);
1356     void showPlaybackTargetPicker(bool hasVideo, const WebCore::IntRect& elementRect);
1357 #endif
1358 #if PLATFORM(GTK)
1359     void printFinishedCallback(const WebCore::ResourceError&, uint64_t);
1360 #endif
1361
1362     void focusedFrameChanged(uint64_t frameID);
1363     void frameSetLargestFrameChanged(uint64_t frameID);
1364
1365     void canAuthenticateAgainstProtectionSpaceInFrame(uint64_t frameID, const WebCore::ProtectionSpace&, bool& canAuthenticate);
1366     void didReceiveAuthenticationChallenge(uint64_t frameID, const WebCore::AuthenticationChallenge&, uint64_t challengeID);
1367
1368     void didFinishLoadingDataForCustomContentProvider(const String& suggestedFilename, const IPC::DataReference&);
1369
1370 #if PLATFORM(COCOA)
1371     void pluginFocusOrWindowFocusChanged(uint64_t pluginComplexTextInputIdentifier, bool pluginHasFocusAndWindowHasFocus);
1372     void setPluginComplexTextInputState(uint64_t pluginComplexTextInputIdentifier, uint64_t complexTextInputState);
1373 #endif
1374
1375     bool maybeInitializeSandboxExtensionHandle(const WebCore::URL&, SandboxExtension::Handle&);
1376
1377 #if PLATFORM(MAC)
1378     void substitutionsPanelIsShowing(bool&);
1379     void showCorrectionPanel(int32_t panelType, const WebCore::FloatRect& boundingBoxOfReplacedString, const String& replacedString, const String& replacementString, const Vector<String>& alternativeReplacementStrings);
1380     void dismissCorrectionPanel(int32_t reason);
1381     void dismissCorrectionPanelSoon(int32_t reason, String& result);
1382     void recordAutocorrectionResponse(int32_t responseType, const String& replacedString, const String& replacementString);
1383
1384 #if USE(DICTATION_ALTERNATIVES)
1385     void showDictationAlternativeUI(const WebCore::FloatRect& boundingBoxOfDictatedText, uint64_t dictationContext);
1386     void removeDictationAlternatives(uint64_t dictationContext);
1387     void dictationAlternatives(uint64_t dictationContext, Vector<String>& result);
1388 #endif
1389 #endif // PLATFORM(MAC)
1390
1391 #if PLATFORM(IOS)
1392     WebCore::FloatSize screenSize();
1393     WebCore::FloatSize availableScreenSize();
1394     float textAutosizingWidth();
1395
1396     void dynamicViewportUpdateChangedTarget(double newTargetScale, const WebCore::FloatPoint& newScrollPosition, uint64_t dynamicViewportSizeUpdateID);
1397     void couldNotRestorePageState();
1398     void restorePageState(const WebCore::FloatRect&, double scale);
1399     void restorePageCenterAndScale(const WebCore::FloatPoint&, double scale);
1400
1401     void didGetTapHighlightGeometries(uint64_t requestID, const WebCore::Color& color, const Vector<WebCore::FloatQuad>& geometries, const WebCore::IntSize& topLeftRadius, const WebCore::IntSize& topRightRadius, const WebCore::IntSize& bottomLeftRadius, const WebCore::IntSize& bottomRightRadius);
1402
1403     void startAssistingNode(const AssistedNodeInformation&, bool userIsInteracting, bool blurPreviousNode, const UserData&);
1404     void stopAssistingNode();
1405
1406     void showInspectorHighlight(const WebCore::Highlight&);
1407     void hideInspectorHighlight();
1408
1409     void showInspectorIndication();
1410     void hideInspectorIndication();
1411
1412     void enableInspectorNodeSearch();
1413     void disableInspectorNodeSearch();
1414 #endif // PLATFORM(IOS)
1415
1416 #if ENABLE(DATA_DETECTION)
1417     RetainPtr<NSArray> m_dataDetectionResults;
1418 #endif
1419
1420     void clearLoadDependentCallbacks();
1421
1422     void performDragControllerAction(DragControllerAction, WebCore::DragData&, const String& dragStorageName, const SandboxExtension::Handle&, const SandboxExtension::HandleArray&);
1423
1424     void updateBackingStoreDiscardableState();
1425
1426     void setRenderTreeSize(uint64_t treeSize) { m_renderTreeSize = treeSize; }
1427
1428 #if PLUGIN_ARCHITECTURE(X11)
1429     void createPluginContainer(uint64_t& windowID);
1430     void windowedPluginGeometryDidChange(const WebCore::IntRect& frameRect, const WebCore::IntRect& clipRect, uint64_t windowID);
1431     void windowedPluginVisibilityDidChange(bool isVisible, uint64_t windowID);
1432 #endif
1433
1434     void processNextQueuedWheelEvent();
1435     void sendWheelEvent(const WebWheelEvent&);
1436
1437 #if ENABLE(TOUCH_EVENTS)
1438     bool shouldStartTrackingTouchEvents(const WebTouchEvent&) const;
1439 #endif
1440
1441 #if ENABLE(NETSCAPE_PLUGIN_API)
1442     void findPlugin(const String& mimeType, uint32_t processType, const String& urlString, const String& frameURLString, const String& pageURLString, bool allowOnlyApplicationPlugins, uint64_t& pluginProcessToken, String& newMIMEType, uint32_t& pluginLoadPolicy, String& unavailabilityDescription);
1443 #endif
1444
1445 #if USE(QUICK_LOOK)
1446     void didStartLoadForQuickLookDocumentInMainFrame(const String& fileName, const String& uti);
1447     void didFinishLoadForQuickLookDocumentInMainFrame(const QuickLookDocumentData&);
1448 #endif
1449
1450 #if ENABLE(CONTENT_FILTERING)
1451     void contentFilterDidBlockLoadForFrame(const WebCore::ContentFilterUnblockHandler&, uint64_t frameID);
1452 #endif
1453
1454     uint64_t generateNavigationID();
1455
1456     WebPreferencesStore preferencesStore() const;
1457
1458     void dispatchViewStateChange();
1459     void viewDidLeaveWindow();
1460     void viewDidEnterWindow();
1461
1462 #if PLATFORM(MAC)
1463     void didPerformImmediateActionHitTest(const WebHitTestResultData&, bool contentPreventsDefault, const UserData&);
1464 #endif
1465
1466     void useFixedLayoutDidChange(bool useFixedLayout) { m_useFixedLayout = useFixedLayout; }
1467     void fixedLayoutSizeDidChange(WebCore::IntSize fixedLayoutSize) { m_fixedLayoutSize = fixedLayoutSize; }
1468
1469     void imageOrMediaDocumentSizeChanged(const WebCore::IntSize&);
1470 #if ENABLE(VIDEO)
1471 #if USE(GSTREAMER)
1472     void requestInstallMissingMediaPlugins(const String& details, const String& description);
1473 #endif
1474 #endif
1475
1476     void handleAutoFillButtonClick(const UserData&);
1477
1478     void finishInitializingWebPageAfterProcessLaunch();
1479
1480     void handleMessage(IPC::Connection&, const String& messageName, const UserData& messageBody);
1481     void handleSynchronousMessage(IPC::Connection&, const String& messageName, const UserData& messageBody, UserData& returnUserData);
1482
1483     PageClient& m_pageClient;
1484     Ref<API::PageConfiguration> m_configuration;
1485
1486     std::unique_ptr<API::LoaderClient> m_loaderClient;
1487     std::unique_ptr<API::PolicyClient> m_policyClient;
1488     std::unique_ptr<API::NavigationClient> m_navigationClient;
1489     std::unique_ptr<API::HistoryClient> m_historyClient;
1490     std::unique_ptr<API::FormClient> m_formClient;
1491     std::unique_ptr<API::UIClient> m_uiClient;
1492     std::unique_ptr<API::FindClient> m_findClient;
1493     std::unique_ptr<API::FindMatchesClient> m_findMatchesClient;
1494     std::unique_ptr<API::DiagnosticLoggingClient> m_diagnosticLoggingClient;
1495 #if ENABLE(CONTEXT_MENUS)
1496     std::unique_ptr<API::ContextMenuClient> m_contextMenuClient;
1497 #endif
1498     std::unique_ptr<WebPageInjectedBundleClient> m_injectedBundleClient;
1499
1500     std::unique_ptr<WebNavigationState> m_navigationState;
1501     String m_failingProvisionalLoadURL;
1502
1503     std::unique_ptr<DrawingAreaProxy> m_drawingArea;
1504 #if ENABLE(ASYNC_SCROLLING)
1505     std::unique_ptr<RemoteScrollingCoordinatorProxy> m_scrollingCoordinatorProxy;
1506 #endif
1507
1508     Ref<WebProcessProxy> m_process;
1509     Ref<WebPageGroup> m_pageGroup;
1510     Ref<WebPreferences> m_preferences;
1511
1512     WebProcessLifetimeTracker m_webProcessLifetimeTracker { *this };
1513
1514     Ref<WebUserContentControllerProxy> m_userContentController;
1515     Ref<VisitedLinkStore> m_visitedLinkStore;
1516     Ref<WebsiteDataStore> m_websiteDataStore;
1517
1518     RefPtr<WebFrameProxy> m_mainFrame;
1519     RefPtr<WebFrameProxy> m_focusedFrame;
1520     RefPtr<WebFrameProxy> m_frameSetLargestFrame;
1521
1522     String m_userAgent;
1523     String m_applicationNameForUserAgent;
1524     String m_customUserAgent;
1525     String m_customTextEncodingName;
1526
1527     bool m_treatsSHA1CertificatesAsInsecure;
1528
1529     RefPtr<WebInspectorProxy> m_inspector;
1530
1531 #if ENABLE(FULLSCREEN_API)
1532     RefPtr<WebFullScreenManagerProxy> m_fullScreenManager;
1533 #endif
1534 #if PLATFORM(IOS) || (PLATFORM(MAC) && ENABLE(VIDEO_PRESENTATION_MODE))
1535     RefPtr<WebVideoFullscreenManagerProxy> m_videoFullscreenManager;
1536 #endif
1537 #if PLATFORM(IOS)
1538     VisibleContentRectUpdateInfo m_lastVisibleContentRectUpdate;
1539     bool m_hasReceivedLayerTreeTransactionAfterDidCommitLoad;
1540     uint64_t m_firstLayerTreeTransactionIdAfterDidCommitLoad;
1541     int32_t m_deviceOrientation;
1542     bool m_dynamicViewportSizeUpdateWaitingForTarget;
1543     bool m_dynamicViewportSizeUpdateWaitingForLayerTreeCommit;
1544     uint64_t m_dynamicViewportSizeUpdateLayerTreeTransactionID;
1545     uint64_t m_layerTreeTransactionIdAtLastTouchStart;
1546     uint64_t m_currentDynamicViewportSizeUpdateID { 0 };
1547     bool m_hasNetworkRequestsOnSuspended;
1548 #endif
1549
1550 #if ENABLE(VIBRATION)
1551     RefPtr<WebVibrationProxy> m_vibration;
1552 #endif
1553
1554 #if USE(APPLE_INTERNAL_SDK)
1555 #include <WebKitAdditions/WebPageProxyMembers.h>
1556 #endif
1557
1558     CallbackMap m_callbacks;
1559     HashSet<uint64_t> m_loadDependentStringCallbackIDs;
1560
1561     HashSet<WebEditCommandProxy*> m_editCommandSet;
1562
1563 #if PLATFORM(COCOA)
1564     HashSet<String> m_knownKeypressCommandNames;
1565 #endif
1566
1567     RefPtr<WebPopupMenuProxy> m_activePopupMenu;
1568 #if ENABLE(CONTEXT_MENUS)
1569     std::unique_ptr<WebContextMenuProxy> m_activeContextMenu;
1570     ContextMenuContextData m_activeContextMenuContextData;
1571 #endif
1572     RefPtr<API::HitTestResult> m_lastMouseMoveHitTestResult;
1573
1574     RefPtr<WebOpenPanelResultListenerProxy> m_openPanelResultListener;
1575     GeolocationPermissionRequestManagerProxy m_geolocationPermissionRequestManager;
1576     NotificationPermissionRequestManagerProxy m_notificationPermissionRequestManager;
1577
1578     UserMediaPermissionRequestManagerProxy m_userMediaPermissionRequestManager;
1579
1580     WebCore::ViewState::Flags m_viewState;
1581     bool m_viewWasEverInWindow;
1582 #if PLATFORM(IOS)
1583     bool m_allowsMediaDocumentInlinePlayback { false };
1584     bool m_alwaysRunsAtForegroundPriority;
1585     ProcessThrottler::ForegroundActivityToken m_activityToken;
1586 #endif
1587         
1588     Ref<WebBackForwardList> m_backForwardList;
1589         
1590     bool m_maintainsInactiveSelection;
1591
1592     String m_toolTip;
1593
1594     EditorState m_editorState;
1595     bool m_isEditable;
1596
1597     double m_textZoomFactor;
1598     double m_pageZoomFactor;
1599     double m_pageScaleFactor;
1600     double m_pluginZoomFactor;
1601     double m_pluginScaleFactor;
1602     double m_viewScaleFactor { 1 };
1603     float m_intrinsicDeviceScaleFactor;
1604     float m_customDeviceScaleFactor;
1605     float m_topContentInset;
1606
1607     LayerHostingMode m_layerHostingMode;
1608
1609     bool m_drawsBackground;
1610
1611     WebCore::Color m_underlayColor;
1612     WebCore::Color m_pageExtendedBackgroundColor;
1613
1614     bool m_useFixedLayout;
1615     WebCore::IntSize m_fixedLayoutSize;
1616
1617     bool m_suppressScrollbarAnimations;
1618
1619     WebCore::Pagination::Mode m_paginationMode;
1620     bool m_paginationBehavesLikeColumns;
1621     double m_pageLength;
1622     double m_gapBetweenPages;
1623     bool m_paginationLineGridEnabled;
1624         
1625     // If the process backing the web page is alive and kicking.
1626     bool m_isValid;
1627
1628     // Whether WebPageProxy::close() has been called on this page.
1629     bool m_isClosed;
1630
1631     // Whether it can run modal child web pages.
1632     bool m_canRunModal;
1633
1634     bool m_needsToFinishInitializingWebPageAfterProcessLaunch { false };
1635
1636     bool m_isInPrintingMode;
1637     bool m_isPerformingDOMPrintOperation;
1638
1639     bool m_inDecidePolicyForResponseSync;
1640     const WebCore::ResourceRequest* m_decidePolicyForResponseRequest;
1641     bool m_syncMimeTypePolicyActionIsValid;
1642     WebCore::PolicyAction m_syncMimeTypePolicyAction;
1643     DownloadID m_syncMimeTypePolicyDownloadID;
1644
1645     bool m_inDecidePolicyForNavigationAction;
1646     bool m_syncNavigationActionPolicyActionIsValid;
1647     WebCore::PolicyAction m_syncNavigationActionPolicyAction;
1648     DownloadID m_syncNavigationActionPolicyDownloadID;
1649     bool m_shouldSuppressAppLinksInNextNavigationPolicyDecision { false };
1650
1651     Deque<NativeWebKeyboardEvent> m_keyEventQueue;
1652     Deque<NativeWebWheelEvent> m_wheelEventQueue;
1653     Deque<std::unique_ptr<Vector<NativeWebWheelEvent>>> m_currentlyProcessedWheelEvents;
1654 #if ENABLE(MAC_GESTURE_EVENTS)
1655     Deque<NativeWebGestureEvent> m_gestureEventQueue;
1656 #endif
1657
1658     bool m_processingMouseMoveEvent;
1659     std::unique_ptr<NativeWebMouseEvent> m_nextMouseMoveEvent;
1660     std::unique_ptr<NativeWebMouseEvent> m_currentlyProcessedMouseDownEvent;
1661
1662 #if ENABLE(TOUCH_EVENTS)
1663     bool m_isTrackingTouchEvents;
1664 #endif
1665 #if ENABLE(TOUCH_EVENTS) && !ENABLE(IOS_TOUCH_EVENTS)
1666     Deque<QueuedTouchEvents> m_touchEventQueue;
1667 #endif
1668
1669 #if ENABLE(INPUT_TYPE_COLOR)
1670     RefPtr<WebColorPicker> m_colorPicker;
1671 #endif
1672
1673     const uint64_t m_pageID;
1674     WebCore::SessionID m_sessionID;
1675
1676     bool m_isPageSuspended;
1677     bool m_addsVisitedLinks;
1678
1679 #if ENABLE(REMOTE_INSPECTOR)
1680     bool m_allowsRemoteInspection;
1681     String m_remoteInspectionNameOverride;
1682 #endif
1683
1684 #if PLATFORM(COCOA)
1685     bool m_isSmartInsertDeleteEnabled;
1686 #endif
1687
1688 #if PLATFORM(GTK)
1689     String m_accessibilityPlugID;
1690     WebCore::Color m_backgroundColor;
1691 #endif
1692
1693     int64_t m_spellDocumentTag;
1694     bool m_hasSpellDocumentTag;
1695     unsigned m_pendingLearnOrIgnoreWordMessageCount;
1696
1697     bool m_mainFrameHasCustomContentProvider;
1698
1699 #if ENABLE(DRAG_SUPPORT)
1700     // Current drag destination details are delivered as an asynchronous response,
1701     // so we preserve them to be used when the next dragging delegate call is made.
1702     WebCore::DragOperation m_currentDragOperation;
1703     bool m_currentDragIsOverFileInput;
1704     unsigned m_currentDragNumberOfFilesToBeAccepted;
1705 #endif
1706
1707     PageLoadState m_pageLoadState;
1708     
1709     bool m_delegatesScrolling;
1710
1711     bool m_mainFrameHasHorizontalScrollbar;
1712     bool m_mainFrameHasVerticalScrollbar;
1713
1714     // Whether horizontal wheel events can be handled directly for swiping purposes.
1715     bool m_canShortCircuitHorizontalWheelEvents;
1716
1717     bool m_mainFrameIsPinnedToLeftSide;
1718     bool m_mainFrameIsPinnedToRightSide;
1719     bool m_mainFrameIsPinnedToTopSide;
1720     bool m_mainFrameIsPinnedToBottomSide;
1721
1722     bool m_shouldUseImplicitRubberBandControl;
1723     bool m_rubberBandsAtLeft;
1724     bool m_rubberBandsAtRight;
1725     bool m_rubberBandsAtTop;
1726     bool m_rubberBandsAtBottom;
1727         
1728     bool m_enableVerticalRubberBanding;
1729     bool m_enableHorizontalRubberBanding;
1730
1731     bool m_backgroundExtendsBeyondPage;
1732
1733     bool m_shouldRecordNavigationSnapshots;
1734     bool m_isShowingNavigationGestureSnapshot;
1735
1736     bool m_mainFramePluginHandlesPageScaleGesture { false };
1737
1738     unsigned m_pageCount;
1739
1740     WebCore::IntRect m_visibleScrollerThumbRect;
1741
1742     uint64_t m_renderTreeSize;
1743     uint64_t m_sessionRestorationRenderTreeSize;
1744     bool m_wantsSessionRestorationRenderTreeSizeThresholdEvent;
1745     bool m_hitRenderTreeSizeThreshold;
1746
1747     bool m_suppressVisibilityUpdates;
1748     bool m_autoSizingShouldExpandToViewHeight;
1749     WebCore::IntSize m_minimumLayoutSize;
1750
1751     float m_mediaVolume;
1752     bool m_muted;
1753     bool m_mayStartMediaWhenInWindow;
1754
1755     bool m_waitingForDidUpdateViewState;
1756
1757     bool m_shouldScaleViewToFitDocument { false };
1758     bool m_suppressNavigationSnapshotting { false };
1759
1760 #if PLATFORM(COCOA)
1761     HashMap<String, String> m_temporaryPDFFiles;
1762     std::unique_ptr<WebCore::RunLoopObserver> m_viewStateChangeDispatcher;
1763
1764     std::unique_ptr<RemoteLayerTreeScrollingPerformanceData> m_scrollingPerformanceData;
1765     bool m_scrollPerformanceDataCollectionEnabled;
1766 #endif
1767     UserObservablePageCounter::Token m_pageIsUserObservableCount;
1768     ProcessSuppressionDisabledToken m_preventProcessSuppressionCount;
1769     HiddenPageThrottlingAutoIncreasesCounter::Token m_hiddenPageDOMTimerThrottlingAutoIncreasesCount;
1770         
1771     WebCore::ScrollPinningBehavior m_scrollPinningBehavior;
1772     WTF::Optional<WebCore::ScrollbarOverlayStyle> m_scrollbarOverlayStyle;
1773
1774     uint64_t m_navigationID;
1775
1776     WebPreferencesStore::ValueMap m_configurationPreferenceValues;
1777     WebCore::ViewState::Flags m_potentiallyChangedViewStateFlags;
1778     bool m_viewStateChangeWantsSynchronousReply;
1779     Vector<uint64_t> m_nextViewStateChangeCallbacks;
1780
1781     WebCore::MediaProducer::MediaStateFlags m_mediaState { WebCore::MediaProducer::IsNotPlaying };
1782
1783 #if ENABLE(MEDIA_SESSION)
1784     bool m_hasMediaSessionWithActiveMediaElements { false };
1785 #endif
1786
1787 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS)
1788     bool m_requiresTargetMonitoring { false };
1789 #endif
1790
1791 #if PLATFORM(IOS)
1792     bool m_hasDeferredStartAssistingNode { false };
1793     std::unique_ptr<NodeAssistanceArguments> m_deferredNodeAssistanceArguments;
1794 #endif
1795 };
1796
1797 } // namespace WebKit
1798
1799 #endif // WebPageProxy_h