Add types for DownloadID and TaskIdentifier
[WebKit-https.git] / Source / WebKit2 / WebProcess / WebPage / WebPage.h
1 /*
2  * Copyright (C) 2010, 2011, 2013 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 WebPage_h
27 #define WebPage_h
28
29 #include "APIInjectedBundleFormClient.h"
30 #include "APIInjectedBundlePageContextMenuClient.h"
31 #include "APIInjectedBundlePageUIClient.h"
32 #include "APIObject.h"
33 #include "FindController.h"
34 #include "GeolocationPermissionRequestManager.h"
35 #include "ImageOptions.h"
36 #include "InjectedBundlePageDiagnosticLoggingClient.h"
37 #include "InjectedBundlePageEditorClient.h"
38 #include "InjectedBundlePageFullScreenClient.h"
39 #include "InjectedBundlePageLoaderClient.h"
40 #include "InjectedBundlePagePolicyClient.h"
41 #include "InjectedBundlePageResourceLoadClient.h"
42 #include "LayerTreeContext.h"
43 #include "MessageReceiver.h"
44 #include "MessageSender.h"
45 #include "Plugin.h"
46 #include "SandboxExtension.h"
47 #include "ShareableBitmap.h"
48 #include "UserData.h"
49 #include "UserMediaPermissionRequestManager.h"
50 #include <WebCore/DictationAlternative.h>
51 #include <WebCore/DictionaryPopupInfo.h>
52 #include <WebCore/DragData.h>
53 #include <WebCore/Editor.h>
54 #include <WebCore/FrameLoaderTypes.h>
55 #include <WebCore/HitTestResult.h>
56 #include <WebCore/HysteresisActivity.h>
57 #include <WebCore/IntRect.h>
58 #include <WebCore/IntSizeHash.h>
59 #include <WebCore/Page.h>
60 #include <WebCore/PageOverlay.h>
61 #include <WebCore/PageVisibilityState.h>
62 #include <WebCore/ScrollTypes.h>
63 #include <WebCore/TextChecking.h>
64 #include <WebCore/TextIndicator.h>
65 #include <WebCore/UserActivity.h>
66 #include <WebCore/UserContentTypes.h>
67 #include <WebCore/UserScriptTypes.h>
68 #include <WebCore/ViewState.h>
69 #include <WebCore/ViewportConfiguration.h>
70 #include <WebCore/WebCoreKeyboardUIMode.h>
71 #include <memory>
72 #include <wtf/HashMap.h>
73 #include <wtf/PassRefPtr.h>
74 #include <wtf/RefPtr.h>
75 #include <wtf/RunLoop.h>
76 #include <wtf/text/WTFString.h>
77
78 #if HAVE(ACCESSIBILITY) && (PLATFORM(GTK) || PLATFORM(EFL))
79 #include "WebPageAccessibilityObject.h"
80 #include <wtf/glib/GRefPtr.h>
81 #endif
82
83 #if PLATFORM(GTK)
84 #include "ArgumentCodersGtk.h"
85 #include "WebPrintOperationGtk.h"
86 #endif
87
88 #if PLATFORM(IOS)
89 #include "GestureTypes.h"
90 #import "WebPageMessages.h"
91 #endif
92
93 #if ENABLE(IOS_TOUCH_EVENTS)
94 #include <WebKitAdditions/PlatformTouchEventIOS.h>
95 #elif ENABLE(TOUCH_EVENTS)
96 #include <WebCore/PlatformTouchEvent.h>
97 #endif
98
99 #if ENABLE(MAC_GESTURE_EVENTS)
100 #include <WebKitAdditions/PlatformGestureEventMac.h>
101 #endif
102
103 #if ENABLE(CONTEXT_MENUS)
104 #include "InjectedBundlePageContextMenuClient.h"
105 #endif
106
107 #if PLATFORM(COCOA)
108 #include "ViewGestureGeometryCollector.h"
109 #include <wtf/RetainPtr.h>
110 OBJC_CLASS CALayer;
111 OBJC_CLASS NSDictionary;
112 OBJC_CLASS NSObject;
113 OBJC_CLASS WKAccessibilityWebPageObject;
114 #endif
115
116 namespace API {
117 class Array;
118 }
119
120 namespace IPC {
121 class ArgumentDecoder;
122 class Connection;
123 }
124
125 namespace WebCore {
126 class DocumentLoader;
127 class GraphicsContext;
128 class Frame;
129 class FrameView;
130 class HTMLPlugInElement;
131 class HTMLPlugInImageElement;
132 class IntPoint;
133 class KeyboardEvent;
134 class MediaPlaybackTargetContext;
135 class Page;
136 class PrintContext;
137 class Range;
138 class ResourceResponse;
139 class ResourceRequest;
140 class SharedBuffer;
141 class SubstituteData;
142 class TextCheckingRequest;
143 class URL;
144 class VisibleSelection;
145 struct Highlight;
146 struct KeypressCommand;
147 struct TextCheckingResult;
148
149 #if ENABLE(VIDEO) && USE(GSTREAMER)
150 class MediaPlayerRequestInstallMissingPluginsCallback;
151 #endif
152 }
153
154 namespace WebKit {
155 class DownloadID;
156 class DrawingArea;
157 class InjectedBundleBackForwardList;
158 class NotificationPermissionRequestManager;
159 class PDFPlugin;
160 class PageBanner;
161 class PluginView;
162 class VisibleContentRectUpdateInfo;
163 class WebColorChooser;
164 class WebContextMenu;
165 class WebContextMenuItemData;
166 class WebDocumentLoader;
167 class WebEvent;
168 class WebFrame;
169 class WebFullScreenManager;
170 class WebImage;
171 class WebInspector;
172 class WebInspectorClient;
173 class WebInspectorUI;
174 class WebGestureEvent;
175 class WebKeyboardEvent;
176 class WebMouseEvent;
177 class WebNotificationClient;
178 class WebOpenPanelResultListener;
179 class WebPageGroupProxy;
180 class WebPageOverlay;
181 class WebPopupMenu;
182 class WebUndoStep;
183 class WebUserContentController;
184 class WebVideoFullscreenManager;
185 class WebWheelEvent;
186 struct AssistedNodeInformation;
187 struct AttributedString;
188 struct BackForwardListItemState;
189 struct EditingRange;
190 struct EditorState;
191 struct InteractionInformationAtPosition;
192 struct PrintInfo;
193 struct WebPageCreationParameters;
194 struct WebPreferencesStore;
195
196 #if PLATFORM(COCOA)
197 class RemoteLayerTreeTransaction;
198 #endif
199
200 #if ENABLE(TOUCH_EVENTS)
201 class WebTouchEvent;
202 #endif
203
204 class WebPage : public API::ObjectImpl<API::Object::Type::BundlePage>, public IPC::MessageReceiver, public IPC::MessageSender {
205 public:
206     static Ref<WebPage> create(uint64_t pageID, const WebPageCreationParameters&);
207     virtual ~WebPage();
208
209     void reinitializeWebPage(const WebPageCreationParameters&);
210
211     void close();
212
213     static WebPage* fromCorePage(WebCore::Page*);
214
215     WebCore::Page* corePage() const { return m_page.get(); }
216     uint64_t pageID() const { return m_pageID; }
217     WebCore::SessionID sessionID() const { return m_page->sessionID(); }
218     bool usesEphemeralSession() const { return m_page->usesEphemeralSession(); }
219
220     void setSessionID(WebCore::SessionID);
221
222     void setSize(const WebCore::IntSize&);
223     const WebCore::IntSize& size() const { return m_viewSize; }
224     WebCore::IntRect bounds() const { return WebCore::IntRect(WebCore::IntPoint(), size()); }
225     
226     InjectedBundleBackForwardList* backForwardList();
227     DrawingArea* drawingArea() const { return m_drawingArea.get(); }
228 #if ENABLE(ASYNC_SCROLLING)
229     WebCore::ScrollingCoordinator* scrollingCoordinator() const;
230 #endif
231
232     WebPageGroupProxy* pageGroup() const { return m_pageGroup.get(); }
233
234     void scrollMainFrameIfNotAtMaxScrollPosition(const WebCore::IntSize& scrollOffset);
235
236     bool scrollBy(uint32_t scrollDirection, uint32_t scrollGranularity);
237
238     void centerSelectionInVisibleArea();
239
240 #if PLATFORM(COCOA)
241     void willCommitLayerTree(RemoteLayerTreeTransaction&);
242     void didFlushLayerTreeAtTime(std::chrono::milliseconds);
243 #endif
244
245     enum class LazyCreationPolicy { UseExistingOnly, CreateIfNeeded };
246
247     WebInspector* inspector(LazyCreationPolicy = LazyCreationPolicy::CreateIfNeeded);
248     WebInspectorUI* inspectorUI();
249     bool isInspectorPage() { return !!m_inspectorUI; }
250
251 #if PLATFORM(IOS)
252     WebVideoFullscreenManager* videoFullscreenManager();
253     void setAllowsMediaDocumentInlinePlayback(bool);
254     bool allowsMediaDocumentInlinePlayback() const { return m_allowsMediaDocumentInlinePlayback; }
255 #endif
256
257 #if ENABLE(FULLSCREEN_API)
258     WebFullScreenManager* fullScreenManager();
259 #endif
260
261     // -- Called by the DrawingArea.
262     // FIXME: We could genericize these into a DrawingArea client interface. Would that be beneficial?
263     void drawRect(WebCore::GraphicsContext&, const WebCore::IntRect&);
264     void layoutIfNeeded();
265
266     // -- Called from WebCore clients.
267     bool handleEditingKeyboardEvent(WebCore::KeyboardEvent*);
268
269     void didStartPageTransition();
270     void didCompletePageTransition();
271     void didCommitLoad(WebFrame*);
272     void willReplaceMultipartContent(const WebFrame&);
273     void didReplaceMultipartContent(const WebFrame&);
274     void didFinishLoad(WebFrame*);
275     void show();
276     String userAgent(const WebCore::URL&) const;
277     String userAgent(WebFrame*, const WebCore::URL&) const;
278     String platformUserAgent(const WebCore::URL&) const;
279     WebCore::KeyboardUIMode keyboardUIMode();
280
281     WebUndoStep* webUndoStep(uint64_t);
282     void addWebUndoStep(uint64_t, WebUndoStep*);
283     void removeWebEditCommand(uint64_t);
284     bool isInRedo() const { return m_isInRedo; }
285
286     void setActivePopupMenu(WebPopupMenu*);
287
288 #if ENABLE(INPUT_TYPE_COLOR)
289     WebColorChooser* activeColorChooser() const { return m_activeColorChooser; }
290     void setActiveColorChooser(WebColorChooser*);
291     void didChooseColor(const WebCore::Color&);
292     void didEndColorPicker();
293 #endif
294
295     WebOpenPanelResultListener* activeOpenPanelResultListener() const { return m_activeOpenPanelResultListener.get(); }
296     void setActiveOpenPanelResultListener(PassRefPtr<WebOpenPanelResultListener>);
297
298     void didReceiveMessage(IPC::Connection&, IPC::MessageDecoder&) override;
299     void didReceiveSyncMessage(IPC::Connection&, IPC::MessageDecoder&, std::unique_ptr<IPC::MessageEncoder>&) override;
300
301     // -- InjectedBundle methods
302 #if ENABLE(CONTEXT_MENUS)
303     void setInjectedBundleContextMenuClient(std::unique_ptr<API::InjectedBundle::PageContextMenuClient>);
304 #endif
305     void initializeInjectedBundleEditorClient(WKBundlePageEditorClientBase*);
306     void setInjectedBundleFormClient(std::unique_ptr<API::InjectedBundle::FormClient>);
307     void initializeInjectedBundleLoaderClient(WKBundlePageLoaderClientBase*);
308     void initializeInjectedBundlePolicyClient(WKBundlePagePolicyClientBase*);
309     void initializeInjectedBundleResourceLoadClient(WKBundlePageResourceLoadClientBase*);
310     void setInjectedBundleUIClient(std::unique_ptr<API::InjectedBundle::PageUIClient>);
311 #if ENABLE(FULLSCREEN_API)
312     void initializeInjectedBundleFullScreenClient(WKBundlePageFullScreenClientBase*);
313 #endif
314     void initializeInjectedBundleDiagnosticLoggingClient(WKBundlePageDiagnosticLoggingClientBase*);
315
316 #if ENABLE(CONTEXT_MENUS)
317     API::InjectedBundle::PageContextMenuClient& injectedBundleContextMenuClient() { return *m_contextMenuClient.get(); }
318 #endif
319     InjectedBundlePageEditorClient& injectedBundleEditorClient() { return m_editorClient; }
320     API::InjectedBundle::FormClient& injectedBundleFormClient() { return *m_formClient.get(); }
321     InjectedBundlePageLoaderClient& injectedBundleLoaderClient() { return m_loaderClient; }
322     InjectedBundlePagePolicyClient& injectedBundlePolicyClient() { return m_policyClient; }
323     InjectedBundlePageResourceLoadClient& injectedBundleResourceLoadClient() { return m_resourceLoadClient; }
324     API::InjectedBundle::PageUIClient& injectedBundleUIClient() { return *m_uiClient.get(); }
325     InjectedBundlePageDiagnosticLoggingClient& injectedBundleDiagnosticLoggingClient() { return m_logDiagnosticMessageClient; }
326 #if ENABLE(FULLSCREEN_API)
327     InjectedBundlePageFullScreenClient& injectedBundleFullScreenClient() { return m_fullScreenClient; }
328 #endif
329
330     bool findStringFromInjectedBundle(const String&, FindOptions);
331
332     WebFrame* mainWebFrame() const { return m_mainFrame.get(); }
333
334     WebCore::MainFrame* mainFrame() const; // May return 0.
335     WebCore::FrameView* mainFrameView() const; // May return 0.
336
337     PassRefPtr<WebCore::Range> currentSelectionAsRange();
338
339 #if ENABLE(NETSCAPE_PLUGIN_API)
340     PassRefPtr<Plugin> createPlugin(WebFrame*, WebCore::HTMLPlugInElement*, const Plugin::Parameters&, String& newMIMEType);
341 #endif
342
343 #if ENABLE(WEBGL)
344     WebCore::WebGLLoadPolicy webGLPolicyForURL(WebFrame*, const String&);
345     WebCore::WebGLLoadPolicy resolveWebGLPolicyForURL(WebFrame*, const String&);
346 #endif // ENABLE(WEBGL)
347     
348     enum class IncludePostLayoutDataHint { No, Yes };
349     EditorState editorState(IncludePostLayoutDataHint = IncludePostLayoutDataHint::Yes) const;
350     void sendPostLayoutEditorStateIfNeeded();
351
352     String renderTreeExternalRepresentation() const;
353     String renderTreeExternalRepresentationForPrinting() const;
354     uint64_t renderTreeSize() const;
355
356     void setTracksRepaints(bool);
357     bool isTrackingRepaints() const;
358     void resetTrackedRepaints();
359     Ref<API::Array> trackedRepaintRects();
360
361     void executeEditingCommand(const String& commandName, const String& argument);
362     bool isEditingCommandEnabled(const String& commandName);
363     void clearMainFrameName();
364     void sendClose();
365
366     void sendSetWindowFrame(const WebCore::FloatRect&);
367
368     double textZoomFactor() const;
369     void setTextZoomFactor(double);
370     double pageZoomFactor() const;
371     void setPageZoomFactor(double);
372     void setPageAndTextZoomFactors(double pageZoomFactor, double textZoomFactor);
373     void windowScreenDidChange(uint32_t);
374
375     void scalePage(double scale, const WebCore::IntPoint& origin);
376     void scalePageInViewCoordinates(double scale, WebCore::IntPoint centerInViewCoordinates);
377     double pageScaleFactor() const;
378     double totalScaleFactor() const;
379     double viewScaleFactor() const;
380     void scaleView(double scale);
381
382     void setUseFixedLayout(bool);
383     bool useFixedLayout() const { return m_useFixedLayout; }
384     void setFixedLayoutSize(const WebCore::IntSize&);
385     WebCore::IntSize fixedLayoutSize() const;
386
387     void listenForLayoutMilestones(uint32_t /* LayoutMilestones */);
388
389     void setSuppressScrollbarAnimations(bool);
390     
391     void setEnableVerticalRubberBanding(bool);
392     void setEnableHorizontalRubberBanding(bool);
393     
394     void setBackgroundExtendsBeyondPage(bool);
395
396     void setPaginationMode(uint32_t /* WebCore::Pagination::Mode */);
397     void setPaginationBehavesLikeColumns(bool);
398     void setPageLength(double);
399     void setGapBetweenPages(double);
400
401     void postInjectedBundleMessage(const String& messageName, const UserData&);
402
403     bool drawsBackground() const { return m_drawsBackground; }
404
405     void setUnderlayColor(const WebCore::Color& color) { m_underlayColor = color; }
406     WebCore::Color underlayColor() const { return m_underlayColor; }
407
408     void stopLoading();
409     void stopLoadingFrame(uint64_t frameID);
410     bool defersLoading() const;
411     void setDefersLoading(bool deferLoading);
412
413     void enterAcceleratedCompositingMode(WebCore::GraphicsLayer*);
414     void exitAcceleratedCompositingMode();
415
416     void addPluginView(PluginView*);
417     void removePluginView(PluginView*);
418
419     bool isVisible() const { return m_viewState & WebCore::ViewState::IsVisible; }
420     bool isVisibleOrOccluded() const { return m_viewState & WebCore::ViewState::IsVisibleOrOccluded; }
421
422     LayerHostingMode layerHostingMode() const { return m_layerHostingMode; }
423     void setLayerHostingMode(unsigned);
424
425 #if PLATFORM(COCOA)
426     void updatePluginsActiveAndFocusedState();
427     const WebCore::FloatRect& windowFrameInScreenCoordinates() const { return m_windowFrameInScreenCoordinates; }
428     const WebCore::FloatRect& windowFrameInUnflippedScreenCoordinates() const { return m_windowFrameInUnflippedScreenCoordinates; }
429     const WebCore::FloatRect& viewFrameInWindowCoordinates() const { return m_viewFrameInWindowCoordinates; }
430
431     bool hasCachedWindowFrame() const { return m_hasCachedWindowFrame; }
432
433 #if !PLATFORM(IOS)
434     void setTopOverhangImage(PassRefPtr<WebImage>);
435     void setBottomOverhangImage(PassRefPtr<WebImage>);
436 #endif // !PLATFORM(IOS)
437
438     void updateHeaderAndFooterLayersForDeviceScaleChange(float scaleFactor);
439 #endif // PLATFORM(COCOA)
440
441     bool windowIsFocused() const;
442     bool windowAndWebPageAreFocused() const;
443
444 #if !PLATFORM(IOS)
445     void setHeaderPageBanner(PassRefPtr<PageBanner>);
446     PageBanner* headerPageBanner();
447     void setFooterPageBanner(PassRefPtr<PageBanner>);
448     PageBanner* footerPageBanner();
449
450     void hidePageBanners();
451     void showPageBanners();
452     
453 #endif // !PLATFORM(IOS)
454
455     WebCore::IntPoint screenToRootView(const WebCore::IntPoint&);
456     WebCore::IntRect rootViewToScreen(const WebCore::IntRect&);
457     
458 #if PLATFORM(IOS)
459     WebCore::IntPoint accessibilityScreenToRootView(const WebCore::IntPoint&);
460     WebCore::IntRect rootViewToAccessibilityScreen(const WebCore::IntRect&);
461 #endif
462     
463     PassRefPtr<WebImage> scaledSnapshotWithOptions(const WebCore::IntRect&, double additionalScaleFactor, SnapshotOptions);
464     PassRefPtr<WebImage> snapshotAtSize(const WebCore::IntRect&, const WebCore::IntSize& bitmapSize, SnapshotOptions);
465     PassRefPtr<WebImage> snapshotNode(WebCore::Node&, SnapshotOptions, unsigned maximumPixelCount = std::numeric_limits<unsigned>::max());
466
467     static const WebEvent* currentEvent();
468
469     FindController& findController() { return m_findController; }
470
471 #if ENABLE(GEOLOCATION)
472     GeolocationPermissionRequestManager& geolocationPermissionRequestManager() { return m_geolocationPermissionRequestManager; }
473 #endif
474
475 #if PLATFORM(IOS) || PLATFORM(EFL)
476     void savePageState(WebCore::HistoryItem&);
477     void restorePageState(const WebCore::HistoryItem&);
478 #endif
479
480 #if ENABLE(MEDIA_STREAM)
481     UserMediaPermissionRequestManager& userMediaPermissionRequestManager() { return m_userMediaPermissionRequestManager; }
482 #endif
483
484 #if PLATFORM(IOS)
485     WebCore::FloatSize screenSize() const;
486     WebCore::FloatSize availableScreenSize() const;
487     int32_t deviceOrientation() const { return m_deviceOrientation; }
488     void viewportPropertiesDidChange(const WebCore::ViewportArguments&);
489     void didReceiveMobileDocType(bool);
490
491     void setUseTestingViewportConfiguration(bool useTestingViewport) { m_useTestingViewportConfiguration = useTestingViewport; }
492     bool isUsingTestingViewportConfiguration() const { return m_useTestingViewportConfiguration; }
493
494     double minimumPageScaleFactor() const;
495     double maximumPageScaleFactor() const;
496     bool allowsUserScaling() const;
497     bool hasStablePageScaleFactor() const { return m_hasStablePageScaleFactor; }
498
499     void handleTap(const WebCore::IntPoint&, uint64_t lastLayerTreeTransactionId);
500     void potentialTapAtPosition(uint64_t requestID, const WebCore::FloatPoint&);
501     void commitPotentialTap(uint64_t lastLayerTreeTransactionId);
502     void commitPotentialTapFailed();
503     void cancelPotentialTap();
504     void cancelPotentialTapInFrame(WebFrame&);
505     void tapHighlightAtPosition(uint64_t requestID, const WebCore::FloatPoint&);
506
507     void inspectorNodeSearchMovedToPosition(const WebCore::FloatPoint&);
508     void inspectorNodeSearchEndedAtPosition(const WebCore::FloatPoint&);
509
510     void blurAssistedNode();
511     void selectWithGesture(const WebCore::IntPoint&, uint32_t granularity, uint32_t gestureType, uint32_t gestureState, bool isInteractingWithAssistedNode, uint64_t callbackID);
512     void updateSelectionWithTouches(const WebCore::IntPoint& point, uint32_t touches, bool baseIsStart, uint64_t callbackID);
513     void updateBlockSelectionWithTouch(const WebCore::IntPoint&, uint32_t touch, uint32_t handlePosition);
514     void selectWithTwoTouches(const WebCore::IntPoint& from, const WebCore::IntPoint& to, uint32_t gestureType, uint32_t gestureState, uint64_t callbackID);
515     void extendSelection(uint32_t granularity);
516     void selectWordBackward();
517     void moveSelectionByOffset(int32_t offset, uint64_t callbackID);
518     void selectTextWithGranularityAtPoint(const WebCore::IntPoint&, uint32_t granularity, bool isInteractingWithAssistedNode, uint64_t callbackID);
519     void selectPositionAtBoundaryWithDirection(const WebCore::IntPoint&, uint32_t granularity, uint32_t direction, bool isInteractingWithAssistedNode, uint64_t callbackID);
520     void moveSelectionAtBoundaryWithDirection(uint32_t granularity, uint32_t direction, uint64_t callbackID);
521     void selectPositionAtPoint(const WebCore::IntPoint&, bool isInteractingWithAssistedNode, uint64_t callbackID);
522     void beginSelectionInDirection(uint32_t direction, uint64_t callbackID);
523     void updateSelectionWithExtentPoint(const WebCore::IntPoint&, bool isInteractingWithAssistedNode, uint64_t callbackID);
524     void updateSelectionWithExtentPointAndBoundary(const WebCore::IntPoint&, uint32_t granularity, bool isInteractingWithAssistedNode, uint64_t callbackID);
525
526     void elementDidFocus(WebCore::Node*);
527     void elementDidBlur(WebCore::Node*);
528     void requestDictationContext(uint64_t callbackID);
529     void replaceDictatedText(const String& oldText, const String& newText);
530     void replaceSelectedText(const String& oldText, const String& newText);
531     void requestAutocorrectionData(const String& textForAutocorrection, uint64_t callbackID);
532     void applyAutocorrection(const String& correction, const String& originalText, uint64_t callbackID);
533     void syncApplyAutocorrection(const String& correction, const String& originalText, bool& correctionApplied);
534     void requestAutocorrectionContext(uint64_t callbackID);
535     void getAutocorrectionContext(String& beforeText, String& markedText, String& selectedText, String& afterText, uint64_t& location, uint64_t& length);
536     void getPositionInformation(const WebCore::IntPoint&, InteractionInformationAtPosition&);
537     void requestPositionInformation(const WebCore::IntPoint&);
538     void startInteractionWithElementAtPosition(const WebCore::IntPoint&);
539     void stopInteraction();
540     void performActionOnElement(uint32_t action);
541     void focusNextAssistedNode(bool isForward, uint64_t callbackID);
542     void setAssistedNodeValue(const String&);
543     void setAssistedNodeValueAsNumber(double);
544     void setAssistedNodeSelectedIndex(uint32_t index, bool allowMultipleSelection);
545     void resetAssistedNodeForFrame(WebFrame*);
546     WebCore::IntRect rectForElementAtInteractionLocation();
547     void updateSelectionAppearance();
548     void getLookupContextAtPoint(const WebCore::IntPoint, uint64_t callbackID);
549
550 #if ENABLE(IOS_TOUCH_EVENTS)
551     void dispatchAsynchronousTouchEvents(const Vector<WebTouchEvent, 1>& queue);
552 #endif
553
554     void contentSizeCategoryDidChange(const String&);
555     void executeEditCommandWithCallback(const String&, uint64_t callbackID);
556
557     std::chrono::milliseconds eventThrottlingDelay() const;
558
559     void showInspectorHighlight(const WebCore::Highlight&);
560     void hideInspectorHighlight();
561
562     void showInspectorIndication();
563     void hideInspectorIndication();
564
565     void enableInspectorNodeSearch();
566     void disableInspectorNodeSearch();
567 #endif
568
569     void setLayerTreeStateIsFrozen(bool);
570     bool markLayersVolatileImmediatelyIfPossible();
571
572     NotificationPermissionRequestManager* notificationPermissionRequestManager();
573
574     void pageDidScroll();
575 #if USE(COORDINATED_GRAPHICS)
576     void pageDidRequestScroll(const WebCore::IntPoint&);
577     void setFixedVisibleContentRect(const WebCore::IntRect&);
578     void sendViewportAttributesChanged();
579 #endif
580
581 #if USE(COORDINATED_GRAPHICS_MULTIPROCESS)
582     void commitPageTransitionViewport();
583 #endif
584
585 #if ENABLE(CONTEXT_MENUS)
586     WebContextMenu* contextMenu();
587     WebContextMenu* contextMenuAtPointInWindow(const WebCore::IntPoint&);
588 #endif
589     
590     bool hasLocalDataForURL(const WebCore::URL&);
591     String cachedResponseMIMETypeForURL(const WebCore::URL&);
592     String cachedSuggestedFilenameForURL(const WebCore::URL&);
593     PassRefPtr<WebCore::SharedBuffer> cachedResponseDataForURL(const WebCore::URL&);
594
595     static bool canHandleRequest(const WebCore::ResourceRequest&);
596
597     class SandboxExtensionTracker {
598     public:
599         ~SandboxExtensionTracker();
600
601         void invalidate();
602
603         void beginLoad(WebFrame*, const SandboxExtension::Handle& handle);
604         void willPerformLoadDragDestinationAction(PassRefPtr<SandboxExtension> pendingDropSandboxExtension);
605         void didStartProvisionalLoad(WebFrame*);
606         void didCommitProvisionalLoad(WebFrame*);
607         void didFailProvisionalLoad(WebFrame*);
608
609     private:
610         void setPendingProvisionalSandboxExtension(PassRefPtr<SandboxExtension>);
611
612         RefPtr<SandboxExtension> m_pendingProvisionalSandboxExtension;
613         RefPtr<SandboxExtension> m_provisionalSandboxExtension;
614         RefPtr<SandboxExtension> m_committedSandboxExtension;
615     };
616
617     SandboxExtensionTracker& sandboxExtensionTracker() { return m_sandboxExtensionTracker; }
618
619 #if PLATFORM(EFL)
620     void setThemePath(const String&);
621 #endif
622
623 #if PLATFORM(GTK)
624     void setComposition(const String& text, const Vector<WebCore::CompositionUnderline>& underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeLength);
625     void confirmComposition(const String& text, int64_t selectionStart, int64_t selectionLength);
626     void cancelComposition();
627 #endif
628
629 #if PLATFORM (GTK) && HAVE(GTK_GESTURES)
630     void getCenterForZoomGesture(const WebCore::IntPoint& centerInViewCoordinates, WebCore::IntPoint& result);
631 #endif
632
633     void didApplyStyle();
634     void didChangeSelection();
635     void discardedComposition();
636
637 #if PLATFORM(COCOA)
638     void registerUIProcessAccessibilityTokens(const IPC::DataReference& elemenToken, const IPC::DataReference& windowToken);
639     WKAccessibilityWebPageObject* accessibilityRemoteObject();
640     NSObject *accessibilityObjectForMainFramePlugin();
641     const WebCore::FloatPoint& accessibilityPosition() const { return m_accessibilityPosition; }
642     
643     void sendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, const String& textInput);
644
645     void insertTextAsync(const String& text, const EditingRange& replacementRange, bool registerUndoGroup = false);
646     void getMarkedRangeAsync(uint64_t callbackID);
647     void getSelectedRangeAsync(uint64_t callbackID);
648     void characterIndexForPointAsync(const WebCore::IntPoint&, uint64_t callbackID);
649     void firstRectForCharacterRangeAsync(const EditingRange&, uint64_t callbackID);
650     void setCompositionAsync(const String& text, Vector<WebCore::CompositionUnderline> underlines, const EditingRange& selectionRange, const EditingRange& replacementRange);
651     void confirmCompositionAsync();
652
653 #if PLATFORM(MAC)
654     void insertDictatedTextAsync(const String& text, const EditingRange& replacementRange, const Vector<WebCore::DictationAlternative>& dictationAlternativeLocations, bool registerUndoGroup = false);
655     void attributedSubstringForCharacterRangeAsync(const EditingRange&, uint64_t callbackID);
656     void fontAtSelection(uint64_t callbackID);
657 #endif
658
659     void readSelectionFromPasteboard(const WTF::String& pasteboardName, bool& result);
660     void getStringSelectionForPasteboard(WTF::String& stringValue);
661     void getDataSelectionForPasteboard(const WTF::String pasteboardType, SharedMemory::Handle& handle, uint64_t& size);
662     void shouldDelayWindowOrderingEvent(const WebKit::WebMouseEvent&, bool& result);
663     void acceptsFirstMouse(int eventNumber, const WebKit::WebMouseEvent&, bool& result);
664     bool performNonEditingBehaviorForSelector(const String&, WebCore::KeyboardEvent*);
665
666 #if ENABLE(SERVICE_CONTROLS)
667     void replaceSelectionWithPasteboardData(const Vector<String>& types, const IPC::DataReference&);
668 #endif
669
670 #elif PLATFORM(EFL)
671     void confirmComposition(const String& compositionString);
672     void setComposition(const WTF::String& compositionString, const WTF::Vector<WebCore::CompositionUnderline>& underlines, uint64_t cursorPosition);
673     void cancelComposition();
674 #endif
675
676 #if HAVE(ACCESSIBILITY) && (PLATFORM(GTK) || PLATFORM(EFL))
677     void updateAccessibilityTree();
678 #endif
679
680     void setCompositionForTesting(const String& compositionString, uint64_t from, uint64_t length);
681     bool hasCompositionForTesting();
682     void confirmCompositionForTesting(const String& compositionString);
683
684     // FIXME: This a dummy message, to avoid breaking the build for platforms that don't require
685     // any synchronous messages, and should be removed when <rdar://problem/8775115> is fixed.
686     void dummy(bool&);
687
688 #if PLATFORM(COCOA)
689     bool isSpeaking();
690     void speak(const String&);
691     void stopSpeaking();
692
693     void performDictionaryLookupForSelection(WebCore::Frame*, const WebCore::VisibleSelection&, WebCore::TextIndicatorPresentationTransition);
694 #endif
695
696     bool isSmartInsertDeleteEnabled();
697     void setSmartInsertDeleteEnabled(bool);
698
699     bool isSelectTrailingWhitespaceEnabled();
700     void setSelectTrailingWhitespaceEnabled(bool);
701
702     void replaceSelectionWithText(WebCore::Frame*, const String&);
703     void clearSelection();
704     void restoreSelectionInFocusedEditableElement();
705
706 #if ENABLE(DRAG_SUPPORT)
707 #if PLATFORM(GTK)
708     void performDragControllerAction(uint64_t action, WebCore::DragData);
709 #else
710     void performDragControllerAction(uint64_t action, WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t draggingSourceOperationMask, const WTF::String& dragStorageName, uint32_t flags, const SandboxExtension::Handle&, const SandboxExtension::HandleArray&);
711 #endif
712     void dragEnded(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t operation);
713
714     void willPerformLoadDragDestinationAction();
715     void mayPerformUploadDragDestinationAction();
716
717     void willStartDrag() { ASSERT(!m_isStartingDrag); m_isStartingDrag = true; }
718     void didStartDrag() { ASSERT(m_isStartingDrag); m_isStartingDrag = false; }
719 #endif // ENABLE(DRAG_SUPPORT)
720
721     void beginPrinting(uint64_t frameID, const PrintInfo&);
722     void endPrinting();
723     void computePagesForPrinting(uint64_t frameID, const PrintInfo&, uint64_t callbackID);
724     void computePagesForPrintingImpl(uint64_t frameID, const PrintInfo&, Vector<WebCore::IntRect>& pageRects, double& totalScaleFactor);
725 #if PLATFORM(COCOA)
726     void drawRectToImage(uint64_t frameID, const PrintInfo&, const WebCore::IntRect&, const WebCore::IntSize&, uint64_t callbackID);
727     void drawPagesToPDF(uint64_t frameID, const PrintInfo&, uint32_t first, uint32_t count, uint64_t callbackID);
728     void drawPagesToPDFImpl(uint64_t frameID, const PrintInfo&, uint32_t first, uint32_t count, RetainPtr<CFMutableDataRef>& pdfPageData);
729 #if PLATFORM(IOS)
730     void computePagesForPrintingAndStartDrawingToPDF(uint64_t frameID, const PrintInfo&, uint32_t firstPage, PassRefPtr<Messages::WebPage::ComputePagesForPrintingAndStartDrawingToPDF::DelayedReply>);
731 #endif
732 #elif PLATFORM(GTK)
733     void drawPagesForPrinting(uint64_t frameID, const PrintInfo&, uint64_t callbackID);
734     void didFinishPrintOperation(const WebCore::ResourceError&, uint64_t callbackID);
735 #endif
736
737     void addResourceRequest(unsigned long, const WebCore::ResourceRequest&);
738     void removeResourceRequest(unsigned long);
739
740     void setMediaVolume(float);
741     void setMuted(bool);
742     void setMayStartMediaWhenInWindow(bool);
743
744 #if ENABLE(MEDIA_SESSION)
745     void handleMediaEvent(uint32_t /* WebCore::MediaEventType */);
746     void setVolumeOfMediaElement(double, uint64_t);
747 #endif
748
749     void updateMainFrameScrollOffsetPinning();
750
751     bool mainFrameHasCustomContentProvider() const;
752     void addMIMETypeWithCustomContentProvider(const String&);
753
754     void mainFrameDidLayout();
755
756     bool canRunBeforeUnloadConfirmPanel() const { return m_canRunBeforeUnloadConfirmPanel; }
757     void setCanRunBeforeUnloadConfirmPanel(bool canRunBeforeUnloadConfirmPanel) { m_canRunBeforeUnloadConfirmPanel = canRunBeforeUnloadConfirmPanel; }
758
759     bool canRunModal() const { return m_canRunModal; }
760     void setCanRunModal(bool canRunModal) { m_canRunModal = canRunModal; }
761
762     void runModal();
763
764     void setDeviceScaleFactor(float);
765     float deviceScaleFactor() const;
766
767     void forceRepaintWithoutCallback();
768
769     void unmarkAllMisspellings();
770     void unmarkAllBadGrammar();
771 #if PLATFORM(COCOA)
772     void handleAlternativeTextUIResult(const String&);
773 #endif
774
775     // For testing purpose.
776     void simulateMouseDown(int button, WebCore::IntPoint, int clickCount, WKEventModifiers, double time);
777     void simulateMouseUp(int button, WebCore::IntPoint, int clickCount, WKEventModifiers, double time);
778     void simulateMouseMotion(WebCore::IntPoint, double time);
779
780 #if ENABLE(CONTEXT_MENUS)
781     void contextMenuShowing() { m_isShowingContextMenu = true; }
782 #endif
783
784     void wheelEvent(const WebWheelEvent&);
785
786     void wheelEventHandlersChanged(bool);
787     void recomputeShortCircuitHorizontalWheelEventsState();
788
789 #if ENABLE(MAC_GESTURE_EVENTS)
790     void gestureEvent(const WebGestureEvent&);
791 #endif
792
793     void updateVisibilityState(bool isInitialState = false);
794
795 #if PLATFORM(IOS)
796     void setViewportConfigurationMinimumLayoutSize(const WebCore::FloatSize&);
797     void setMaximumUnobscuredSize(const WebCore::FloatSize&);
798     void setDeviceOrientation(int32_t);
799     void dynamicViewportSizeUpdate(const WebCore::FloatSize& minimumLayoutSize, const WebCore::FloatSize& maximumUnobscuredSize, const WebCore::FloatRect& targetExposedContentRect, const WebCore::FloatRect& targetUnobscuredRect, const WebCore::FloatRect& targetUnobscuredRectInScrollViewCoordinates, double scale, int32_t deviceOrientation, uint64_t dynamicViewportSizeUpdateID);
800     void synchronizeDynamicViewportUpdate(double& newTargetScale, WebCore::FloatPoint& newScrollPosition, uint64_t& nextValidLayerTreeTransactionID);
801     void updateVisibleContentRects(const VisibleContentRectUpdateInfo&, double oldestTimestamp);
802     bool scaleWasSetByUIProcess() const { return m_scaleWasSetByUIProcess; }
803     void willStartUserTriggeredZooming();
804     void applicationWillResignActive();
805     void applicationDidEnterBackground(bool isSuspendedUnderLock);
806     void applicationWillEnterForeground(bool isSuspendedUnderLock);
807     void applicationDidBecomeActive();
808     void zoomToRect(WebCore::FloatRect, double minimumScale, double maximumScale);
809     void completePendingSyntheticClickForContentChangeObserver();
810 #endif
811
812 #if ENABLE(IOS_TOUCH_EVENTS)
813     void dispatchTouchEvent(const WebTouchEvent&, bool& handled);
814 #endif
815
816 #if PLATFORM(GTK) && USE(TEXTURE_MAPPER_GL)
817     uint64_t nativeWindowHandle() { return m_nativeWindowHandle; }
818 #endif
819
820     bool shouldUseCustomContentProviderForResponse(const WebCore::ResourceResponse&);
821     bool canPluginHandleResponse(const WebCore::ResourceResponse& response);
822
823     bool asynchronousPluginInitializationEnabled() const { return m_asynchronousPluginInitializationEnabled; }
824     void setAsynchronousPluginInitializationEnabled(bool enabled) { m_asynchronousPluginInitializationEnabled = enabled; }
825     bool asynchronousPluginInitializationEnabledForAllPlugins() const { return m_asynchronousPluginInitializationEnabledForAllPlugins; }
826     void setAsynchronousPluginInitializationEnabledForAllPlugins(bool enabled) { m_asynchronousPluginInitializationEnabledForAllPlugins = enabled; }
827     bool artificialPluginInitializationDelayEnabled() const { return m_artificialPluginInitializationDelayEnabled; }
828     void setArtificialPluginInitializationDelayEnabled(bool enabled) { m_artificialPluginInitializationDelayEnabled = enabled; }
829     void setTabToLinksEnabled(bool enabled) { m_tabToLinks = enabled; }
830     bool tabToLinksEnabled() const { return m_tabToLinks; }
831
832     bool scrollingPerformanceLoggingEnabled() const { return m_scrollingPerformanceLoggingEnabled; }
833     void setScrollingPerformanceLoggingEnabled(bool);
834
835 #if PLATFORM(COCOA)
836     bool shouldUsePDFPlugin() const;
837     bool pdfPluginEnabled() const { return m_pdfPluginEnabled; }
838     void setPDFPluginEnabled(bool enabled) { m_pdfPluginEnabled = enabled; }
839 #endif
840
841     void savePDFToFileInDownloadsFolder(const String& suggestedFilename, const String& originatingURLString, const uint8_t* data, unsigned long size);
842 #if PLATFORM(COCOA)
843     void savePDFToTemporaryFolderAndOpenWithNativeApplication(const String& suggestedFilename, const String& originatingURLString, const uint8_t* data, unsigned long size, const String& pdfUUID);
844 #endif
845
846     bool mainFrameIsScrollable() const { return m_mainFrameIsScrollable; }
847
848     void setMinimumLayoutSize(const WebCore::IntSize&);
849     WebCore::IntSize minimumLayoutSize() const { return m_minimumLayoutSize; }
850
851     void setAutoSizingShouldExpandToViewHeight(bool shouldExpand);
852     bool autoSizingShouldExpandToViewHeight() { return m_autoSizingShouldExpandToViewHeight; }
853
854     bool canShowMIMEType(const String& MIMEType) const;
855
856     void addTextCheckingRequest(uint64_t requestID, PassRefPtr<WebCore::TextCheckingRequest>);
857     void didFinishCheckingText(uint64_t requestID, const Vector<WebCore::TextCheckingResult>&);
858     void didCancelCheckingText(uint64_t requestID);
859
860 #if ENABLE(PRIMARY_SNAPSHOTTED_PLUGIN_HEURISTIC)
861     void determinePrimarySnapshottedPlugIn();
862     void determinePrimarySnapshottedPlugInTimerFired();
863     void resetPrimarySnapshottedPlugIn();
864     bool matchesPrimaryPlugIn(const String& pageOrigin, const String& pluginOrigin, const String& mimeType) const;
865     bool plugInIntersectsSearchRect(WebCore::HTMLPlugInImageElement& pluginImageElement);
866     bool plugInIsPrimarySize(WebCore::HTMLPlugInImageElement& pluginImageElement, unsigned &pluginArea);
867 #endif
868
869     unsigned extendIncrementalRenderingSuppression();
870     void stopExtendingIncrementalRenderingSuppression(unsigned token);
871     bool shouldExtendIncrementalRenderingSuppression() { return !m_activeRenderingSuppressionTokens.isEmpty(); }
872
873     WebCore::ScrollPinningBehavior scrollPinningBehavior() { return m_scrollPinningBehavior; }
874     void setScrollPinningBehavior(uint32_t /* WebCore::ScrollPinningBehavior */ pinning);
875
876     WTF::Optional<WebCore::ScrollbarOverlayStyle> scrollbarOverlayStyle() { return m_scrollbarOverlayStyle; }
877     void setScrollbarOverlayStyle(WTF::Optional<uint32_t /* WebCore::ScrollbarOverlayStyle */> scrollbarStyle);
878
879     Ref<WebCore::DocumentLoader> createDocumentLoader(WebCore::Frame&, const WebCore::ResourceRequest&, const WebCore::SubstituteData&);
880     void updateCachedDocumentLoader(WebDocumentLoader&, WebCore::Frame&);
881
882     void getBytecodeProfile(uint64_t callbackID);
883     
884     // Some platforms require accessibility-enabled processes to spin the run loop so that the WebProcess doesn't hang.
885     // While this is not ideal, it does not have to be applied to every platform at the moment.
886     static bool synchronousMessagesShouldSpinRunLoop();
887
888 #if ENABLE(SERVICE_CONTROLS) || ENABLE(TELEPHONE_NUMBER_DETECTION)
889     void handleTelephoneNumberClick(const String& number, const WebCore::IntPoint&);
890     void handleSelectionServiceClick(WebCore::FrameSelection&, const Vector<String>& telephoneNumbers, const WebCore::IntPoint&);
891 #endif
892
893     void didChangeScrollOffsetForFrame(WebCore::Frame*);
894
895     void setMainFrameProgressCompleted(bool completed) { m_mainFrameProgressCompleted = completed; }
896     bool shouldDispatchFakeMouseMoveEvents() const { return m_shouldDispatchFakeMouseMoveEvents; }
897
898     void setPageActivityState(WebCore::PageActivityState::Flags);
899
900     void postMessage(const String& messageName, API::Object* messageBody);
901     void postSynchronousMessageForTesting(const String& messageName, API::Object* messageBody, RefPtr<API::Object>& returnData);
902
903 #if PLATFORM(GTK)
904     void setInputMethodState(bool);
905 #endif
906
907     void imageOrMediaDocumentSizeChanged(const WebCore::IntSize&);
908 #if ENABLE(VIDEO)
909 #if USE(GSTREAMER)
910     void requestInstallMissingMediaPlugins(const String& details, const String& description, WebCore::MediaPlayerRequestInstallMissingPluginsCallback&);
911 #endif
912 #endif
913
914     void addUserScript(const String& source, WebCore::UserContentInjectedFrames, WebCore::UserScriptInjectionTime);
915     void addUserStyleSheet(const String& source, WebCore::UserContentInjectedFrames);
916     void removeAllUserContent();
917
918     void dispatchDidLayout(WebCore::LayoutMilestones);
919
920     void didRestoreScrollPosition();
921
922 private:
923     WebPage(uint64_t pageID, const WebPageCreationParameters&);
924
925     // IPC::MessageSender
926     virtual IPC::Connection* messageSenderConnection() override;
927     virtual uint64_t messageSenderDestinationID() override;
928
929     void platformInitialize();
930     void platformDetach();
931     void platformEditorState(WebCore::Frame&, EditorState& result, IncludePostLayoutDataHint) const;
932
933     void didReceiveWebPageMessage(IPC::Connection&, IPC::MessageDecoder&);
934     void didReceiveSyncWebPageMessage(IPC::Connection&, IPC::MessageDecoder&, std::unique_ptr<IPC::MessageEncoder>&);
935
936 #if PLATFORM(IOS)
937     void resetViewportDefaultConfiguration(WebFrame* mainFrame);
938     void viewportConfigurationChanged();
939     void updateViewportSizeForCSSViewportUnits();
940
941     static void convertSelectionRectsToRootView(WebCore::FrameView*, Vector<WebCore::SelectionRect>&);
942     PassRefPtr<WebCore::Range> rangeForWebSelectionAtPosition(const WebCore::IntPoint&, const WebCore::VisiblePosition&, SelectionFlags&);
943     PassRefPtr<WebCore::Range> rangeForBlockAtPoint(const WebCore::IntPoint&);
944     void computeExpandAndShrinkThresholdsForHandle(const WebCore::IntPoint&, SelectionHandlePosition, float& growThreshold, float& shrinkThreshold);
945     PassRefPtr<WebCore::Range> changeBlockSelection(const WebCore::IntPoint&, SelectionHandlePosition, float& growThreshold, float& shrinkThreshold, SelectionFlags&);
946     PassRefPtr<WebCore::Range> expandedRangeFromHandle(WebCore::Range*, SelectionHandlePosition);
947     PassRefPtr<WebCore::Range> contractedRangeFromHandle(WebCore::Range* currentRange, SelectionHandlePosition, SelectionFlags&);
948     void getAssistedNodeInformation(AssistedNodeInformation&);
949     void platformInitializeAccessibility();
950     void handleSyntheticClick(WebCore::Node* nodeRespondingToClick, const WebCore::FloatPoint& location);
951     void completeSyntheticClick(WebCore::Node* nodeRespondingToClick, const WebCore::FloatPoint& location);
952     void sendTapHighlightForNodeIfNecessary(uint64_t requestID, WebCore::Node*);
953     void resetTextAutosizingBeforeLayoutIfNeeded(const WebCore::FloatSize& oldSize, const WebCore::FloatSize& newSize);
954     WebCore::VisiblePosition visiblePositionInFocusedNodeForPoint(const WebCore::Frame&, const WebCore::IntPoint&, bool isInteractingWithAssistedNode);
955     PassRefPtr<WebCore::Range> rangeForGranularityAtPoint(const WebCore::Frame&, const WebCore::IntPoint&, uint32_t granularity, bool isInteractingWithAssistedNode);
956     void volatilityTimerFired();
957 #endif
958 #if !PLATFORM(COCOA)
959     static const char* interpretKeyEvent(const WebCore::KeyboardEvent*);
960 #endif
961     bool performDefaultBehaviorForKeyEvent(const WebKeyboardEvent&);
962
963 #if PLATFORM(MAC)
964     bool executeKeypressCommandsInternal(const Vector<WebCore::KeypressCommand>&, WebCore::KeyboardEvent*);
965 #endif
966
967     String sourceForFrame(WebFrame*);
968
969     void loadDataImpl(uint64_t navigationID, PassRefPtr<WebCore::SharedBuffer>, const String& MIMEType, const String& encodingName, const WebCore::URL& baseURL, const WebCore::URL& failingURL, const UserData&);
970     void loadString(uint64_t navigationID, const String&, const String& MIMEType, const WebCore::URL& baseURL, const WebCore::URL& failingURL, const UserData&);
971
972     bool platformHasLocalDataForURL(const WebCore::URL&);
973
974     // Actions
975     void tryClose();
976     void loadRequest(uint64_t navigationID, const WebCore::ResourceRequest&, const SandboxExtension::Handle&, uint64_t shouldOpenExternalURLsPolicy, const UserData&);
977     void loadData(uint64_t navigationID, const IPC::DataReference&, const String& MIMEType, const String& encodingName, const String& baseURL, const UserData&);
978     void loadHTMLString(uint64_t navigationID, const String& htmlString, const String& baseURL, const UserData&);
979     void loadAlternateHTMLString(const String& htmlString, const String& baseURL, const String& unreachableURL, const String& provisionalLoadErrorURL, const UserData&);
980     void loadPlainTextString(const String&, const UserData&);
981     void loadWebArchiveData(const IPC::DataReference&, const UserData&);
982     void navigateToPDFLinkWithSimulatedClick(const String& url, WebCore::IntPoint documentPoint, WebCore::IntPoint screenPoint);
983     void reload(uint64_t navigationID, bool reloadFromOrigin, bool contentBlockersEnabled, const SandboxExtension::Handle&);
984     void goForward(uint64_t navigationID, uint64_t);
985     void goBack(uint64_t navigationID, uint64_t);
986     void goToBackForwardItem(uint64_t navigationID, uint64_t);
987     void tryRestoreScrollPosition();
988     void setInitialFocus(bool forward, bool isKeyboardEventValid, const WebKeyboardEvent&, uint64_t callbackID);
989     void updateIsInWindow(bool isInitialState = false);
990     void setViewState(WebCore::ViewState::Flags, bool wantsDidUpdateViewState, const Vector<uint64_t>& callbackIDs);
991     void validateCommand(const String&, uint64_t);
992     void executeEditCommand(const String&, const String&);
993     void setEditable(bool);
994
995     void updateUserActivity();
996
997     void mouseEvent(const WebMouseEvent&);
998     void keyEvent(const WebKeyboardEvent&);
999 #if ENABLE(IOS_TOUCH_EVENTS)
1000     void touchEventSync(const WebTouchEvent&, bool& handled);
1001 #elif ENABLE(TOUCH_EVENTS)
1002     void touchEvent(const WebTouchEvent&);
1003 #endif
1004 #if ENABLE(CONTEXT_MENUS)
1005     void contextMenuHidden() { m_isShowingContextMenu = false; }
1006 #endif
1007
1008     static bool scroll(WebCore::Page*, WebCore::ScrollDirection, WebCore::ScrollGranularity);
1009     static bool logicalScroll(WebCore::Page*, WebCore::ScrollLogicalDirection, WebCore::ScrollGranularity);
1010
1011     void loadURLInFrame(const String&, uint64_t frameID);
1012
1013     void restoreSession(const Vector<BackForwardListItemState>&);
1014     void didRemoveBackForwardItem(uint64_t);
1015
1016 #if ENABLE(REMOTE_INSPECTOR)
1017     void setAllowsRemoteInspection(bool);
1018     void setRemoteInspectionNameOverride(const String&);
1019 #endif
1020
1021     void setDrawsBackground(bool);
1022
1023     void setTopContentInset(float);
1024
1025     void viewWillStartLiveResize();
1026     void viewWillEndLiveResize();
1027
1028     void getContentsAsString(uint64_t callbackID);
1029 #if ENABLE(MHTML)
1030     void getContentsAsMHTMLData(uint64_t callbackID);
1031 #endif
1032     void getMainResourceDataOfFrame(uint64_t frameID, uint64_t callbackID);
1033     void getResourceDataFromFrame(uint64_t frameID, const String& resourceURL, uint64_t callbackID);
1034     void getRenderTreeExternalRepresentation(uint64_t callbackID);
1035     void getSelectionOrContentsAsString(uint64_t callbackID);
1036     void getSelectionAsWebArchiveData(uint64_t callbackID);
1037     void getSourceForFrame(uint64_t frameID, uint64_t callbackID);
1038     void getWebArchiveOfFrame(uint64_t frameID, uint64_t callbackID);
1039     void runJavaScriptInMainFrame(const String&, uint64_t callbackID);
1040     void forceRepaint(uint64_t callbackID);
1041     void takeSnapshot(WebCore::IntRect snapshotRect, WebCore::IntSize bitmapSize, uint32_t options, uint64_t callbackID);
1042
1043     void preferencesDidChange(const WebPreferencesStore&);
1044     void platformPreferencesDidChange(const WebPreferencesStore&);
1045     void updatePreferences(const WebPreferencesStore&);
1046
1047     void didReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, uint32_t policyAction, uint64_t navigationID, DownloadID);
1048     void setUserAgent(const String&);
1049     void setCustomTextEncodingName(const String&);
1050     void suspendActiveDOMObjectsAndAnimations();
1051     void resumeActiveDOMObjectsAndAnimations();
1052
1053 #if PLATFORM(COCOA)
1054     void performDictionaryLookupAtLocation(const WebCore::FloatPoint&);
1055     void performDictionaryLookupOfCurrentSelection();
1056     void performDictionaryLookupForRange(WebCore::Frame*, WebCore::Range&, NSDictionary *options, WebCore::TextIndicatorPresentationTransition);
1057     WebCore::DictionaryPopupInfo dictionaryPopupInfoForRange(WebCore::Frame*, WebCore::Range&, NSDictionary **options, WebCore::TextIndicatorPresentationTransition);
1058 #if ENABLE(PDFKIT_PLUGIN)
1059     WebCore::DictionaryPopupInfo dictionaryPopupInfoForSelectionInPDFPlugin(PDFSelection *, PDFPlugin&, NSDictionary **options, WebCore::TextIndicatorPresentationTransition);
1060 #endif
1061
1062     void windowAndViewFramesChanged(const WebCore::FloatRect& windowFrameInScreenCoordinates, const WebCore::FloatRect& windowFrameInUnflippedScreenCoordinates, const WebCore::FloatRect& viewFrameInWindowCoordinates, const WebCore::FloatPoint& accessibilityViewCoordinates);
1063
1064     RetainPtr<PDFDocument> pdfDocumentForPrintingFrame(WebCore::Frame*);
1065     void computePagesForPrintingPDFDocument(uint64_t frameID, const PrintInfo&, Vector<WebCore::IntRect>& resultPageRects);
1066     void drawPDFDocument(CGContextRef, PDFDocument *, const PrintInfo&, const WebCore::IntRect&);
1067     void drawPagesToPDFFromPDFDocument(CGContextRef, PDFDocument *, const PrintInfo&, uint32_t first, uint32_t count);
1068 #endif
1069
1070     void setMainFrameIsScrollable(bool);
1071
1072     void unapplyEditCommand(uint64_t commandID);
1073     void reapplyEditCommand(uint64_t commandID);
1074     void didRemoveEditCommand(uint64_t commandID);
1075
1076     void findString(const String&, uint32_t findOptions, uint32_t maxMatchCount);
1077     void findStringMatches(const String&, uint32_t findOptions, uint32_t maxMatchCount);
1078     void getImageForFindMatch(uint32_t matchIndex);
1079     void selectFindMatch(uint32_t matchIndex);
1080     void hideFindUI();
1081     void countStringMatches(const String&, uint32_t findOptions, uint32_t maxMatchCount);
1082
1083 #if USE(COORDINATED_GRAPHICS_MULTIPROCESS)
1084     void findZoomableAreaForPoint(const WebCore::IntPoint&, const WebCore::IntSize& area);
1085 #endif
1086
1087     void didChangeSelectedIndexForActivePopupMenu(int32_t newIndex);
1088     void setTextForActivePopupMenu(int32_t index);
1089
1090 #if PLATFORM(GTK)
1091     void failedToShowPopupMenu();
1092 #endif
1093
1094 #if PLATFORM(IOS)
1095     void didChooseFilesForOpenPanelWithDisplayStringAndIcon(const Vector<String>&, const String& displayString, const IPC::DataReference& iconData);
1096 #endif
1097     void didChooseFilesForOpenPanel(const Vector<String>&);
1098     void didCancelForOpenPanel();
1099 #if ENABLE(SANDBOX_EXTENSIONS)
1100     void extendSandboxForFileFromOpenPanel(const SandboxExtension::Handle&);
1101 #endif
1102
1103     void didReceiveGeolocationPermissionDecision(uint64_t geolocationID, bool allowed);
1104
1105     void didReceiveNotificationPermissionDecision(uint64_t notificationID, bool allowed);
1106
1107 #if ENABLE(MEDIA_STREAM)
1108     WK_EXPORT void didReceiveUserMediaPermissionDecision(uint64_t userMediaID, bool allowed, const String& audioDeviceUID, const String& videoDeviceUID);
1109     WK_EXPORT void didCompleteUserMediaPermissionCheck(uint64_t userMediaID, bool allowed);
1110 #endif
1111
1112     void advanceToNextMisspelling(bool startBeforeSelection);
1113     void changeSpellingToWord(const String& word);
1114 #if USE(APPKIT)
1115     void uppercaseWord();
1116     void lowercaseWord();
1117     void capitalizeWord();
1118 #endif
1119
1120 #if ENABLE(CONTEXT_MENUS)
1121     void didSelectItemFromActiveContextMenu(const WebContextMenuItemData&);
1122 #endif
1123
1124     void changeSelectedIndex(int32_t index);
1125     void setCanStartMediaTimerFired();
1126
1127     bool canHandleUserEvents() const;
1128
1129     static bool platformCanHandleRequest(const WebCore::ResourceRequest&);
1130
1131     static PluginView* focusedPluginViewForFrame(WebCore::Frame&);
1132     static PluginView* pluginViewForFrame(WebCore::Frame*);
1133
1134     static PassRefPtr<WebCore::Range> rangeFromEditingRange(WebCore::Frame&, const EditingRange&);
1135
1136     void reportUsedFeatures();
1137
1138 #if PLATFORM(MAC)
1139     void performImmediateActionHitTestAtLocation(WebCore::FloatPoint);
1140     RefPtr<WebCore::Range> lookupTextAtLocation(WebCore::FloatPoint, NSDictionary **options);
1141     void immediateActionDidUpdate();
1142     void immediateActionDidCancel();
1143     void immediateActionDidComplete();
1144     void setFont(const String& fontFamily, double fontSize, uint64_t fontTraits);
1145
1146     void dataDetectorsDidPresentUI(WebCore::PageOverlay::PageOverlayID);
1147     void dataDetectorsDidChangeUI(WebCore::PageOverlay::PageOverlayID);
1148     void dataDetectorsDidHideUI(WebCore::PageOverlay::PageOverlayID);
1149 #endif
1150
1151     void setShouldDispatchFakeMouseMoveEvents(bool dispatch) { m_shouldDispatchFakeMouseMoveEvents = dispatch; }
1152
1153 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS)
1154     void playbackTargetSelected(uint64_t, const WebCore::MediaPlaybackTargetContext& outputDevice) const;
1155     void playbackTargetAvailabilityDidChange(uint64_t, bool);
1156     void setShouldPlayToPlaybackTarget(uint64_t, bool);
1157 #endif
1158
1159     void clearWheelEventTestTrigger();
1160
1161     void setShouldScaleViewToFitDocument(bool);
1162
1163     void pageStoppedScrolling();
1164
1165 #if ENABLE(VIDEO) && USE(GSTREAMER)
1166     void didEndRequestInstallMissingMediaPlugins(uint32_t result);
1167 #endif
1168
1169     uint64_t m_pageID;
1170
1171     std::unique_ptr<WebCore::Page> m_page;
1172     RefPtr<WebFrame> m_mainFrame;
1173     RefPtr<InjectedBundleBackForwardList> m_backForwardList;
1174
1175     RefPtr<WebPageGroupProxy> m_pageGroup;
1176
1177     String m_userAgent;
1178
1179     WebCore::IntSize m_viewSize;
1180     std::unique_ptr<DrawingArea> m_drawingArea;
1181
1182     HashSet<PluginView*> m_pluginViews;
1183     bool m_hasSeenPlugin;
1184
1185     HashMap<uint64_t, RefPtr<WebCore::TextCheckingRequest>> m_pendingTextCheckingRequestMap;
1186
1187     bool m_useFixedLayout;
1188
1189     bool m_drawsBackground;
1190
1191     WebCore::Color m_underlayColor;
1192
1193     bool m_isInRedo;
1194     bool m_isClosed;
1195
1196     bool m_tabToLinks;
1197     
1198     bool m_asynchronousPluginInitializationEnabled;
1199     bool m_asynchronousPluginInitializationEnabledForAllPlugins;
1200     bool m_artificialPluginInitializationDelayEnabled;
1201
1202     bool m_scrollingPerformanceLoggingEnabled;
1203
1204     bool m_mainFrameIsScrollable;
1205
1206 #if PLATFORM(IOS)
1207     bool m_ignoreViewportScalingConstraints { false };
1208 #endif
1209
1210 #if ENABLE(PRIMARY_SNAPSHOTTED_PLUGIN_HEURISTIC)
1211     bool m_readyToFindPrimarySnapshottedPlugin;
1212     bool m_didFindPrimarySnapshottedPlugin;
1213     unsigned m_numberOfPrimarySnapshotDetectionAttempts;
1214     String m_primaryPlugInPageOrigin;
1215     String m_primaryPlugInOrigin;
1216     String m_primaryPlugInMimeType;
1217     RunLoop::Timer<WebPage> m_determinePrimarySnapshottedPlugInTimer;
1218 #endif
1219
1220     // The layer hosting mode.
1221     LayerHostingMode m_layerHostingMode;
1222
1223 #if PLATFORM(COCOA)
1224     bool m_pdfPluginEnabled;
1225
1226     bool m_hasCachedWindowFrame;
1227
1228     // The frame of the containing window in screen coordinates.
1229     WebCore::FloatRect m_windowFrameInScreenCoordinates;
1230
1231     // The frame of the containing window in unflipped screen coordinates.
1232     WebCore::FloatRect m_windowFrameInUnflippedScreenCoordinates;
1233
1234     // The frame of the view in window coordinates.
1235     WebCore::FloatRect m_viewFrameInWindowCoordinates;
1236
1237     // The accessibility position of the view.
1238     WebCore::FloatPoint m_accessibilityPosition;
1239     
1240     RetainPtr<WKAccessibilityWebPageObject> m_mockAccessibilityElement;
1241
1242     ViewGestureGeometryCollector m_viewGestureGeometryCollector;
1243
1244 #elif HAVE(ACCESSIBILITY) && (PLATFORM(GTK) || PLATFORM(EFL))
1245     GRefPtr<WebPageAccessibilityObject> m_accessibilityObject;
1246 #endif
1247
1248 #if PLATFORM(GTK) && USE(TEXTURE_MAPPER_GL)
1249     // Our view's window in the UI process.
1250     uint64_t m_nativeWindowHandle;
1251 #endif
1252
1253 #if !PLATFORM(IOS)
1254     RefPtr<PageBanner> m_headerBanner;
1255     RefPtr<PageBanner> m_footerBanner;
1256 #endif // !PLATFORM(IOS)
1257
1258     RunLoop::Timer<WebPage> m_setCanStartMediaTimer;
1259     bool m_mayStartMediaWhenInWindow;
1260
1261     HashMap<uint64_t, RefPtr<WebUndoStep>> m_undoStepMap;
1262
1263 #if ENABLE(CONTEXT_MENUS)
1264     std::unique_ptr<API::InjectedBundle::PageContextMenuClient> m_contextMenuClient;
1265 #endif
1266     InjectedBundlePageEditorClient m_editorClient;
1267     std::unique_ptr<API::InjectedBundle::FormClient> m_formClient;
1268     InjectedBundlePageLoaderClient m_loaderClient;
1269     InjectedBundlePagePolicyClient m_policyClient;
1270     InjectedBundlePageResourceLoadClient m_resourceLoadClient;
1271     std::unique_ptr<API::InjectedBundle::PageUIClient> m_uiClient;
1272 #if ENABLE(FULLSCREEN_API)
1273     InjectedBundlePageFullScreenClient m_fullScreenClient;
1274 #endif
1275     InjectedBundlePageDiagnosticLoggingClient m_logDiagnosticMessageClient;
1276
1277     FindController m_findController;
1278
1279     RefPtr<WebInspector> m_inspector;
1280     RefPtr<WebInspectorUI> m_inspectorUI;
1281 #if PLATFORM(IOS)
1282     RefPtr<WebVideoFullscreenManager> m_videoFullscreenManager;
1283     bool m_allowsMediaDocumentInlinePlayback { false };
1284 #endif
1285 #if ENABLE(FULLSCREEN_API)
1286     RefPtr<WebFullScreenManager> m_fullScreenManager;
1287 #endif
1288     RefPtr<WebPopupMenu> m_activePopupMenu;
1289 #if ENABLE(CONTEXT_MENUS)
1290     RefPtr<WebContextMenu> m_contextMenu;
1291 #endif
1292 #if ENABLE(INPUT_TYPE_COLOR)
1293     WebColorChooser* m_activeColorChooser;
1294 #endif
1295     RefPtr<WebOpenPanelResultListener> m_activeOpenPanelResultListener;
1296     RefPtr<NotificationPermissionRequestManager> m_notificationPermissionRequestManager;
1297
1298     RefPtr<WebUserContentController> m_userContentController;
1299
1300 #if ENABLE(GEOLOCATION)
1301     GeolocationPermissionRequestManager m_geolocationPermissionRequestManager;
1302 #endif
1303
1304 #if ENABLE(MEDIA_STREAM)
1305     UserMediaPermissionRequestManager m_userMediaPermissionRequestManager;
1306 #endif
1307
1308     std::unique_ptr<WebCore::PrintContext> m_printContext;
1309 #if PLATFORM(GTK)
1310     RefPtr<WebPrintOperationGtk> m_printOperation;
1311 #endif
1312
1313     SandboxExtensionTracker m_sandboxExtensionTracker;
1314
1315     RefPtr<SandboxExtension> m_pendingDropSandboxExtension;
1316     Vector<RefPtr<SandboxExtension>> m_pendingDropExtensionsForFileUpload;
1317
1318     WebCore::HysteresisActivity m_pageScrolledHysteresis;
1319
1320     bool m_canRunBeforeUnloadConfirmPanel;
1321
1322     bool m_canRunModal;
1323     bool m_isRunningModal;
1324
1325 #if ENABLE(DRAG_SUPPORT)
1326     bool m_isStartingDrag;
1327 #endif
1328
1329     bool m_cachedMainFrameIsPinnedToLeftSide;
1330     bool m_cachedMainFrameIsPinnedToRightSide;
1331     bool m_cachedMainFrameIsPinnedToTopSide;
1332     bool m_cachedMainFrameIsPinnedToBottomSide;
1333     bool m_canShortCircuitHorizontalWheelEvents;
1334     bool m_hasWheelEventHandlers;
1335
1336     unsigned m_cachedPageCount;
1337
1338     HashSet<unsigned long> m_trackedNetworkResourceRequestIdentifiers;
1339
1340     WebCore::IntSize m_minimumLayoutSize;
1341     bool m_autoSizingShouldExpandToViewHeight;
1342
1343 #if ENABLE(CONTEXT_MENUS)
1344     bool m_isShowingContextMenu;
1345 #endif
1346     
1347 #if PLATFORM(IOS)
1348     RefPtr<WebCore::Node> m_assistedNode;
1349     RefPtr<WebCore::Range> m_currentWordRange;
1350     RefPtr<WebCore::Node> m_interactionNode;
1351     WebCore::IntPoint m_lastInteractionLocation;
1352     
1353     enum SelectionAnchor {
1354         Start,
1355         End
1356     };
1357     SelectionAnchor m_selectionAnchor;
1358
1359     RefPtr<WebCore::Node> m_potentialTapNode;
1360     WebCore::FloatPoint m_potentialTapLocation;
1361
1362     WebCore::ViewportConfiguration m_viewportConfiguration;
1363     bool m_hasReceivedVisibleContentRectsAfterDidCommitLoad;
1364     bool m_scaleWasSetByUIProcess;
1365     bool m_userHasChangedPageScaleFactor;
1366     bool m_hasStablePageScaleFactor;
1367     bool m_userIsInteracting;
1368     bool m_hasFocusedDueToUserInteraction { false };
1369     bool m_hasPendingBlurNotification;
1370     bool m_useTestingViewportConfiguration;
1371     bool m_isInStableState;
1372     std::chrono::milliseconds m_oldestNonStableUpdateVisibleContentRectsTimestamp;
1373     std::chrono::milliseconds m_estimatedLatency;
1374     WebCore::FloatSize m_screenSize;
1375     WebCore::FloatSize m_availableScreenSize;
1376     RefPtr<WebCore::Range> m_currentBlockSelection;
1377     RefPtr<WebCore::Range> m_initialSelection;
1378     WebCore::IntSize m_blockSelectionDesiredSize;
1379     WebCore::FloatSize m_maximumUnobscuredSize;
1380     int32_t m_deviceOrientation;
1381     bool m_inDynamicSizeUpdate;
1382     HashMap<std::pair<WebCore::IntSize, double>, WebCore::IntPoint> m_dynamicSizeUpdateHistory;
1383     RefPtr<WebCore::Node> m_pendingSyntheticClickNode;
1384     WebCore::FloatPoint m_pendingSyntheticClickLocation;
1385     WebCore::FloatRect m_previousExposedContentRect;
1386     WebCore::Timer m_volatilityTimer;
1387 #endif
1388
1389     HashSet<String, CaseFoldingHash> m_mimeTypesWithCustomContentProviders;
1390     WebCore::Color m_backgroundColor;
1391
1392     HashSet<unsigned> m_activeRenderingSuppressionTokens;
1393     unsigned m_maximumRenderingSuppressionToken;
1394     
1395     WebCore::ScrollPinningBehavior m_scrollPinningBehavior;
1396     WTF::Optional<WebCore::ScrollbarOverlayStyle> m_scrollbarOverlayStyle;
1397
1398     bool m_useAsyncScrolling;
1399
1400     WebCore::ViewState::Flags m_viewState;
1401     WebCore::PageActivityState::Flags m_activityState;
1402
1403     bool m_processSuppressionEnabled;
1404     UserActivity m_userActivity;
1405
1406     uint64_t m_pendingNavigationID;
1407
1408 #if ENABLE(WEBGL)
1409     WebCore::WebGLLoadPolicy m_systemWebGLPolicy;
1410 #endif
1411
1412     bool m_mainFrameProgressCompleted;
1413     bool m_shouldDispatchFakeMouseMoveEvents;
1414     bool m_isEditorStateMissingPostLayoutData { false };
1415
1416 #if PLATFORM(GTK)
1417     bool m_inputMethodEnabled { false };
1418 #endif
1419
1420 #if ENABLE(VIDEO) && USE(GSTREAMER)
1421     RefPtr<WebCore::MediaPlayerRequestInstallMissingPluginsCallback> m_installMediaPluginsCallback;
1422 #endif
1423 };
1424
1425 } // namespace WebKit
1426
1427 #endif // WebPage_h