2 * Copyright (C) 2010, 2011, 2014 Apple Inc. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23 * THE POSSIBILITY OF SUCH DAMAGE.
26 #ifndef WebPageProxy_h
27 #define WebPageProxy_h
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 "DragControllerAction.h"
36 #include "DrawingAreaProxy.h"
37 #include "EditingRange.h"
38 #include "EditorState.h"
39 #include "GeolocationPermissionRequestManagerProxy.h"
40 #include "InteractionInformationAtPosition.h"
41 #include "LayerTreeContext.h"
42 #include "MessageSender.h"
43 #include "NotificationPermissionRequestManagerProxy.h"
44 #include "PageLoadState.h"
45 #include "PlatformProcessIdentifier.h"
46 #include "SandboxExtension.h"
47 #include "ShareableBitmap.h"
48 #include "VisibleContentRectUpdateInfo.h"
50 #include "WKPagePrivate.h"
51 #include "WebColorPicker.h"
52 #include "WebContextMenuItemData.h"
53 #include "WebCoreArgumentCoders.h"
54 #include "WebFindClient.h"
55 #include "WebFrameProxy.h"
56 #include "WebPageContextMenuClient.h"
57 #include "WebPageCreationParameters.h"
58 #include "WebPreferences.h"
59 #include <WebCore/AlternativeTextClient.h> // FIXME: Needed by WebPageProxyMessages.h for DICTATION_ALTERNATIVES.
60 #include "WebPageProxyMessages.h"
61 #include "WebPopupMenuProxy.h"
62 #include <WebCore/Color.h>
63 #include <WebCore/DragActions.h>
64 #include <WebCore/HitTestResult.h>
65 #include <WebCore/Page.h>
66 #include <WebCore/PlatformScreen.h>
67 #include <WebCore/ScrollTypes.h>
68 #include <WebCore/TextChecking.h>
69 #include <WebCore/TextGranularity.h>
70 #include <WebCore/ViewState.h>
72 #include <wtf/HashMap.h>
73 #include <wtf/HashSet.h>
74 #include <wtf/PassRefPtr.h>
76 #include <wtf/RefPtr.h>
77 #include <wtf/Vector.h>
78 #include <wtf/text/WTFString.h>
80 #if ENABLE(DRAG_SUPPORT)
81 #include <WebCore/DragActions.h>
84 #if ENABLE(TOUCH_EVENTS)
85 #include "NativeWebTouchEvent.h"
89 #include "WKPageEfl.h"
90 #include "WebUIPopupMenuClient.h"
95 #include "LayerRepresentation.h"
99 #include "AttributedString.h"
103 #include "ProcessThrottler.h"
116 class ArgumentDecoder;
121 class AuthenticationChallenge;
127 class ProtectionSpace;
128 class RunLoopObserver;
130 struct FileChooserSettings;
131 struct TextAlternativeWithRange;
132 struct TextCheckingResult;
133 struct ViewportAttributes;
134 struct WindowFeatures;
142 typedef GtkWidget* PlatformWidget;
147 class CertificateInfo;
148 class NativeWebKeyboardEvent;
149 class NativeWebMouseEvent;
150 class NativeWebWheelEvent;
152 class RemoteLayerTreeTransaction;
153 class RemoteScrollingCoordinatorProxy;
154 class StringPairVector;
156 class VisitedLinkProvider;
157 class WebBackForwardList;
158 class WebBackForwardListItem;
159 class WebContextMenuProxy;
160 class WebEditCommandProxy;
161 class WebFullScreenManagerProxy;
162 class WebVideoFullscreenManagerProxy;
163 class WebKeyboardEvent;
165 class WebOpenPanelResultListenerProxy;
167 class WebProcessProxy;
168 class WebUserContentControllerProxy;
170 struct AttributedString;
171 struct ColorSpaceData;
172 struct DictionaryPopupInfo;
175 struct PlatformPopupMenuData;
179 #if ENABLE(VIBRATION)
180 class WebVibrationProxy;
184 class QuickLookDocumentData;
187 typedef GenericCallback<uint64_t> UnsignedCallback;
188 typedef GenericCallback<EditingRange> EditingRangeCallback;
189 typedef GenericCallback<const String&> StringCallback;
190 typedef GenericCallback<WebSerializedScriptValue*> ScriptValueCallback;
193 typedef GenericCallback<API::Error*> PrintFinishedCallback;
196 #if ENABLE(TOUCH_EVENTS)
197 struct QueuedTouchEvents {
198 QueuedTouchEvents(const NativeWebTouchEvent& event)
199 : forwardedEvent(event)
202 NativeWebTouchEvent forwardedEvent;
203 Vector<NativeWebTouchEvent> deferredTouchEvents;
207 typedef GenericCallback<const String&, bool, int32_t> ValidateCommandCallback;
208 typedef GenericCallback<const WebCore::IntRect&, const EditingRange&> RectForCharacterRangeCallback;
211 typedef GenericCallback<const AttributedString&, const EditingRange&> AttributedStringForCharacterRangeCallback;
215 typedef GenericCallback<const WebCore::IntPoint&, uint32_t, uint32_t, uint32_t> GestureCallback;
216 typedef GenericCallback<const WebCore::IntPoint&, uint32_t> TouchesCallback;
219 struct WebPageConfiguration {
220 WebPageGroup* pageGroup = nullptr;
221 WebPreferences* preferences = nullptr;
222 WebUserContentControllerProxy* userContentController = nullptr;
223 VisitedLinkProvider* visitedLinkProvider = nullptr;
225 API::Session* session = nullptr;
226 WebPageProxy* relatedPage = nullptr;
228 WebPreferencesStore::ValueMap preferenceValues;
231 class WebPageProxy : public API::ObjectImpl<API::Object::Type::Page>
232 #if ENABLE(INPUT_TYPE_COLOR)
233 , public WebColorPicker::Client
235 , public WebPopupMenuProxy::Client
236 , public IPC::MessageReceiver
237 , public IPC::MessageSender {
239 static PassRefPtr<WebPageProxy> create(PageClient&, WebProcessProxy&, uint64_t pageID, const WebPageConfiguration&);
240 virtual ~WebPageProxy();
242 void setSession(API::Session&);
244 uint64_t pageID() const { return m_pageID; }
245 WebCore::SessionID sessionID() const { return m_session->getID(); }
247 WebFrameProxy* mainFrame() const { return m_mainFrame.get(); }
248 WebFrameProxy* focusedFrame() const { return m_focusedFrame.get(); }
249 WebFrameProxy* frameSetLargestFrame() const { return m_frameSetLargestFrame.get(); }
251 DrawingAreaProxy* drawingArea() const { return m_drawingArea.get(); }
253 #if ENABLE(ASYNC_SCROLLING)
254 RemoteScrollingCoordinatorProxy* scrollingCoordinatorProxy() const { return m_scrollingCoordinatorProxy.get(); }
257 WebBackForwardList& backForwardList() { return m_backForwardList.get(); }
259 bool addsVisitedLinks() const { return m_addsVisitedLinks; }
260 void setAddsVisitedLinks(bool addsVisitedLinks) { m_addsVisitedLinks = addsVisitedLinks; }
262 #if ENABLE(INSPECTOR)
263 WebInspectorProxy* inspector();
266 #if ENABLE(REMOTE_INSPECTOR)
267 bool allowsRemoteInspection() const { return m_allowsRemoteInspection; }
268 void setAllowsRemoteInspection(bool);
271 #if ENABLE(VIBRATION)
272 WebVibrationProxy* vibration() { return m_vibration.get(); }
275 #if ENABLE(FULLSCREEN_API)
276 WebFullScreenManagerProxy* fullScreenManager();
279 RefPtr<WebVideoFullscreenManagerProxy> videoFullscreenManager();
282 #if ENABLE(CONTEXT_MENUS)
283 void initializeContextMenuClient(const WKPageContextMenuClientBase*);
285 API::FindClient& findClient() { return *m_findClient; }
286 void setFindClient(std::unique_ptr<API::FindClient>);
287 void initializeFindMatchesClient(const WKPageFindMatchesClientBase*);
288 void setFormClient(std::unique_ptr<API::FormClient>);
289 void setLoaderClient(std::unique_ptr<API::LoaderClient>);
290 void setPolicyClient(std::unique_ptr<API::PolicyClient>);
292 API::UIClient& uiClient() { return *m_uiClient; }
293 void setUIClient(std::unique_ptr<API::UIClient>);
295 void initializeUIPopupMenuClient(const WKPageUIPopupMenuClientBase*);
298 void initializeWebPage();
302 bool isClosed() const { return m_isClosed; }
304 uint64_t loadRequest(const WebCore::ResourceRequest&, API::Object* userData = nullptr);
305 void loadFile(const String& fileURL, const String& resourceDirectoryURL, API::Object* userData = nullptr);
306 void loadData(API::Data*, const String& MIMEType, const String& encoding, const String& baseURL, API::Object* userData = nullptr);
307 uint64_t loadHTMLString(const String& htmlString, const String& baseURL, API::Object* userData = nullptr);
308 void loadAlternateHTMLString(const String& htmlString, const String& baseURL, const String& unreachableURL, API::Object* userData = nullptr);
309 void loadPlainTextString(const String&, API::Object* userData = nullptr);
310 void loadWebArchiveData(API::Data*, API::Object* userData = nullptr);
313 uint64_t reload(bool reloadFromOrigin);
315 uint64_t goForward();
318 uint64_t goToBackForwardItem(WebBackForwardListItem*);
319 void tryRestoreScrollPosition();
320 void didChangeBackForwardList(WebBackForwardListItem* addedItem, Vector<RefPtr<WebBackForwardListItem>> removed);
321 void willGoToBackForwardListItem(uint64_t itemID, IPC::MessageDecoder&);
323 bool shouldKeepCurrentBackForwardListItemInList(WebBackForwardListItem*);
325 bool willHandleHorizontalScrollEvents() const;
327 bool canShowMIMEType(const String& mimeType);
329 bool drawsBackground() const { return m_drawsBackground; }
330 void setDrawsBackground(bool);
332 bool drawsTransparentBackground() const { return m_drawsTransparentBackground; }
333 void setDrawsTransparentBackground(bool);
335 float topContentInset() const { return m_topContentInset; }
336 void setTopContentInset(float);
338 WebCore::Color underlayColor() const { return m_underlayColor; }
339 void setUnderlayColor(const WebCore::Color&);
341 // At this time, m_pageExtendedBackgroundColor can be set via pageExtendedBackgroundColorDidChange() which is a message
342 // from the UIProcess, or by didCommitLayerTree(). When PLATFORM(MAC) adopts UI side compositing, we should get rid of
343 // the message entirely.
344 WebCore::Color pageExtendedBackgroundColor() const { return m_pageExtendedBackgroundColor; }
346 void viewWillStartLiveResize();
347 void viewWillEndLiveResize();
349 void setInitialFocus(bool forward, bool isKeyboardEventValid, const WebKeyboardEvent&);
350 void setWindowResizerSize(const WebCore::IntSize&);
352 void clearSelection();
354 void setViewNeedsDisplay(const WebCore::IntRect&);
356 bool canScrollView();
357 void scrollView(const WebCore::IntRect& scrollRect, const WebCore::IntSize& scrollOffset); // FIXME: CoordinatedGraphics should use requestScroll().
358 void requestScroll(const WebCore::FloatPoint& scrollPosition, bool isProgrammaticScroll);
360 void setDelegatesScrolling(bool delegatesScrolling) { m_delegatesScrolling = delegatesScrolling; }
361 bool delegatesScrolling() const { return m_delegatesScrolling; }
363 enum class ViewStateChangeDispatchMode { Deferrable, Immediate };
364 void viewStateDidChange(WebCore::ViewState::Flags mayHaveChanged, bool wantsReply = false, ViewStateChangeDispatchMode = ViewStateChangeDispatchMode::Deferrable);
365 bool isInWindow() const { return m_viewState & WebCore::ViewState::IsInWindow; }
366 void waitForDidUpdateViewState();
367 void didUpdateViewState() { m_waitingForDidUpdateViewState = false; }
369 void layerHostingModeDidChange();
371 WebCore::IntSize viewSize() const;
372 bool isViewVisible() const { return m_viewState & WebCore::ViewState::IsVisible; }
373 bool isViewWindowActive() const;
374 bool isProcessSuppressible() const;
376 void addMIMETypeWithCustomContentProvider(const String& mimeType);
378 void executeEditCommand(const String& commandName);
379 void validateCommand(const String& commandName, std::function<void (const String&, bool, int32_t, CallbackBase::Error)>);
381 void executeEditCommand(const String& commandName, std::function<void (CallbackBase::Error)>);
382 double displayedContentScale() const { return m_lastVisibleContentRectUpdate.scale(); }
383 const WebCore::FloatRect& exposedContentRect() const { return m_lastVisibleContentRectUpdate.exposedRect(); }
384 const WebCore::FloatRect& unobscuredContentRect() const { return m_lastVisibleContentRectUpdate.unobscuredRect(); }
386 void updateVisibleContentRects(const WebCore::FloatRect& exposedRect, const WebCore::FloatRect& unobscuredRect, const WebCore::FloatRect& unobscuredRectInScrollViewCoordinates, const WebCore::FloatRect& customFixedPositionRect, double scale, bool inStableState, bool isChangingObscuredInsetsInteractively, double timestamp, double horizontalVelocity, double verticalVelocity, double scaleChangeRate);
387 void resendLastVisibleContentRects();
389 enum class UnobscuredRectConstraint { ConstrainedToDocumentRect, Unconstrained };
390 WebCore::FloatRect computeCustomFixedPositionRect(const WebCore::FloatRect& unobscuredContentRect, double displayedContentScale, UnobscuredRectConstraint = UnobscuredRectConstraint::Unconstrained) const;
391 void overflowScrollViewWillStartPanGesture();
392 void overflowScrollViewDidScroll();
393 void overflowScrollWillStartScroll();
394 void overflowScrollDidEndScroll();
396 void dynamicViewportSizeUpdate(const WebCore::FloatSize& minimumLayoutSize, const WebCore::FloatSize& minimumLayoutSizeForMinimalUI, const WebCore::FloatSize& maximumUnobscuredSize, const WebCore::FloatRect& targetExposedContentRect, const WebCore::FloatRect& targetUnobscuredRect, const WebCore::FloatRect& targetUnobscuredRectInScrollViewCoordinates, double targetScale, int32_t deviceOrientation);
397 void synchronizeDynamicViewportUpdate();
399 void setViewportConfigurationMinimumLayoutSize(const WebCore::FloatSize&);
400 void setViewportConfigurationMinimumLayoutSizeForMinimalUI(const WebCore::FloatSize&);
401 void setMaximumUnobscuredSize(const WebCore::FloatSize&);
402 void setDeviceOrientation(int32_t);
403 int32_t deviceOrientation() const { return m_deviceOrientation; }
404 void willCommitLayerTree(uint64_t transactionID);
405 void didCommitLayerTree(const WebKit::RemoteLayerTreeTransaction&);
407 void selectWithGesture(const WebCore::IntPoint, WebCore::TextGranularity, uint32_t gestureType, uint32_t gestureState, std::function<void (const WebCore::IntPoint&, uint32_t, uint32_t, uint32_t, CallbackBase::Error)>);
408 void updateSelectionWithTouches(const WebCore::IntPoint, uint32_t touches, bool baseIsStart, std::function<void (const WebCore::IntPoint&, uint32_t, CallbackBase::Error)>);
409 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)>);
410 void updateBlockSelectionWithTouch(const WebCore::IntPoint, uint32_t touch, uint32_t handlePosition);
411 void extendSelection(WebCore::TextGranularity);
412 void selectWordBackward();
413 void requestAutocorrectionData(const String& textForAutocorrection, std::function<void (const Vector<WebCore::FloatRect>&, const String&, double, uint64_t, CallbackBase::Error)>);
414 void applyAutocorrection(const String& correction, const String& originalText, std::function<void (const String&, CallbackBase::Error)>);
415 bool applyAutocorrection(const String& correction, const String& originalText);
416 void requestAutocorrectionContext(std::function<void (const String&, const String&, const String&, const String&, uint64_t, uint64_t, CallbackBase::Error)>);
417 void getAutocorrectionContext(String& contextBefore, String& markedText, String& selectedText, String& contextAfter, uint64_t& location, uint64_t& length);
418 void requestDictationContext(std::function<void (const String&, const String&, const String&, CallbackBase::Error)>);
419 void replaceDictatedText(const String& oldText, const String& newText);
420 void replaceSelectedText(const String& oldText, const String& newText);
421 void didReceivePositionInformation(const InteractionInformationAtPosition&);
422 void getPositionInformation(const WebCore::IntPoint&, InteractionInformationAtPosition&);
423 void requestPositionInformation(const WebCore::IntPoint&);
424 void startInteractionWithElementAtPosition(const WebCore::IntPoint&);
425 void stopInteraction();
426 void performActionOnElement(uint32_t action);
427 void saveImageToLibrary(const SharedMemory::Handle& imageHandle, uint64_t imageSize);
428 void didUpdateBlockSelectionWithTouch(uint32_t touch, uint32_t flags, float growThreshold, float shrinkThreshold);
429 void focusNextAssistedNode(bool isForward);
430 void setAssistedNodeValue(const String&);
431 void setAssistedNodeValueAsNumber(double);
432 void setAssistedNodeSelectedIndex(uint32_t index, bool allowMultipleSelection = false);
433 void applicationWillEnterForeground();
434 void applicationWillResignActive();
435 void applicationDidBecomeActive();
436 void zoomToRect(WebCore::FloatRect, double minimumScale, double maximumScale);
437 void commitPotentialTapFailed();
438 void didNotHandleTapAsClick(const WebCore::IntPoint&);
439 void viewportMetaTagWidthDidChange(float width);
440 void setUsesMinimalUI(bool);
441 void didFinishDrawingPagesToPDF(const IPC::DataReference&);
442 void contentSizeCategoryDidChange(const String& contentSizeCategory);
445 const EditorState& editorState() const { return m_editorState; }
446 bool canDelete() const { return hasSelectedRange() && isContentEditable(); }
447 bool hasSelectedRange() const { return m_editorState.selectionIsRange; }
448 bool isContentEditable() const { return m_editorState.isContentEditable; }
450 bool maintainsInactiveSelection() const { return m_maintainsInactiveSelection; }
451 void setMaintainsInactiveSelection(bool);
452 #if USE(TILED_BACKING_STORE)
453 void didRenderFrame(const WebCore::IntSize& contentsSize, const WebCore::IntRect& coveredRect);
456 void setThemePath(const String&);
460 void setComposition(const String& text, Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd);
461 void confirmComposition(const String& compositionString, int64_t selectionStart, int64_t selectionLength);
462 void cancelComposition();
466 void setInputMethodState(bool enabled);
470 void windowAndViewFramesChanged(const WebCore::FloatRect& viewFrameInWindowCoordinates, const WebCore::FloatPoint& accessibilityViewCoordinates);
471 void setMainFrameIsScrollable(bool);
473 void sendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, const String& textInput);
474 bool shouldDelayWindowOrderingForEvent(const WebMouseEvent&);
475 bool acceptsFirstMouse(int eventNumber, const WebMouseEvent&);
477 void setAcceleratedCompositingRootLayer(LayerOrView*);
478 LayerOrView* acceleratedCompositingRootLayer() const;
480 void insertTextAsync(const String& text, const EditingRange& replacementRange, bool registerUndoGroup = false);
481 void getMarkedRangeAsync(std::function<void (EditingRange, CallbackBase::Error)>);
482 void getSelectedRangeAsync(std::function<void (EditingRange, CallbackBase::Error)>);
483 void characterIndexForPointAsync(const WebCore::IntPoint&, std::function<void (uint64_t, CallbackBase::Error)>);
484 void firstRectForCharacterRangeAsync(const EditingRange&, std::function<void (const WebCore::IntRect&, const EditingRange&, CallbackBase::Error)>);
485 void setCompositionAsync(const String& text, Vector<WebCore::CompositionUnderline> underlines, const EditingRange& selectionRange, const EditingRange& replacementRange);
486 void confirmCompositionAsync();
489 void insertDictatedTextAsync(const String& text, const EditingRange& replacementRange, const Vector<WebCore::TextAlternativeWithRange>& dictationAlternatives, bool registerUndoGroup);
490 void attributedSubstringForCharacterRangeAsync(const EditingRange&, std::function<void (const AttributedString&, const EditingRange&, CallbackBase::Error)>);
492 #if !USE(ASYNC_NSTEXTINPUTCLIENT)
493 bool insertText(const String& text, const EditingRange& replacementRange);
494 void setComposition(const String& text, Vector<WebCore::CompositionUnderline> underlines, const EditingRange& selectionRange, const EditingRange& replacementRange);
495 void confirmComposition();
496 bool insertDictatedText(const String& text, const EditingRange& replacementRange, const Vector<WebCore::TextAlternativeWithRange>& dictationAlternatives);
497 void getAttributedSubstringFromRange(const EditingRange&, AttributedString&);
498 void getMarkedRange(EditingRange&);
499 void getSelectedRange(EditingRange&);
500 uint64_t characterIndexForPoint(const WebCore::IntPoint);
501 WebCore::IntRect firstRectForCharacterRange(const EditingRange&);
502 bool executeKeypressCommands(const Vector<WebCore::KeypressCommand>&);
503 void cancelComposition();
506 WKView* wkView() const;
507 void intrinsicContentSizeDidChange(const WebCore::IntSize& intrinsicContentSize);
509 #endif // PLATFORM(COCOA)
511 void handleInputMethodKeydown(bool& handled);
512 void confirmComposition(const String&);
513 void setComposition(const String&, Vector<WebCore::CompositionUnderline>&, int);
514 void cancelComposition();
517 PlatformWidget viewWidget();
519 #if USE(TILED_BACKING_STORE)
520 void commitPageTransitionViewport();
523 void handleMouseEvent(const NativeWebMouseEvent&);
524 void handleWheelEvent(const NativeWebWheelEvent&);
525 void handleKeyboardEvent(const NativeWebKeyboardEvent&);
526 #if ENABLE(IOS_TOUCH_EVENTS)
527 void handleTouchEventSynchronously(const NativeWebTouchEvent&);
528 void handleTouchEventAsynchronously(const NativeWebTouchEvent&);
529 #elif ENABLE(TOUCH_EVENTS)
530 void handleTouchEvent(const NativeWebTouchEvent&);
533 void scrollBy(WebCore::ScrollDirection, WebCore::ScrollGranularity);
534 void centerSelectionInVisibleArea();
536 const String& toolTip() const { return m_toolTip; }
538 const String& userAgent() const { return m_userAgent; }
539 void setApplicationNameForUserAgent(const String&);
540 const String& applicationNameForUserAgent() const { return m_applicationNameForUserAgent; }
541 void setCustomUserAgent(const String&);
542 const String& customUserAgent() const { return m_customUserAgent; }
543 static String standardUserAgent(const String& applicationName = String());
545 bool supportsTextEncoding() const;
546 void setCustomTextEncodingName(const String&);
547 String customTextEncodingName() const { return m_customTextEncodingName; }
549 bool areActiveDOMObjectsAndAnimationsSuspended() const { return m_isPageSuspended; }
550 void resumeActiveDOMObjectsAndAnimations();
551 void suspendActiveDOMObjectsAndAnimations();
553 double estimatedProgress() const;
555 void terminateProcess();
557 SessionState sessionState(const std::function<bool (WebBackForwardListItem&)>& = nullptr) const;
558 uint64_t restoreFromSessionState(SessionState, bool navigate);
560 bool supportsTextZoom() const;
561 double textZoomFactor() const { return m_textZoomFactor; }
562 void setTextZoomFactor(double);
563 double pageZoomFactor() const { return m_pageZoomFactor; }
564 void setPageZoomFactor(double);
565 void setPageAndTextZoomFactors(double pageZoomFactor, double textZoomFactor);
567 void scalePage(double scale, const WebCore::IntPoint& origin);
568 void scalePageInViewCoordinates(double scale, const WebCore::IntPoint& centerInViewCoordinates);
569 double pageScaleFactor() const { return m_pageScaleFactor; }
571 float deviceScaleFactor() const;
572 void setIntrinsicDeviceScaleFactor(float);
573 void setCustomDeviceScaleFactor(float);
574 void windowScreenDidChange(PlatformDisplayID);
576 void setUseFixedLayout(bool);
577 void setFixedLayoutSize(const WebCore::IntSize&);
578 bool useFixedLayout() const { return m_useFixedLayout; };
579 const WebCore::IntSize& fixedLayoutSize() const { return m_fixedLayoutSize; };
581 void listenForLayoutMilestones(WebCore::LayoutMilestones);
583 bool hasHorizontalScrollbar() const { return m_mainFrameHasHorizontalScrollbar; }
584 bool hasVerticalScrollbar() const { return m_mainFrameHasVerticalScrollbar; }
586 void setSuppressScrollbarAnimations(bool);
587 bool areScrollbarAnimationsSuppressed() const { return m_suppressScrollbarAnimations; }
589 bool isPinnedToLeftSide() const { return m_mainFrameIsPinnedToLeftSide; }
590 bool isPinnedToRightSide() const { return m_mainFrameIsPinnedToRightSide; }
591 bool isPinnedToTopSide() const { return m_mainFrameIsPinnedToTopSide; }
592 bool isPinnedToBottomSide() const { return m_mainFrameIsPinnedToBottomSide; }
594 bool rubberBandsAtLeft() const;
595 void setRubberBandsAtLeft(bool);
596 bool rubberBandsAtRight() const;
597 void setRubberBandsAtRight(bool);
598 bool rubberBandsAtTop() const;
599 void setRubberBandsAtTop(bool);
600 bool rubberBandsAtBottom() const;
601 void setRubberBandsAtBottom(bool);
603 void setShouldUseImplicitRubberBandControl(bool shouldUseImplicitRubberBandControl) { m_shouldUseImplicitRubberBandControl = shouldUseImplicitRubberBandControl; }
604 bool shouldUseImplicitRubberBandControl() const { return m_shouldUseImplicitRubberBandControl; }
606 void setEnableVerticalRubberBanding(bool);
607 bool verticalRubberBandingIsEnabled() const;
608 void setEnableHorizontalRubberBanding(bool);
609 bool horizontalRubberBandingIsEnabled() const;
611 void setBackgroundExtendsBeyondPage(bool);
612 bool backgroundExtendsBeyondPage() const;
614 void setPaginationMode(WebCore::Pagination::Mode);
615 WebCore::Pagination::Mode paginationMode() const { return m_paginationMode; }
616 void setPaginationBehavesLikeColumns(bool);
617 bool paginationBehavesLikeColumns() const { return m_paginationBehavesLikeColumns; }
618 void setPageLength(double);
619 double pageLength() const { return m_pageLength; }
620 void setGapBetweenPages(double);
621 double gapBetweenPages() const { return m_gapBetweenPages; }
622 unsigned pageCount() const { return m_pageCount; }
625 // Called by the web process through a message.
626 void registerWebProcessAccessibilityToken(const IPC::DataReference&);
627 // Called by the UI process when it is ready to send its tokens to the web process.
628 void registerUIProcessAccessibilityTokens(const IPC::DataReference& elemenToken, const IPC::DataReference& windowToken);
629 bool readSelectionFromPasteboard(const String& pasteboardName);
630 String stringSelectionForPasteboard();
631 PassRefPtr<WebCore::SharedBuffer> dataSelectionForPasteboard(const String& pasteboardType);
632 void makeFirstResponder();
634 ColorSpaceData colorSpace();
637 #if ENABLE(SERVICE_CONTROLS)
638 void replaceSelectionWithPasteboardData(const Vector<String>& types, const IPC::DataReference&);
641 void pageScaleFactorDidChange(double);
642 void pageZoomFactorDidChange(double);
645 void findString(const String&, FindOptions, unsigned maxMatchCount);
646 void findStringMatches(const String&, FindOptions, unsigned maxMatchCount);
647 void getImageForFindMatch(int32_t matchIndex);
648 void selectFindMatch(int32_t matchIndex);
649 void didGetImageForFindMatch(const ShareableBitmap::Handle& contentImageHandle, uint32_t matchIndex);
651 void countStringMatches(const String&, FindOptions, unsigned maxMatchCount);
652 void didCountStringMatches(const String&, uint32_t matchCount);
653 void setFindIndicator(const WebCore::FloatRect& selectionRectInWindowCoordinates, const Vector<WebCore::FloatRect>& textRectsInSelectionRectCoordinates, float contentImageScaleFactor, const ShareableBitmap::Handle& contentImageHandle, bool fadeOut, bool animate);
654 void didFindString(const String&, uint32_t matchCount, int32_t matchIndex);
655 void didFailToFindString(const String&);
656 void didFindStringMatches(const String&, const Vector<Vector<WebCore::IntRect>>& matchRects, int32_t firstIndexAfterSelection);
658 void getContentsAsString(std::function<void (const String&, CallbackBase::Error)>);
659 void getBytecodeProfile(std::function<void (const String&, CallbackBase::Error)>);
662 void getContentsAsMHTMLData(std::function<void (API::Data*, CallbackBase::Error)>, bool useBinaryEncoding);
664 void getMainResourceDataOfFrame(WebFrameProxy*, std::function<void (API::Data*, CallbackBase::Error)>);
665 void getResourceDataFromFrame(WebFrameProxy*, API::URL*, std::function<void (API::Data*, CallbackBase::Error)>);
666 void getRenderTreeExternalRepresentation(std::function<void (const String&, CallbackBase::Error)>);
667 void getSelectionOrContentsAsString(std::function<void (const String&, CallbackBase::Error)>);
668 void getSelectionAsWebArchiveData(std::function<void (API::Data*, CallbackBase::Error)>);
669 void getSourceForFrame(WebFrameProxy*, std::function<void (const String&, CallbackBase::Error)>);
670 void getWebArchiveOfFrame(WebFrameProxy*, std::function<void (API::Data*, CallbackBase::Error)>);
671 void runJavaScriptInMainFrame(const String&, std::function<void (WebSerializedScriptValue*, CallbackBase::Error)> callbackFunction);
672 void forceRepaint(PassRefPtr<VoidCallback>);
674 float headerHeight(WebFrameProxy*);
675 float footerHeight(WebFrameProxy*);
676 void drawHeader(WebFrameProxy*, const WebCore::FloatRect&);
677 void drawFooter(WebFrameProxy*, const WebCore::FloatRect&);
681 void performDictionaryLookupAtLocation(const WebCore::FloatPoint&);
684 void receivedPolicyDecision(WebCore::PolicyAction, WebFrameProxy*, uint64_t listenerID, uint64_t navigationID);
686 void backForwardRemovedItem(uint64_t itemID);
688 #if ENABLE(DRAG_SUPPORT)
689 // Drag and drop support.
690 void dragEntered(WebCore::DragData&, const String& dragStorageName = String());
691 void dragUpdated(WebCore::DragData&, const String& dragStorageName = String());
692 void dragExited(WebCore::DragData&, const String& dragStorageName = String());
693 void performDragOperation(WebCore::DragData&, const String& dragStorageName, const SandboxExtension::Handle&, const SandboxExtension::HandleArray&);
695 void didPerformDragControllerAction(uint64_t dragOperation, bool mouseIsOverFileInput, unsigned numberOfItemsToBeAccepted);
696 void dragEnded(const WebCore::IntPoint& clientPosition, const WebCore::IntPoint& globalPosition, uint64_t operation);
698 void setDragImage(const WebCore::IntPoint& clientPosition, const ShareableBitmap::Handle& dragImageHandle, bool isLinkDrag);
699 void setPromisedData(const String& pasteboardName, const SharedMemory::Handle& imageHandle, uint64_t imageSize, const String& filename, const String& extension,
700 const String& title, const String& url, const String& visibleURL, const SharedMemory::Handle& archiveHandle, uint64_t archiveSize);
703 void startDrag(const WebCore::DragData&, const ShareableBitmap::Handle& dragImage);
707 void processDidBecomeUnresponsive();
708 void interactionOccurredWhileProcessUnresponsive();
709 void processDidBecomeResponsive();
710 void processDidCrash();
712 virtual void enterAcceleratedCompositingMode(const LayerTreeContext&);
713 virtual void exitAcceleratedCompositingMode();
714 virtual void updateAcceleratedCompositingMode(const LayerTreeContext&);
718 enum UndoOrRedo { Undo, Redo };
719 void addEditCommand(WebEditCommandProxy*);
720 void removeEditCommand(WebEditCommandProxy*);
721 bool isValidEditCommand(WebEditCommandProxy*);
722 void registerEditCommand(PassRefPtr<WebEditCommandProxy>, UndoOrRedo);
725 void registerKeypressCommandName(const String& name) { m_knownKeypressCommandNames.add(name); }
726 bool isValidKeypressCommandName(const String& name) const { return m_knownKeypressCommandNames.contains(name); }
729 WebProcessProxy& process() { return m_process.get(); }
730 PlatformProcessIdentifier processIdentifier() const;
732 WebPreferences& preferences() { return m_preferences.get(); }
733 void setPreferences(WebPreferences&);
735 WebPageGroup& pageGroup() { return m_pageGroup.get(); }
737 bool isValid() const;
739 PassRefPtr<API::Array> relatedPages() const;
741 const String& urlAtProcessExit() const { return m_urlAtProcessExit; }
742 FrameLoadState::State loadStateAtProcessExit() const { return m_loadStateAtProcessExit; }
744 #if ENABLE(DRAG_SUPPORT)
745 WebCore::DragOperation currentDragOperation() const { return m_currentDragOperation; }
746 bool currentDragIsOverFileInput() const { return m_currentDragIsOverFileInput; }
747 unsigned currentDragNumberOfFilesToBeAccepted() const { return m_currentDragNumberOfFilesToBeAccepted; }
748 void resetCurrentDragInformation()
750 m_currentDragOperation = WebCore::DragOperationNone;
751 m_currentDragIsOverFileInput = false;
752 m_currentDragNumberOfFilesToBeAccepted = 0;
756 void preferencesDidChange();
758 #if ENABLE(CONTEXT_MENUS)
759 // Called by the WebContextMenuProxy.
760 void contextMenuItemSelected(const WebContextMenuItemData&);
763 // Called by the WebOpenPanelResultListenerProxy.
765 void didChooseFilesForOpenPanelWithDisplayStringAndIcon(const Vector<String>&, const String& displayString, const API::Data* iconData);
767 void didChooseFilesForOpenPanel(const Vector<String>&);
768 void didCancelForOpenPanel();
770 WebPageCreationParameters creationParameters();
772 #if USE(COORDINATED_GRAPHICS)
773 void findZoomableAreaForPoint(const WebCore::IntPoint&, const WebCore::IntSize&);
776 void handleDownloadRequest(DownloadProxy*);
778 void advanceToNextMisspelling(bool startBeforeSelection);
779 void changeSpellingToWord(const String& word);
781 void uppercaseWord();
782 void lowercaseWord();
783 void capitalizeWord();
787 bool isSmartInsertDeleteEnabled() const { return m_isSmartInsertDeleteEnabled; }
788 void setSmartInsertDeleteEnabled(bool);
792 String accessibilityPlugID() const { return m_accessibilityPlugID; }
795 void setCanRunModal(bool);
798 void beginPrinting(WebFrameProxy*, const PrintInfo&);
800 void computePagesForPrinting(WebFrameProxy*, const PrintInfo&, PassRefPtr<ComputedPagesCallback>);
802 void drawRectToImage(WebFrameProxy*, const PrintInfo&, const WebCore::IntRect&, const WebCore::IntSize&, PassRefPtr<ImageCallback>);
803 void drawPagesToPDF(WebFrameProxy*, const PrintInfo&, uint32_t first, uint32_t count, PassRefPtr<DataCallback>);
805 void drawPagesForPrinting(WebFrameProxy*, const PrintInfo&, PassRefPtr<PrintFinishedCallback>);
808 PageLoadState& pageLoadState() { return m_pageLoadState; }
811 void handleAlternativeTextUIResult(const String& result);
814 void saveDataToFileInDownloadsFolder(const String& suggestedFilename, const String& mimeType, const String& originatingURLString, API::Data*);
815 void savePDFToFileInDownloadsFolder(const String& suggestedFilename, const String& originatingURLString, const IPC::DataReference&);
817 void savePDFToTemporaryFolderAndOpenWithNativeApplicationRaw(const String& suggestedFilename, const String& originatingURLString, const uint8_t* data, unsigned long size, const String& pdfUUID);
818 void savePDFToTemporaryFolderAndOpenWithNativeApplication(const String& suggestedFilename, const String& originatingURLString, const IPC::DataReference&, const String& pdfUUID);
819 void openPDFFromTemporaryFolderWithNativeApplication(const String& pdfUUID);
822 WebCore::IntRect visibleScrollerThumbRect() const { return m_visibleScrollerThumbRect; }
824 uint64_t renderTreeSize() const { return m_renderTreeSize; }
826 void setShouldSendEventsSynchronously(bool sync) { m_shouldSendEventsSynchronously = sync; };
828 void printMainFrame();
830 void setMediaVolume(float);
831 void setMayStartMediaWhenInWindow(bool);
832 bool mayStartMediaWhenInWindow() const { return m_mayStartMediaWhenInWindow; }
834 // WebPopupMenuProxy::Client
835 virtual NativeWebMouseEvent* currentlyProcessedMouseDownEvent();
837 #if PLATFORM(GTK) && USE(TEXTURE_MAPPER_GL)
838 void setAcceleratedCompositingWindowId(uint64_t nativeWindowId);
841 void setSuppressVisibilityUpdates(bool flag) { m_suppressVisibilityUpdates = flag; }
842 bool suppressVisibilityUpdates() { return m_suppressVisibilityUpdates; }
845 void willStartUserTriggeredZooming();
847 void potentialTapAtPosition(const WebCore::FloatPoint&, uint64_t& requestID);
848 void commitPotentialTap();
849 void cancelPotentialTap();
850 void tapHighlightAtPosition(const WebCore::FloatPoint&, uint64_t& requestID);
852 void inspectorNodeSearchMovedToPosition(const WebCore::FloatPoint&);
853 void inspectorNodeSearchEndedAtPosition(const WebCore::FloatPoint&);
855 void blurAssistedNode();
858 void postMessageToInjectedBundle(const String& messageName, API::Object* messageBody);
860 #if ENABLE(INPUT_TYPE_COLOR)
861 void setColorPickerColor(const WebCore::Color&);
862 void endColorPicker();
865 WebCore::IntSize minimumLayoutSize() const { return m_minimumLayoutSize; }
866 void setMinimumLayoutSize(const WebCore::IntSize&);
868 bool autoSizingShouldExpandToViewHeight() const { return m_autoSizingShouldExpandToViewHeight; }
869 void setAutoSizingShouldExpandToViewHeight(bool);
871 void didReceiveAuthenticationChallengeProxy(uint64_t frameID, PassRefPtr<AuthenticationChallengeProxy>);
873 int64_t spellDocumentTag();
874 void didFinishCheckingText(uint64_t requestID, const Vector<WebCore::TextCheckingResult>&);
875 void didCancelCheckingText(uint64_t requestID);
877 void connectionWillOpen(IPC::Connection*);
878 void connectionWillClose(IPC::Connection*);
880 void processDidFinishLaunching();
882 void didSaveToPageCache();
884 void setScrollPinningBehavior(WebCore::ScrollPinningBehavior);
885 WebCore::ScrollPinningBehavior scrollPinningBehavior() { return m_scrollPinningBehavior; }
887 bool shouldRecordNavigationSnapshots() const { return m_shouldRecordNavigationSnapshots; }
888 void setShouldRecordNavigationSnapshots(bool shouldRecordSnapshots) { m_shouldRecordNavigationSnapshots = shouldRecordSnapshots; }
889 void recordNavigationSnapshot();
892 PassRefPtr<ViewSnapshot> takeViewSnapshot();
895 #if ENABLE(SUBTLE_CRYPTO)
896 void wrapCryptoKey(const Vector<uint8_t>&, bool& succeeded, Vector<uint8_t>&);
897 void unwrapCryptoKey(const Vector<uint8_t>&, bool& succeeded, Vector<uint8_t>&);
900 void setThumbnailScale(double);
902 void takeSnapshot(WebCore::IntRect, WebCore::IntSize bitmapSize, SnapshotOptions, std::function<void (const ShareableBitmap::Handle&, CallbackBase::Error)>);
904 void navigationGestureDidBegin();
905 void navigationGestureWillEnd(bool willNavigate, WebBackForwardListItem&);
906 void navigationGestureDidEnd(bool willNavigate, WebBackForwardListItem&);
907 void navigationGestureSnapshotWasRemoved();
908 void willRecordNavigationSnapshot(WebBackForwardListItem&);
910 bool isShowingNavigationGestureSnapshot() const { return m_isShowingNavigationGestureSnapshot; }
913 WebPageProxy(PageClient&, WebProcessProxy&, uint64_t pageID, const WebPageConfiguration&);
914 void platformInitialize();
916 void updateViewState(WebCore::ViewState::Flags flagsToUpdate = WebCore::ViewState::AllFlags);
917 void updateActivityToken();
919 enum class ResetStateReason {
923 void resetState(ResetStateReason);
924 void resetStateAfterProcessExited();
926 void setUserAgent(const String&);
928 // IPC::MessageReceiver
929 virtual void didReceiveMessage(IPC::Connection*, IPC::MessageDecoder&) override;
930 virtual void didReceiveSyncMessage(IPC::Connection*, IPC::MessageDecoder&, std::unique_ptr<IPC::MessageEncoder>&) override;
932 // IPC::MessageSender
933 virtual bool sendMessage(std::unique_ptr<IPC::MessageEncoder>, unsigned messageSendFlags) override;
934 virtual IPC::Connection* messageSenderConnection() override;
935 virtual uint64_t messageSenderDestinationID() override;
937 // WebPopupMenuProxy::Client
938 virtual void valueChangedForPopupMenu(WebPopupMenuProxy*, int32_t newSelectedIndex);
939 virtual void setTextFromItemForPopupMenu(WebPopupMenuProxy*, int32_t index);
941 virtual void failedToShowPopupMenu();
944 // Implemented in generated WebPageProxyMessageReceiver.cpp
945 void didReceiveWebPageProxyMessage(IPC::Connection*, IPC::MessageDecoder&);
946 void didReceiveSyncWebPageProxyMessage(IPC::Connection*, IPC::MessageDecoder&, std::unique_ptr<IPC::MessageEncoder>&);
948 void didCreateMainFrame(uint64_t frameID);
949 void didCreateSubframe(uint64_t frameID);
951 void didStartProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, const String& url, const String& unreachableURL, IPC::MessageDecoder&);
952 void didReceiveServerRedirectForProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, const String&, IPC::MessageDecoder&);
953 void didFailProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, const WebCore::ResourceError&, IPC::MessageDecoder&);
954 void didCommitLoadForFrame(uint64_t frameID, uint64_t navigationID, const String& mimeType, bool frameHasCustomContentProvider, uint32_t frameLoadType, const WebCore::CertificateInfo&, IPC::MessageDecoder&);
955 void didFinishDocumentLoadForFrame(uint64_t frameID, uint64_t navigationID, IPC::MessageDecoder&);
956 void didFinishLoadForFrame(uint64_t frameID, uint64_t navigationID, IPC::MessageDecoder&);
957 void didFailLoadForFrame(uint64_t frameID, uint64_t navigationID, const WebCore::ResourceError&, IPC::MessageDecoder&);
958 void didSameDocumentNavigationForFrame(uint64_t frameID, uint64_t navigationID, uint32_t sameDocumentNavigationType, const String&, IPC::MessageDecoder&);
959 void didReceiveTitleForFrame(uint64_t frameID, const String&, IPC::MessageDecoder&);
960 void didFirstLayoutForFrame(uint64_t frameID, IPC::MessageDecoder&);
961 void didFirstVisuallyNonEmptyLayoutForFrame(uint64_t frameID, IPC::MessageDecoder&);
962 void didLayout(uint32_t layoutMilestones, IPC::MessageDecoder&);
963 void didRemoveFrameFromHierarchy(uint64_t frameID, IPC::MessageDecoder&);
964 void didDisplayInsecureContentForFrame(uint64_t frameID, IPC::MessageDecoder&);
965 void didRunInsecureContentForFrame(uint64_t frameID, IPC::MessageDecoder&);
966 void didDetectXSSForFrame(uint64_t frameID, IPC::MessageDecoder&);
967 void frameDidBecomeFrameSet(uint64_t frameID, bool);
968 void didStartProgress();
969 void didChangeProgress(double);
970 void didFinishProgress();
971 void setNetworkRequestsInProgress(bool);
973 void didDestroyNavigation(uint64_t navigationID);
975 void decidePolicyForNavigationAction(uint64_t frameID, uint64_t navigationID, const NavigationActionData&, uint64_t originatingFrameID, const WebCore::ResourceRequest& originalRequest, const WebCore::ResourceRequest&, uint64_t listenerID, IPC::MessageDecoder&, bool& receivedPolicyAction, uint64_t& newNavigationID, uint64_t& policyAction, uint64_t& downloadID);
976 void decidePolicyForNewWindowAction(uint64_t frameID, const NavigationActionData&, const WebCore::ResourceRequest&, const String& frameName, uint64_t listenerID, IPC::MessageDecoder&);
977 void decidePolicyForResponse(uint64_t frameID, const WebCore::ResourceResponse&, const WebCore::ResourceRequest&, bool canShowMIMEType, uint64_t listenerID, IPC::MessageDecoder&);
978 void decidePolicyForResponseSync(uint64_t frameID, const WebCore::ResourceResponse&, const WebCore::ResourceRequest&, bool canShowMIMEType, uint64_t listenerID, IPC::MessageDecoder&, bool& receivedPolicyAction, uint64_t& policyAction, uint64_t& downloadID);
979 void unableToImplementPolicy(uint64_t frameID, const WebCore::ResourceError&, IPC::MessageDecoder&);
981 void willSubmitForm(uint64_t frameID, uint64_t sourceFrameID, const Vector<std::pair<String, String>>& textFieldValues, uint64_t listenerID, IPC::MessageDecoder&);
984 void createNewPage(uint64_t frameID, const WebCore::ResourceRequest&, const WebCore::WindowFeatures&, const NavigationActionData&, uint64_t& newPageID, WebPageCreationParameters&);
986 void closePage(bool stopResponsivenessTimer);
987 void runJavaScriptAlert(uint64_t frameID, const String&, RefPtr<Messages::WebPageProxy::RunJavaScriptAlert::DelayedReply>);
988 void runJavaScriptConfirm(uint64_t frameID, const String&, RefPtr<Messages::WebPageProxy::RunJavaScriptConfirm::DelayedReply>);
989 void runJavaScriptPrompt(uint64_t frameID, const String&, const String&, RefPtr<Messages::WebPageProxy::RunJavaScriptPrompt::DelayedReply>);
990 void shouldInterruptJavaScript(bool& result);
991 void setStatusText(const String&);
992 void mouseDidMoveOverElement(const WebHitTestResult::Data& hitTestResultData, uint32_t modifiers, IPC::MessageDecoder&);
993 #if ENABLE(NETSCAPE_PLUGIN_API)
994 void unavailablePluginButtonClicked(uint32_t opaquePluginUnavailabilityReason, const String& mimeType, const String& pluginURLString, const String& pluginsPageURLString, const String& frameURLString, const String& pageURLString);
995 #endif // ENABLE(NETSCAPE_PLUGIN_API)
997 void webGLPolicyForURL(const String& url, uint32_t& loadPolicy);
998 void resolveWebGLPolicyForURL(const String& url, uint32_t& loadPolicy);
999 #endif // ENABLE(WEBGL)
1000 void setToolbarsAreVisible(bool toolbarsAreVisible);
1001 void getToolbarsAreVisible(bool& toolbarsAreVisible);
1002 void setMenuBarIsVisible(bool menuBarIsVisible);
1003 void getMenuBarIsVisible(bool& menuBarIsVisible);
1004 void setStatusBarIsVisible(bool statusBarIsVisible);
1005 void getStatusBarIsVisible(bool& statusBarIsVisible);
1006 void setIsResizable(bool isResizable);
1007 void getIsResizable(bool& isResizable);
1008 void setWindowFrame(const WebCore::FloatRect&);
1009 void getWindowFrame(WebCore::FloatRect&);
1010 void screenToRootView(const WebCore::IntPoint& screenPoint, WebCore::IntPoint& windowPoint);
1011 void rootViewToScreen(const WebCore::IntRect& viewRect, WebCore::IntRect& result);
1013 void accessibilityScreenToRootView(const WebCore::IntPoint& screenPoint, WebCore::IntPoint& windowPoint);
1014 void rootViewToAccessibilityScreen(const WebCore::IntRect& viewRect, WebCore::IntRect& result);
1016 void runBeforeUnloadConfirmPanel(const String& message, uint64_t frameID, bool& shouldClose);
1017 void didChangeViewportProperties(const WebCore::ViewportAttributes&);
1018 void pageDidScroll();
1019 void runOpenPanel(uint64_t frameID, const WebCore::FileChooserSettings&);
1020 void printFrame(uint64_t frameID);
1021 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>);
1022 void reachedApplicationCacheOriginQuota(const String& originIdentifier, uint64_t currentQuota, uint64_t totalBytesNeeded, PassRefPtr<Messages::WebPageProxy::ReachedApplicationCacheOriginQuota::DelayedReply>);
1023 void requestGeolocationPermissionForFrame(uint64_t geolocationID, uint64_t frameID, String originIdentifier);
1025 void notifyScrollerThumbIsVisibleInRect(const WebCore::IntRect&);
1026 void recommendedScrollbarStyleDidChange(int32_t newStyle);
1027 void didChangeScrollbarsForMainFrame(bool hasHorizontalScrollbar, bool hasVerticalScrollbar);
1028 void didChangeScrollOffsetPinningForMainFrame(bool pinnedToLeftSide, bool pinnedToRightSide, bool pinnedToTopSide, bool pinnedToBottomSide);
1029 void didChangePageCount(unsigned);
1030 void pageExtendedBackgroundColorDidChange(WebCore::Color);
1031 #if ENABLE(NETSCAPE_PLUGIN_API)
1032 void didFailToInitializePlugin(const String& mimeType, const String& frameURLString, const String& pageURLString);
1033 void didBlockInsecurePluginVersion(const String& mimeType, const String& pluginURLString, const String& frameURLString, const String& pageURLString, bool replacementObscured);
1034 #endif // ENABLE(NETSCAPE_PLUGIN_API)
1035 void setCanShortCircuitHorizontalWheelEvents(bool canShortCircuitHorizontalWheelEvents) { m_canShortCircuitHorizontalWheelEvents = canShortCircuitHorizontalWheelEvents; }
1036 void willChangeCurrentHistoryItemForMainFrame();
1038 void reattachToWebProcess();
1039 uint64_t reattachToWebProcessWithItem(WebBackForwardListItem*);
1041 void requestNotificationPermission(uint64_t notificationID, const String& originString);
1042 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);
1043 void cancelNotification(uint64_t notificationID);
1044 void clearNotifications(const Vector<uint64_t>& notificationIDs);
1045 void didDestroyNotification(uint64_t notificationID);
1047 #if USE(TILED_BACKING_STORE)
1048 void pageDidRequestScroll(const WebCore::IntPoint&);
1049 void pageTransitionViewportReady();
1051 #if USE(COORDINATED_GRAPHICS)
1052 void didFindZoomableArea(const WebCore::IntPoint&, const WebCore::IntRect&);
1055 void didChangeContentSize(const WebCore::IntSize&);
1058 #if ENABLE(INPUT_TYPE_COLOR)
1059 void showColorPicker(const WebCore::Color& initialColor, const WebCore::IntRect&);
1060 void didChooseColor(const WebCore::Color&);
1061 void didEndColorPicker();
1064 void editorStateChanged(const EditorState&);
1065 void compositionWasCanceled(const EditorState&);
1067 // Back/Forward list management
1068 void backForwardAddItem(uint64_t itemID);
1069 void backForwardGoToItem(uint64_t itemID, SandboxExtension::Handle&);
1070 void backForwardItemAtIndex(int32_t index, uint64_t& itemID);
1071 void backForwardBackListCount(int32_t& count);
1072 void backForwardForwardListCount(int32_t& count);
1073 void backForwardClear();
1076 void registerEditCommandForUndo(uint64_t commandID, uint32_t editAction);
1077 void registerInsertionUndoGrouping();
1078 void clearAllEditCommands();
1079 void canUndoRedo(uint32_t action, bool& result);
1080 void executeUndoRedo(uint32_t action, bool& result);
1082 // Keyboard handling
1084 void executeSavedCommandBySelector(const String& selector, bool& handled);
1088 void getEditorCommandsForKeyEvent(const AtomicString&, Vector<String>&);
1089 void bindAccessibilityTree(const String&);
1092 void getEditorCommandsForKeyEvent(Vector<String>&);
1096 void showPopupMenu(const WebCore::IntRect& rect, uint64_t textDirection, const Vector<WebPopupItem>& items, int32_t selectedIndex, const PlatformPopupMenuData&);
1097 void hidePopupMenu();
1099 #if ENABLE(CONTEXT_MENUS)
1100 enum class ContextMenuClientEligibility {
1102 NotEligibleForClient
1104 void showContextMenu(const WebCore::IntPoint& menuLocation, const ContextMenuContextData&, const Vector<WebContextMenuItemData>&, IPC::MessageDecoder&);
1105 void internalShowContextMenu(const WebCore::IntPoint& menuLocation, const ContextMenuContextData&, const Vector<WebContextMenuItemData>&, ContextMenuClientEligibility, IPC::MessageDecoder*);
1108 #if ENABLE(TELEPHONE_NUMBER_DETECTION)
1110 void showTelephoneNumberMenu(const String& telephoneNumber, const WebCore::IntPoint&);
1114 #if ENABLE(SERVICE_CONTROLS)
1115 void showSelectionServiceMenu(const IPC::DataReference& selectionAsRTFD, const Vector<String>& telephoneNumbers, bool isEditable, const WebCore::IntPoint&);
1118 // Search popup results
1119 void saveRecentSearches(const String&, const Vector<String>&);
1120 void loadRecentSearches(const String&, Vector<String>&);
1124 void getIsSpeaking(bool&);
1125 void speak(const String&);
1126 void stopSpeaking();
1129 void searchWithSpotlight(const String&);
1131 void searchTheWeb(const String&);
1134 void didPerformDictionaryLookup(const AttributedString&, const DictionaryPopupInfo&);
1137 // Spelling and grammar.
1138 #if USE(UNIFIED_TEXT_CHECKING)
1139 void checkTextOfParagraph(const String& text, uint64_t checkingTypes, Vector<WebCore::TextCheckingResult>& results);
1141 void checkSpellingOfString(const String& text, int32_t& misspellingLocation, int32_t& misspellingLength);
1142 void checkGrammarOfString(const String& text, Vector<WebCore::GrammarDetail>&, int32_t& badGrammarLocation, int32_t& badGrammarLength);
1143 void spellingUIIsShowing(bool&);
1144 void updateSpellingUIWithMisspelledWord(const String& misspelledWord);
1145 void updateSpellingUIWithGrammarString(const String& badGrammarPhrase, const WebCore::GrammarDetail&);
1146 void getGuessesForWord(const String& word, const String& context, Vector<String>& guesses);
1147 void learnWord(const String& word);
1148 void ignoreWord(const String& word);
1149 void requestCheckingOfString(uint64_t requestID, const WebCore::TextCheckingRequestData&);
1151 void setFocus(bool focused);
1152 void takeFocus(uint32_t direction);
1153 void setToolTip(const String&);
1154 void setCursor(const WebCore::Cursor&);
1155 void setCursorHiddenUntilMouseMoves(bool);
1157 void didReceiveEvent(uint32_t opaqueType, bool handled);
1158 void stopResponsivenessTimer();
1160 void voidCallback(uint64_t);
1161 void dataCallback(const IPC::DataReference&, uint64_t);
1162 void imageCallback(const ShareableBitmap::Handle&, uint64_t);
1163 void stringCallback(const String&, uint64_t);
1164 void scriptValueCallback(const IPC::DataReference&, uint64_t);
1165 void computedPagesCallback(const Vector<WebCore::IntRect>&, double totalScaleFactorForPrinting, uint64_t);
1166 void validateCommandCallback(const String&, bool, int, uint64_t);
1167 void unsignedCallback(uint64_t, uint64_t);
1168 void editingRangeCallback(const EditingRange&, uint64_t);
1169 void rectForCharacterRangeCallback(const WebCore::IntRect&, const EditingRange&, uint64_t);
1171 void attributedStringForCharacterRangeCallback(const AttributedString&, const EditingRange&, uint64_t);
1174 void gestureCallback(const WebCore::IntPoint&, uint32_t, uint32_t, uint32_t, uint64_t);
1175 void touchesCallback(const WebCore::IntPoint&, uint32_t, uint64_t);
1176 void autocorrectionDataCallback(const Vector<WebCore::FloatRect>&, const String&, float, uint64_t, uint64_t);
1177 void autocorrectionContextCallback(const String&, const String&, const String&, const String&, uint64_t, uint64_t, uint64_t);
1178 void dictationContextCallback(const String&, const String&, const String&, uint64_t);
1179 void interpretKeyEvent(const EditorState&, bool isCharEvent, bool& handled);
1180 void showPlaybackTargetPicker(bool hasVideo, const WebCore::IntRect& elementRect);
1183 void printFinishedCallback(const WebCore::ResourceError&, uint64_t);
1186 void focusedFrameChanged(uint64_t frameID);
1187 void frameSetLargestFrameChanged(uint64_t frameID);
1189 void canAuthenticateAgainstProtectionSpaceInFrame(uint64_t frameID, const WebCore::ProtectionSpace&, bool& canAuthenticate);
1190 void didReceiveAuthenticationChallenge(uint64_t frameID, const WebCore::AuthenticationChallenge&, uint64_t challengeID);
1192 void didFinishLoadingDataForCustomContentProvider(const String& suggestedFilename, const IPC::DataReference&);
1195 void pluginFocusOrWindowFocusChanged(uint64_t pluginComplexTextInputIdentifier, bool pluginHasFocusAndWindowHasFocus);
1196 void setPluginComplexTextInputState(uint64_t pluginComplexTextInputIdentifier, uint64_t complexTextInputState);
1199 bool maybeInitializeSandboxExtensionHandle(const WebCore::URL&, SandboxExtension::Handle&);
1202 void substitutionsPanelIsShowing(bool&);
1203 void showCorrectionPanel(int32_t panelType, const WebCore::FloatRect& boundingBoxOfReplacedString, const String& replacedString, const String& replacementString, const Vector<String>& alternativeReplacementStrings);
1204 void dismissCorrectionPanel(int32_t reason);
1205 void dismissCorrectionPanelSoon(int32_t reason, String& result);
1206 void recordAutocorrectionResponse(int32_t responseType, const String& replacedString, const String& replacementString);
1208 #if USE(DICTATION_ALTERNATIVES)
1209 void showDictationAlternativeUI(const WebCore::FloatRect& boundingBoxOfDictatedText, uint64_t dictationContext);
1210 void removeDictationAlternatives(uint64_t dictationContext);
1211 void dictationAlternatives(uint64_t dictationContext, Vector<String>& result);
1213 #endif // PLATFORM(MAC)
1216 WebCore::FloatSize screenSize();
1217 WebCore::FloatSize availableScreenSize();
1218 float textAutosizingWidth();
1220 void dynamicViewportUpdateChangedTarget(double newTargetScale, const WebCore::FloatPoint& newScrollPosition);
1221 void restorePageState(const WebCore::FloatRect&, double scale);
1222 void restorePageCenterAndScale(const WebCore::FloatPoint&, double scale);
1224 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);
1226 void startAssistingNode(const AssistedNodeInformation&, bool userIsInteracting, bool blurPreviousNode, IPC::MessageDecoder&);
1227 void stopAssistingNode();
1229 #if ENABLE(INSPECTOR)
1230 void showInspectorHighlight(const WebCore::Highlight&);
1231 void hideInspectorHighlight();
1233 void showInspectorIndication();
1234 void hideInspectorIndication();
1236 void enableInspectorNodeSearch();
1237 void disableInspectorNodeSearch();
1239 void notifyRevealedSelection();
1240 #endif // PLATFORM(IOS)
1242 #if USE(SOUP) && !ENABLE(CUSTOM_PROTOCOLS)
1243 void didReceiveURIRequest(String uriString, uint64_t requestID);
1246 void clearLoadDependentCallbacks();
1248 void performDragControllerAction(DragControllerAction, WebCore::DragData&, const String& dragStorageName, const SandboxExtension::Handle&, const SandboxExtension::HandleArray&);
1250 void updateBackingStoreDiscardableState();
1252 void setRenderTreeSize(uint64_t treeSize) { m_renderTreeSize = treeSize; }
1254 #if PLUGIN_ARCHITECTURE(X11)
1255 void createPluginContainer(uint64_t& windowID);
1256 void windowedPluginGeometryDidChange(const WebCore::IntRect& frameRect, const WebCore::IntRect& clipRect, uint64_t windowID);
1257 void windowedPluginVisibilityDidChange(bool isVisible, uint64_t windowID);
1260 void processNextQueuedWheelEvent();
1261 void sendWheelEvent(const WebWheelEvent&);
1263 #if ENABLE(TOUCH_EVENTS)
1264 bool shouldStartTrackingTouchEvents(const WebTouchEvent&) const;
1267 #if ENABLE(NETSCAPE_PLUGIN_API)
1268 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);
1272 void didStartLoadForQuickLookDocumentInMainFrame(const String& fileName, const String& uti);
1273 void didFinishLoadForQuickLookDocumentInMainFrame(const QuickLookDocumentData&);
1276 #if USE(CONTENT_FILTERING)
1277 void contentFilterDidBlockLoadForFrame(const WebCore::ContentFilter&, uint64_t frameID);
1280 uint64_t generateNavigationID();
1282 WebPreferencesStore preferencesStore() const;
1284 void dispatchViewStateChange();
1285 void viewDidLeaveWindow();
1286 void viewDidEnterWindow();
1288 PageClient& m_pageClient;
1289 std::unique_ptr<API::LoaderClient> m_loaderClient;
1290 std::unique_ptr<API::PolicyClient> m_policyClient;
1291 std::unique_ptr<API::FormClient> m_formClient;
1292 std::unique_ptr<API::UIClient> m_uiClient;
1294 WebUIPopupMenuClient m_uiPopupMenuClient;
1296 std::unique_ptr<API::FindClient> m_findClient;
1297 WebFindMatchesClient m_findMatchesClient;
1298 #if ENABLE(CONTEXT_MENUS)
1299 WebPageContextMenuClient m_contextMenuClient;
1302 std::unique_ptr<DrawingAreaProxy> m_drawingArea;
1303 #if ENABLE(ASYNC_SCROLLING)
1304 std::unique_ptr<RemoteScrollingCoordinatorProxy> m_scrollingCoordinatorProxy;
1307 Ref<WebProcessProxy> m_process;
1308 Ref<WebPageGroup> m_pageGroup;
1309 Ref<WebPreferences> m_preferences;
1310 const RefPtr<WebUserContentControllerProxy> m_userContentController;
1311 Ref<VisitedLinkProvider> m_visitedLinkProvider;
1313 RefPtr<WebFrameProxy> m_mainFrame;
1314 RefPtr<WebFrameProxy> m_focusedFrame;
1315 RefPtr<WebFrameProxy> m_frameSetLargestFrame;
1318 String m_applicationNameForUserAgent;
1319 String m_customUserAgent;
1320 String m_customTextEncodingName;
1322 #if ENABLE(INSPECTOR)
1323 RefPtr<WebInspectorProxy> m_inspector;
1326 #if ENABLE(FULLSCREEN_API)
1327 RefPtr<WebFullScreenManagerProxy> m_fullScreenManager;
1330 RefPtr<WebVideoFullscreenManagerProxy> m_videoFullscreenManager;
1331 VisibleContentRectUpdateInfo m_lastVisibleContentRectUpdate;
1332 int32_t m_deviceOrientation;
1333 bool m_dynamicViewportSizeUpdateWaitingForTarget;
1334 bool m_dynamicViewportSizeUpdateWaitingForLayerTreeCommit;
1335 uint64_t m_dynamicViewportSizeUpdateLayerTreeTransactionID;
1338 #if ENABLE(VIBRATION)
1339 RefPtr<WebVibrationProxy> m_vibration;
1342 CallbackMap m_callbacks;
1343 HashSet<uint64_t> m_loadDependentStringCallbackIDs;
1345 HashSet<WebEditCommandProxy*> m_editCommandSet;
1348 HashSet<String> m_knownKeypressCommandNames;
1351 RefPtr<WebPopupMenuProxy> m_activePopupMenu;
1352 #if ENABLE(CONTEXT_MENUS)
1353 RefPtr<WebContextMenuProxy> m_activeContextMenu;
1354 ContextMenuContextData m_activeContextMenuContextData;
1356 RefPtr<WebOpenPanelResultListenerProxy> m_openPanelResultListener;
1357 GeolocationPermissionRequestManagerProxy m_geolocationPermissionRequestManager;
1358 NotificationPermissionRequestManagerProxy m_notificationPermissionRequestManager;
1360 WebCore::ViewState::Flags m_viewState;
1361 bool m_viewWasEverInWindow;
1364 std::unique_ptr<ProcessThrottler::ForegroundActivityToken> m_activityToken;
1367 Ref<WebBackForwardList> m_backForwardList;
1369 bool m_maintainsInactiveSelection;
1373 String m_urlAtProcessExit;
1374 FrameLoadState::State m_loadStateAtProcessExit;
1376 EditorState m_editorState;
1377 #if PLATFORM(MAC) && !USE(ASYNC_NSTEXTINPUTCLIENT)
1378 bool m_temporarilyClosedComposition; // Editor state changed from hasComposition to !hasComposition, but that was only with shouldIgnoreCompositionSelectionChange yet.
1381 double m_textZoomFactor;
1382 double m_pageZoomFactor;
1383 double m_pageScaleFactor;
1384 float m_intrinsicDeviceScaleFactor;
1385 float m_customDeviceScaleFactor;
1386 float m_topContentInset;
1388 LayerHostingMode m_layerHostingMode;
1390 bool m_drawsBackground;
1391 bool m_drawsTransparentBackground;
1393 WebCore::Color m_underlayColor;
1394 WebCore::Color m_pageExtendedBackgroundColor;
1396 bool m_useFixedLayout;
1397 WebCore::IntSize m_fixedLayoutSize;
1399 bool m_suppressScrollbarAnimations;
1401 WebCore::Pagination::Mode m_paginationMode;
1402 bool m_paginationBehavesLikeColumns;
1403 double m_pageLength;
1404 double m_gapBetweenPages;
1406 // If the process backing the web page is alive and kicking.
1409 // Whether WebPageProxy::close() has been called on this page.
1412 // Whether it can run modal child web pages.
1415 bool m_isInPrintingMode;
1416 bool m_isPerformingDOMPrintOperation;
1418 bool m_inDecidePolicyForResponseSync;
1419 const WebCore::ResourceRequest* m_decidePolicyForResponseRequest;
1420 bool m_syncMimeTypePolicyActionIsValid;
1421 WebCore::PolicyAction m_syncMimeTypePolicyAction;
1422 uint64_t m_syncMimeTypePolicyDownloadID;
1424 bool m_inDecidePolicyForNavigationAction;
1425 bool m_syncNavigationActionPolicyActionIsValid;
1426 WebCore::PolicyAction m_syncNavigationActionPolicyAction;
1427 uint64_t m_syncNavigationActionPolicyDownloadID;
1429 Deque<NativeWebKeyboardEvent> m_keyEventQueue;
1430 Deque<NativeWebWheelEvent> m_wheelEventQueue;
1431 Deque<std::unique_ptr<Vector<NativeWebWheelEvent>>> m_currentlyProcessedWheelEvents;
1433 bool m_processingMouseMoveEvent;
1434 std::unique_ptr<NativeWebMouseEvent> m_nextMouseMoveEvent;
1435 std::unique_ptr<NativeWebMouseEvent> m_currentlyProcessedMouseDownEvent;
1437 #if ENABLE(TOUCH_EVENTS)
1438 bool m_isTrackingTouchEvents;
1440 #if ENABLE(TOUCH_EVENTS) && !ENABLE(IOS_TOUCH_EVENTS)
1441 Deque<QueuedTouchEvents> m_touchEventQueue;
1444 #if ENABLE(INPUT_TYPE_COLOR)
1445 RefPtr<WebColorPicker> m_colorPicker;
1448 const uint64_t m_pageID;
1449 Ref<API::Session> m_session;
1451 bool m_isPageSuspended;
1452 bool m_addsVisitedLinks;
1454 #if ENABLE(REMOTE_INSPECTOR)
1455 bool m_allowsRemoteInspection;
1459 bool m_isSmartInsertDeleteEnabled;
1463 String m_accessibilityPlugID;
1466 int64_t m_spellDocumentTag;
1467 bool m_hasSpellDocumentTag;
1468 unsigned m_pendingLearnOrIgnoreWordMessageCount;
1470 bool m_mainFrameHasCustomContentProvider;
1472 #if ENABLE(DRAG_SUPPORT)
1473 // Current drag destination details are delivered as an asynchronous response,
1474 // so we preserve them to be used when the next dragging delegate call is made.
1475 WebCore::DragOperation m_currentDragOperation;
1476 bool m_currentDragIsOverFileInput;
1477 unsigned m_currentDragNumberOfFilesToBeAccepted;
1480 PageLoadState m_pageLoadState;
1482 bool m_delegatesScrolling;
1484 bool m_mainFrameHasHorizontalScrollbar;
1485 bool m_mainFrameHasVerticalScrollbar;
1487 // Whether horizontal wheel events can be handled directly for swiping purposes.
1488 bool m_canShortCircuitHorizontalWheelEvents;
1490 bool m_mainFrameIsPinnedToLeftSide;
1491 bool m_mainFrameIsPinnedToRightSide;
1492 bool m_mainFrameIsPinnedToTopSide;
1493 bool m_mainFrameIsPinnedToBottomSide;
1495 bool m_shouldUseImplicitRubberBandControl;
1496 bool m_rubberBandsAtLeft;
1497 bool m_rubberBandsAtRight;
1498 bool m_rubberBandsAtTop;
1499 bool m_rubberBandsAtBottom;
1501 bool m_enableVerticalRubberBanding;
1502 bool m_enableHorizontalRubberBanding;
1504 bool m_backgroundExtendsBeyondPage;
1506 bool m_shouldRecordNavigationSnapshots;
1507 bool m_isShowingNavigationGestureSnapshot;
1509 unsigned m_pageCount;
1511 WebCore::IntRect m_visibleScrollerThumbRect;
1513 uint64_t m_renderTreeSize;
1515 bool m_shouldSendEventsSynchronously;
1517 bool m_suppressVisibilityUpdates;
1518 bool m_autoSizingShouldExpandToViewHeight;
1519 WebCore::IntSize m_minimumLayoutSize;
1521 float m_mediaVolume;
1522 bool m_mayStartMediaWhenInWindow;
1524 bool m_waitingForDidUpdateViewState;
1527 HashMap<String, String> m_temporaryPDFFiles;
1528 std::unique_ptr<WebCore::RunLoopObserver> m_viewStateChangeDispatcher;
1531 WebCore::ScrollPinningBehavior m_scrollPinningBehavior;
1533 uint64_t m_navigationID;
1535 WebPreferencesStore::ValueMap m_configurationPreferenceValues;
1536 WebCore::ViewState::Flags m_potentiallyChangedViewStateFlags;
1537 bool m_viewStateChangeWantsReply;
1540 } // namespace WebKit
1542 #endif // WebPageProxy_h