cee7514a45ea699d3456d16143d1181606751e22
[WebKit-https.git] / Source / WebKit2 / UIProcess / WebPageProxy.h
1 /*
2  * Copyright (C) 2010, 2011 Apple Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  * 1. Redistributions of source code must retain the above copyright
8  *    notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  *    notice, this list of conditions and the following disclaimer in the
11  *    documentation and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23  * THE POSSIBILITY OF SUCH DAMAGE.
24  */
25
26 #ifndef WebPageProxy_h
27 #define WebPageProxy_h
28
29 #include "APIObject.h"
30 #include "Connection.h"
31 #include "ContextMenuState.h"
32 #include "DragControllerAction.h"
33 #include "DrawingAreaProxy.h"
34 #include "EditorState.h"
35 #include "GeolocationPermissionRequestManagerProxy.h"
36 #if ENABLE(TOUCH_EVENTS)
37 #include "NativeWebTouchEvent.h"
38 #endif
39 #include "NotificationPermissionRequestManagerProxy.h"
40 #include "PlatformProcessIdentifier.h"
41 #include "SandboxExtension.h"
42 #include "ShareableBitmap.h"
43 #include "WKBase.h"
44 #include "WKPagePrivate.h"
45 #include "WebContextMenuItemData.h"
46 #include "WebFindClient.h"
47 #include "WebFormClient.h"
48 #include "WebFrameProxy.h"
49 #include "WebHistoryClient.h"
50 #include "WebHitTestResult.h"
51 #include "WebLoaderClient.h"
52 #include "WebPageContextMenuClient.h"
53 #include "WebPolicyClient.h"
54 #include "WebPopupMenuProxy.h"
55 #include "WebResourceLoadClient.h"
56 #include "WebUIClient.h"
57 #include <WebCore/DragActions.h>
58 #include <WebCore/DragSession.h>
59 #include <WebCore/HitTestResult.h>
60 #include <WebCore/Page.h>
61 #include <WebCore/PlatformScreen.h>
62 #include <WebCore/ScrollTypes.h>
63 #include <WebCore/TextChecking.h>
64 #include <wtf/HashMap.h>
65 #include <wtf/HashSet.h>
66 #include <wtf/OwnPtr.h>
67 #include <wtf/PassOwnPtr.h>
68 #include <wtf/PassRefPtr.h>
69 #include <wtf/RefPtr.h>
70 #include <wtf/Vector.h>
71 #include <wtf/text/WTFString.h>
72 #if PLATFORM(EFL)
73 #include <Evas.h>
74 #endif
75
76 namespace CoreIPC {
77     class ArgumentDecoder;
78     class Connection;
79     class MessageID;
80 }
81
82 namespace WebCore {
83     class AuthenticationChallenge;
84     class Cursor;
85     class DragData;
86     class FloatRect;
87     class IntSize;
88     class ProtectionSpace;
89     struct FileChooserSettings;
90     struct TextCheckingResult;
91     struct ViewportArguments;
92     struct WindowFeatures;
93 }
94
95 #if PLATFORM(MAC)
96 #ifdef __OBJC__
97 @class WKView;
98 #else
99 class WKView;
100 #endif
101 #endif
102
103 namespace WebKit {
104
105 class NativeWebKeyboardEvent;
106 class NativeWebMouseEvent;
107 class NativeWebWheelEvent;
108 class PageClient;
109 class PlatformCertificateInfo;
110 class StringPairVector;
111 class WebBackForwardList;
112 class WebBackForwardListItem;
113 class WebContextMenuProxy;
114 class WebData;
115 class WebEditCommandProxy;
116 class WebFullScreenManagerProxy;
117 class WebKeyboardEvent;
118 class WebMouseEvent;
119 class WebOpenPanelResultListenerProxy;
120 class WebPageGroup;
121 class WebProcessProxy;
122 class WebURLRequest;
123 class WebWheelEvent;
124 struct AttributedString;
125 struct DictionaryPopupInfo;
126 struct EditorState;
127 struct PlatformPopupMenuData;
128 struct PrintInfo;
129 struct WebPageCreationParameters;
130 struct WebPopupItem;
131
132 #if PLATFORM(WIN)
133 struct WindowGeometry;
134 #endif
135
136 #if ENABLE(GESTURE_EVENTS)
137 class WebGestureEvent;
138 #endif
139
140 typedef GenericCallback<WKStringRef, StringImpl*> StringCallback;
141 typedef GenericCallback<WKSerializedScriptValueRef, WebSerializedScriptValue*> ScriptValueCallback;
142
143 #if ENABLE(TOUCH_EVENTS)
144 struct QueuedTouchEvents {
145     QueuedTouchEvents(const NativeWebTouchEvent& event)
146         : forwardedEvent(event)
147     {
148     }
149     NativeWebTouchEvent forwardedEvent;
150     Vector<NativeWebTouchEvent> deferredTouchEvents;
151 };
152 #endif
153
154 // FIXME: Make a version of CallbackBase with three arguments, and define ValidateCommandCallback as a specialization.
155 class ValidateCommandCallback : public CallbackBase {
156 public:
157     typedef void (*CallbackFunction)(WKStringRef, bool, int32_t, WKErrorRef, void*);
158
159     static PassRefPtr<ValidateCommandCallback> create(void* context, CallbackFunction callback)
160     {
161         return adoptRef(new ValidateCommandCallback(context, callback));
162     }
163
164     virtual ~ValidateCommandCallback()
165     {
166         ASSERT(!m_callback);
167     }
168
169     void performCallbackWithReturnValue(StringImpl* returnValue1, bool returnValue2, int returnValue3)
170     {
171         ASSERT(m_callback);
172
173         m_callback(toAPI(returnValue1), returnValue2, returnValue3, 0, context());
174
175         m_callback = 0;
176     }
177     
178     void invalidate()
179     {
180         ASSERT(m_callback);
181
182         RefPtr<WebError> error = WebError::create();
183         m_callback(0, 0, 0, toAPI(error.get()), context());
184         
185         m_callback = 0;
186     }
187
188 private:
189
190     ValidateCommandCallback(void* context, CallbackFunction callback)
191         : CallbackBase(context)
192         , m_callback(callback)
193     {
194     }
195
196     CallbackFunction m_callback;
197 };
198
199 class WebPageProxy : public APIObject, public WebPopupMenuProxy::Client {
200 public:
201     static const Type APIType = TypePage;
202
203     static PassRefPtr<WebPageProxy> create(PageClient*, PassRefPtr<WebProcessProxy>, WebPageGroup*, uint64_t pageID);
204     virtual ~WebPageProxy();
205
206     uint64_t pageID() const { return m_pageID; }
207
208     WebFrameProxy* mainFrame() const { return m_mainFrame.get(); }
209     WebFrameProxy* focusedFrame() const { return m_focusedFrame.get(); }
210     WebFrameProxy* frameSetLargestFrame() const { return m_frameSetLargestFrame.get(); }
211
212     DrawingAreaProxy* drawingArea() const { return m_drawingArea.get(); }
213
214     WebBackForwardList* backForwardList() const { return m_backForwardList.get(); }
215
216 #if ENABLE(INSPECTOR)
217     WebInspectorProxy* inspector();
218 #endif
219
220 #if ENABLE(FULLSCREEN_API)
221     WebFullScreenManagerProxy* fullScreenManager();
222 #endif
223
224     void initializeContextMenuClient(const WKPageContextMenuClient*);
225     void initializeFindClient(const WKPageFindClient*);
226     void initializeFormClient(const WKPageFormClient*);
227     void initializeLoaderClient(const WKPageLoaderClient*);
228     void initializePolicyClient(const WKPagePolicyClient*);
229     void initializeResourceLoadClient(const WKPageResourceLoadClient*);
230     void initializeUIClient(const WKPageUIClient*);
231
232     void initializeWebPage();
233
234     void close();
235     bool tryClose();
236     bool isClosed() const { return m_isClosed; }
237
238     void loadURL(const String&);
239     void loadURLRequest(WebURLRequest*);
240     void loadHTMLString(const String& htmlString, const String& baseURL);
241     void loadAlternateHTMLString(const String& htmlString, const String& baseURL, const String& unreachableURL);
242     void loadPlainTextString(const String& string);
243
244     void stopLoading();
245     void reload(bool reloadFromOrigin);
246
247     void goForward();
248     bool canGoForward() const;
249     void goBack();
250     bool canGoBack() const;
251
252     void goToBackForwardItem(WebBackForwardListItem*);
253     void tryRestoreScrollPosition();
254     void didChangeBackForwardList(WebBackForwardListItem* addedItem, Vector<RefPtr<APIObject> >* removedItems);
255     void shouldGoToBackForwardListItem(uint64_t itemID, bool& shouldGoToBackForwardListItem);
256
257     String activeURL() const;
258     String provisionalURL() const;
259     String committedURL() const;
260
261     bool willHandleHorizontalScrollEvents() const;
262
263     bool canShowMIMEType(const String& mimeType) const;
264
265     bool drawsBackground() const { return m_drawsBackground; }
266     void setDrawsBackground(bool);
267
268     bool drawsTransparentBackground() const { return m_drawsTransparentBackground; }
269     void setDrawsTransparentBackground(bool);
270
271     void viewWillStartLiveResize();
272     void viewWillEndLiveResize();
273
274     void setInitialFocus(bool forward, bool isKeyboardEventValid, const WebKeyboardEvent&);
275     void setWindowResizerSize(const WebCore::IntSize&);
276     
277     void clearSelection();
278
279     void setViewNeedsDisplay(const WebCore::IntRect&);
280     void displayView();
281     void scrollView(const WebCore::IntRect& scrollRect, const WebCore::IntSize& scrollOffset);
282
283     enum {
284         ViewWindowIsActive = 1 << 0,
285         ViewIsFocused = 1 << 1,
286         ViewIsVisible = 1 << 2,
287         ViewIsInWindow = 1 << 3,
288     };
289     typedef unsigned ViewStateFlags;
290     void viewStateDidChange(ViewStateFlags flags);
291
292     WebCore::IntSize viewSize() const;
293     bool isViewVisible() const { return m_isVisible; }
294     bool isViewWindowActive() const;
295
296     void executeEditCommand(const String& commandName);
297     void validateCommand(const String& commandName, PassRefPtr<ValidateCommandCallback>);
298
299     const EditorState& editorState() const { return m_editorState; }
300     bool canDelete() const { return hasSelectedRange() && isContentEditable(); }
301     bool hasSelectedRange() const { return m_editorState.selectionIsRange; }
302     bool isContentEditable() const { return m_editorState.isContentEditable; }
303     
304     bool maintainsInactiveSelection() const { return m_maintainsInactiveSelection; }
305     void setMaintainsInactiveSelection(bool);
306
307 #if PLATFORM(QT)
308     void setComposition(const String& text, Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd);
309     void confirmComposition(const String& compositionString, int64_t selectionStart, int64_t selectionLength);
310     void cancelComposition();
311 #endif
312 #if PLATFORM(MAC)
313     void updateWindowIsVisible(bool windowIsVisible);
314     void windowAndViewFramesChanged(const WebCore::IntRect& windowFrameInScreenCoordinates, const WebCore::IntRect& viewFrameInWindowCoordinates, const WebCore::IntPoint& accessibilityViewCoordinates);
315
316     void setComposition(const String& text, Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd);
317     void confirmComposition();
318     void cancelComposition();
319     bool insertText(const String& text, uint64_t replacementRangeStart, uint64_t replacementRangeEnd);
320     void getMarkedRange(uint64_t& location, uint64_t& length);
321     void getSelectedRange(uint64_t& location, uint64_t& length);
322     void getAttributedSubstringFromRange(uint64_t location, uint64_t length, AttributedString&);
323     uint64_t characterIndexForPoint(const WebCore::IntPoint);
324     WebCore::IntRect firstRectForCharacterRange(uint64_t, uint64_t);
325     bool executeKeypressCommands(const Vector<WebCore::KeypressCommand>&);
326
327     void sendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, const String& textInput);
328     CGContextRef containingWindowGraphicsContext();
329     bool shouldDelayWindowOrderingForEvent(const WebMouseEvent&);
330     bool acceptsFirstMouse(int eventNumber, const WebMouseEvent&);
331     
332     WKView* wkView() const;
333 #endif
334 #if PLATFORM(WIN)
335     void didChangeCompositionSelection(bool);
336     void confirmComposition(const String&);
337     void setComposition(const String&, Vector<WebCore::CompositionUnderline>&, int);
338     WebCore::IntRect firstRectForCharacterInSelectedRange(int);
339     String getSelectedText();
340
341     bool gestureWillBegin(const WebCore::IntPoint&);
342     void gestureDidScroll(const WebCore::IntSize&);
343     void gestureDidEnd();
344
345     void setGestureReachedScrollingLimit(bool);
346
347     HWND nativeWindow() const;
348 #endif
349 #if PLATFORM(GTK)
350     GtkWidget* viewWidget();
351 #endif
352 #if PLATFORM(EFL)
353     Evas_Object* viewObject();
354 #endif
355 #if USE(TILED_BACKING_STORE)
356     void setFixedVisibleContentRect(const WebCore::IntRect&);
357     void setViewportSize(const WebCore::IntSize&);
358 #endif
359
360     void handleMouseEvent(const NativeWebMouseEvent&);
361     void handleWheelEvent(const NativeWebWheelEvent&);
362     void handleKeyboardEvent(const NativeWebKeyboardEvent&);
363 #if ENABLE(GESTURE_EVENTS)
364     void handleGestureEvent(const WebGestureEvent&);
365 #endif
366 #if ENABLE(TOUCH_EVENTS)
367     void handleTouchEvent(const NativeWebTouchEvent&);
368 #endif
369
370     void scrollBy(WebCore::ScrollDirection, WebCore::ScrollGranularity);
371     void centerSelectionInVisibleArea();
372
373     String pageTitle() const;
374     const String& toolTip() const { return m_toolTip; }
375
376     void setUserAgent(const String&);
377     const String& userAgent() const { return m_userAgent; }
378     void setApplicationNameForUserAgent(const String&);
379     const String& applicationNameForUserAgent() const { return m_applicationNameForUserAgent; }
380     void setCustomUserAgent(const String&);
381     const String& customUserAgent() const { return m_customUserAgent; }
382     static String standardUserAgent(const String& applicationName = String());
383
384     bool supportsTextEncoding() const;
385     void setCustomTextEncodingName(const String&);
386     String customTextEncodingName() const { return m_customTextEncodingName; }
387
388     double estimatedProgress() const;
389
390     void terminateProcess();
391
392     typedef bool (*WebPageProxySessionStateFilterCallback)(WKPageRef, WKStringRef type, WKTypeRef object, void* context);
393     PassRefPtr<WebData> sessionStateData(WebPageProxySessionStateFilterCallback, void* context) const;
394     void restoreFromSessionStateData(WebData*);
395
396     bool supportsTextZoom() const;
397     double textZoomFactor() const { return m_mainFrameHasCustomRepresentation ? 1 : m_textZoomFactor; }
398     void setTextZoomFactor(double);
399     double pageZoomFactor() const;
400     void setPageZoomFactor(double);
401     void setPageAndTextZoomFactors(double pageZoomFactor, double textZoomFactor);
402
403     void scalePage(double scale, const WebCore::IntPoint& origin);
404     double pageScaleFactor() const { return m_pageScaleFactor; }
405
406     float deviceScaleFactor() const;
407     void setIntrinsicDeviceScaleFactor(float);
408     void setCustomDeviceScaleFactor(float);
409     void windowScreenDidChange(PlatformDisplayID);
410     
411     void setUseFixedLayout(bool);
412     void setFixedLayoutSize(const WebCore::IntSize&);
413     bool useFixedLayout() const { return m_useFixedLayout; };
414     const WebCore::IntSize& fixedLayoutSize() const { return m_fixedLayoutSize; };
415
416     bool hasHorizontalScrollbar() const { return m_mainFrameHasHorizontalScrollbar; }
417     bool hasVerticalScrollbar() const { return m_mainFrameHasVerticalScrollbar; }
418
419     bool isPinnedToLeftSide() const { return m_mainFrameIsPinnedToLeftSide; }
420     bool isPinnedToRightSide() const { return m_mainFrameIsPinnedToRightSide; }
421
422     void setPaginationMode(WebCore::Page::Pagination::Mode);
423     WebCore::Page::Pagination::Mode paginationMode() const { return m_paginationMode; }
424     void setPageLength(double);
425     double pageLength() const { return m_pageLength; }
426     void setGapBetweenPages(double);
427     double gapBetweenPages() const { return m_gapBetweenPages; }
428     unsigned pageCount() const { return m_pageCount; }
429
430 #if PLATFORM(MAC)
431     // Called by the web process through a message.
432     void registerWebProcessAccessibilityToken(const CoreIPC::DataReference&);
433     // Called by the UI process when it is ready to send its tokens to the web process.
434     void registerUIProcessAccessibilityTokens(const CoreIPC::DataReference& elemenToken, const CoreIPC::DataReference& windowToken);
435     bool writeSelectionToPasteboard(const String& pasteboardName, const Vector<String>& pasteboardTypes);
436     bool readSelectionFromPasteboard(const String& pasteboardName);
437     void makeFirstResponder();
438 #endif
439
440     void pageScaleFactorDidChange(double);
441
442     void setMemoryCacheClientCallsEnabled(bool);
443
444     // Find.
445     void findString(const String&, FindOptions, unsigned maxMatchCount);
446     void hideFindUI();
447     void countStringMatches(const String&, FindOptions, unsigned maxMatchCount);
448     void didCountStringMatches(const String&, uint32_t matchCount);
449     void setFindIndicator(const WebCore::FloatRect& selectionRectInWindowCoordinates, const Vector<WebCore::FloatRect>& textRectsInSelectionRectCoordinates, float contentImageScaleFactor, const ShareableBitmap::Handle& contentImageHandle, bool fadeOut, bool animate);
450     void didFindString(const String&, uint32_t matchCount);
451     void didFailToFindString(const String&);
452 #if PLATFORM(WIN)
453     void didInstallOrUninstallPageOverlay(bool);
454 #endif
455
456     void getContentsAsString(PassRefPtr<StringCallback>);
457     void getMainResourceDataOfFrame(WebFrameProxy*, PassRefPtr<DataCallback>);
458     void getResourceDataFromFrame(WebFrameProxy*, WebURL*, PassRefPtr<DataCallback>);
459     void getRenderTreeExternalRepresentation(PassRefPtr<StringCallback>);
460     void getSelectionOrContentsAsString(PassRefPtr<StringCallback>);
461     void getSourceForFrame(WebFrameProxy*, PassRefPtr<StringCallback>);
462     void getWebArchiveOfFrame(WebFrameProxy*, PassRefPtr<DataCallback>);
463     void runJavaScriptInMainFrame(const String&, PassRefPtr<ScriptValueCallback>);
464     void forceRepaint(PassRefPtr<VoidCallback>);
465
466     float headerHeight(WebFrameProxy*);
467     float footerHeight(WebFrameProxy*);
468     void drawHeader(WebFrameProxy*, const WebCore::FloatRect&);
469     void drawFooter(WebFrameProxy*, const WebCore::FloatRect&);
470
471 #if PLATFORM(MAC)
472     // Dictionary.
473     void performDictionaryLookupAtLocation(const WebCore::FloatPoint&);
474 #endif
475
476     void receivedPolicyDecision(WebCore::PolicyAction, WebFrameProxy*, uint64_t listenerID);
477
478     void backForwardRemovedItem(uint64_t itemID);
479
480     // Drag and drop support.
481     void dragEntered(WebCore::DragData*, const String& dragStorageName = String());
482     void dragUpdated(WebCore::DragData*, const String& dragStorageName = String());
483     void dragExited(WebCore::DragData*, const String& dragStorageName = String());
484     void performDrag(WebCore::DragData*, const String& dragStorageName, const SandboxExtension::Handle&);
485
486     void didPerformDragControllerAction(WebCore::DragSession);
487     void dragEnded(const WebCore::IntPoint& clientPosition, const WebCore::IntPoint& globalPosition, uint64_t operation);
488 #if PLATFORM(MAC)
489     void setDragImage(const WebCore::IntPoint& clientPosition, const ShareableBitmap::Handle& dragImageHandle, bool isLinkDrag);
490 #endif
491 #if PLATFORM(WIN)
492     void startDragDrop(const WebCore::IntPoint& imagePoint, const WebCore::IntPoint& dragPoint, uint64_t okEffect, const HashMap<UINT, Vector<String> >& dataMap, uint64_t fileSize, const String& pathname, const SharedMemory::Handle& fileContentHandle, const WebCore::IntSize& dragImageSize, const SharedMemory::Handle& dragImageHandle, bool isLinkDrag);
493 #endif
494 #if PLATFORM(QT) || PLATFORM(GTK)
495     void startDrag(const WebCore::DragData&, const ShareableBitmap::Handle& dragImage);
496 #endif
497     void didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*);
498     void didReceiveSyncMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*, OwnPtr<CoreIPC::ArgumentEncoder>&);
499
500     void processDidBecomeUnresponsive();
501     void processDidBecomeResponsive();
502     void processDidCrash();
503
504 #if USE(ACCELERATED_COMPOSITING)
505     virtual void enterAcceleratedCompositingMode(const LayerTreeContext&);
506     virtual void exitAcceleratedCompositingMode();
507 #endif
508     
509     void didDraw();
510
511     enum UndoOrRedo { Undo, Redo };
512     void addEditCommand(WebEditCommandProxy*);
513     void removeEditCommand(WebEditCommandProxy*);
514     bool isValidEditCommand(WebEditCommandProxy*);
515     void registerEditCommand(PassRefPtr<WebEditCommandProxy>, UndoOrRedo);
516
517     WebProcessProxy* process() const;
518     PlatformProcessIdentifier processIdentifier() const;
519
520     WebPageGroup* pageGroup() const { return m_pageGroup.get(); }
521
522     bool isValid();
523
524     const String& urlAtProcessExit() const { return m_urlAtProcessExit; }
525     WebFrameProxy::LoadState loadStateAtProcessExit() const { return m_loadStateAtProcessExit; }
526
527     WebCore::DragSession dragSession() const { return m_currentDragSession; }
528     void resetDragOperation() { m_currentDragSession = WebCore::DragSession(); }
529
530     void preferencesDidChange();
531
532     // Called by the WebContextMenuProxy.
533     void contextMenuItemSelected(const WebContextMenuItemData&);
534
535     // Called by the WebOpenPanelResultListenerProxy.
536     void didChooseFilesForOpenPanel(const Vector<String>&);
537     void didCancelForOpenPanel();
538
539     WebPageCreationParameters creationParameters() const;
540
541 #if PLATFORM(QT)
542     void findZoomableAreaForPoint(const WebCore::IntPoint&);
543     void didReceiveMessageFromNavigatorQtObject(const String&);
544     void handleDownloadRequest(DownloadProxy*);
545 #endif
546
547     void advanceToNextMisspelling(bool startBeforeSelection) const;
548     void changeSpellingToWord(const String& word) const;
549 #if PLATFORM(MAC)
550     void uppercaseWord();
551     void lowercaseWord();
552     void capitalizeWord();
553
554     bool isSmartInsertDeleteEnabled() const { return m_isSmartInsertDeleteEnabled; }
555     void setSmartInsertDeleteEnabled(bool);
556 #endif
557
558     void beginPrinting(WebFrameProxy*, const PrintInfo&);
559     void endPrinting();
560     void computePagesForPrinting(WebFrameProxy*, const PrintInfo&, PassRefPtr<ComputedPagesCallback>);
561 #if PLATFORM(MAC) || PLATFORM(WIN)
562     void drawRectToPDF(WebFrameProxy*, const PrintInfo&, const WebCore::IntRect&, PassRefPtr<DataCallback>);
563     void drawPagesToPDF(WebFrameProxy*, const PrintInfo&, uint32_t first, uint32_t count, PassRefPtr<DataCallback>);
564 #endif
565
566     const String& pendingAPIRequestURL() const { return m_pendingAPIRequestURL; }
567
568     void flashBackingStoreUpdates(const Vector<WebCore::IntRect>& updateRects);
569
570 #if PLATFORM(MAC)
571     void handleCorrectionPanelResult(const String& result);
572 #endif
573
574     static void setDebugPaintFlags(WKPageDebugPaintFlags flags) { s_debugPaintFlags = flags; }
575     static WKPageDebugPaintFlags debugPaintFlags() { return s_debugPaintFlags; }
576
577     // Color to be used with kWKDebugFlashViewUpdates.
578     static WebCore::Color viewUpdatesFlashColor();
579
580     // Color to be used with kWKDebugFlashBackingStoreUpdates.
581     static WebCore::Color backingStoreUpdatesFlashColor();
582
583     void saveDataToFileInDownloadsFolder(const String& suggestedFilename, const String& mimeType, const String& originatingURLString, WebData*);
584
585     void linkClicked(const String&, const WebMouseEvent&);
586
587     WebCore::IntRect visibleScrollerThumbRect() const { return m_visibleScrollerThumbRect; }
588
589     uint64_t renderTreeSize() const { return m_renderTreeSize; }
590
591     void setShouldSendEventsSynchronously(bool sync) { m_shouldSendEventsSynchronously = sync; };
592
593     void printMainFrame();
594
595     // WebPopupMenuProxy::Client
596     virtual NativeWebMouseEvent* currentlyProcessedMouseDownEvent();
597
598 private:
599     WebPageProxy(PageClient*, PassRefPtr<WebProcessProxy>, WebPageGroup*, uint64_t pageID);
600
601     virtual Type type() const { return APIType; }
602
603     // WebPopupMenuProxy::Client
604     virtual void valueChangedForPopupMenu(WebPopupMenuProxy*, int32_t newSelectedIndex);
605     virtual void setTextFromItemForPopupMenu(WebPopupMenuProxy*, int32_t index);
606 #if PLATFORM(GTK)
607     virtual void failedToShowPopupMenu();
608 #endif    
609
610     // Implemented in generated WebPageProxyMessageReceiver.cpp
611     void didReceiveWebPageProxyMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*);
612     void didReceiveSyncWebPageProxyMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*, OwnPtr<CoreIPC::ArgumentEncoder>&);
613
614     void didCreateMainFrame(uint64_t frameID);
615     void didCreateSubframe(uint64_t frameID, uint64_t parentFrameID);
616     void didSaveFrameToPageCache(uint64_t frameID);
617     void didRestoreFrameFromPageCache(uint64_t frameID, uint64_t parentFrameID);
618
619     void didStartProvisionalLoadForFrame(uint64_t frameID, const String& url, const String& unreachableURL, CoreIPC::ArgumentDecoder*);
620     void didReceiveServerRedirectForProvisionalLoadForFrame(uint64_t frameID, const String&, CoreIPC::ArgumentDecoder*);
621     void didFailProvisionalLoadForFrame(uint64_t frameID, const WebCore::ResourceError&, CoreIPC::ArgumentDecoder*);
622     void didCommitLoadForFrame(uint64_t frameID, const String& mimeType, bool frameHasCustomRepresentation, const PlatformCertificateInfo&, CoreIPC::ArgumentDecoder*);
623     void didFinishDocumentLoadForFrame(uint64_t frameID, CoreIPC::ArgumentDecoder*);
624     void didFinishLoadForFrame(uint64_t frameID, CoreIPC::ArgumentDecoder*);
625     void didFailLoadForFrame(uint64_t frameID, const WebCore::ResourceError&, CoreIPC::ArgumentDecoder*);
626     void didSameDocumentNavigationForFrame(uint64_t frameID, uint32_t sameDocumentNavigationType, const String&, CoreIPC::ArgumentDecoder*);
627     void didReceiveTitleForFrame(uint64_t frameID, const String&, CoreIPC::ArgumentDecoder*);
628     void didFirstLayoutForFrame(uint64_t frameID, CoreIPC::ArgumentDecoder*);
629     void didFirstVisuallyNonEmptyLayoutForFrame(uint64_t frameID, CoreIPC::ArgumentDecoder*);
630     void didRemoveFrameFromHierarchy(uint64_t frameID, CoreIPC::ArgumentDecoder*);
631     void didDisplayInsecureContentForFrame(uint64_t frameID, CoreIPC::ArgumentDecoder*);
632     void didRunInsecureContentForFrame(uint64_t frameID, CoreIPC::ArgumentDecoder*);
633     void didDetectXSSForFrame(uint64_t frameID, CoreIPC::ArgumentDecoder*);
634     void frameDidBecomeFrameSet(uint64_t frameID, bool);
635     void didStartProgress();
636     void didChangeProgress(double);
637     void didFinishProgress();
638     
639     void decidePolicyForNavigationAction(uint64_t frameID, uint32_t navigationType, uint32_t modifiers, int32_t mouseButton, const WebCore::ResourceRequest&, uint64_t listenerID, CoreIPC::ArgumentDecoder*, bool& receivedPolicyAction, uint64_t& policyAction, uint64_t& downloadID);
640     void decidePolicyForNewWindowAction(uint64_t frameID, uint32_t navigationType, uint32_t modifiers, int32_t mouseButton, const WebCore::ResourceRequest&, const String& frameName, uint64_t listenerID, CoreIPC::ArgumentDecoder*);
641     void decidePolicyForResponse(uint64_t frameID, const WebCore::ResourceResponse&, const WebCore::ResourceRequest&, uint64_t listenerID, CoreIPC::ArgumentDecoder* arguments, bool& receivedPolicyAction, uint64_t& policyAction, uint64_t& downloadID);
642     void unableToImplementPolicy(uint64_t frameID, const WebCore::ResourceError&, CoreIPC::ArgumentDecoder* arguments);
643
644     void willSubmitForm(uint64_t frameID, uint64_t sourceFrameID, const StringPairVector& textFieldValues, uint64_t listenerID, CoreIPC::ArgumentDecoder*);
645
646     // Resource load client
647     void didInitiateLoadForResource(uint64_t frameID, uint64_t resourceIdentifier, const WebCore::ResourceRequest&, bool pageIsProvisionallyLoading);
648     void didSendRequestForResource(uint64_t frameID, uint64_t resourceIdentifier, const WebCore::ResourceRequest&, const WebCore::ResourceResponse& redirectResponse);
649     void didReceiveResponseForResource(uint64_t frameID, uint64_t resourceIdentifier, const WebCore::ResourceResponse&);
650     void didReceiveContentLengthForResource(uint64_t frameID, uint64_t resourceIdentifier, uint64_t contentLength);
651     void didFinishLoadForResource(uint64_t frameID, uint64_t resourceIdentifier);
652     void didFailLoadForResource(uint64_t frameID, uint64_t resourceIdentifier, const WebCore::ResourceError&);
653
654     // UI client
655     void createNewPage(const WebCore::ResourceRequest&, const WebCore::WindowFeatures&, uint32_t modifiers, int32_t mouseButton, uint64_t& newPageID, WebPageCreationParameters&);
656     void showPage();
657     void closePage(bool stopResponsivenessTimer);
658     void runJavaScriptAlert(uint64_t frameID, const String&);
659     void runJavaScriptConfirm(uint64_t frameID, const String&, bool& result);
660     void runJavaScriptPrompt(uint64_t frameID, const String&, const String&, String& result);
661     void shouldInterruptJavaScript(bool& result);
662     void setStatusText(const String&);
663     void mouseDidMoveOverElement(const WebHitTestResult::Data& hitTestResultData, uint32_t modifiers, CoreIPC::ArgumentDecoder*);
664     void missingPluginButtonClicked(const String& mimeType, const String& url, const String& pluginsPageURL);
665     void setToolbarsAreVisible(bool toolbarsAreVisible);
666     void getToolbarsAreVisible(bool& toolbarsAreVisible);
667     void setMenuBarIsVisible(bool menuBarIsVisible);
668     void getMenuBarIsVisible(bool& menuBarIsVisible);
669     void setStatusBarIsVisible(bool statusBarIsVisible);
670     void getStatusBarIsVisible(bool& statusBarIsVisible);
671     void setIsResizable(bool isResizable);
672     void getIsResizable(bool& isResizable);
673     void setWindowFrame(const WebCore::FloatRect&);
674     void getWindowFrame(WebCore::FloatRect&);
675     void screenToWindow(const WebCore::IntPoint& screenPoint, WebCore::IntPoint& windowPoint);
676     void windowToScreen(const WebCore::IntRect& viewRect, WebCore::IntRect& result);
677     void runBeforeUnloadConfirmPanel(const String& message, uint64_t frameID, bool& shouldClose);
678     void didChangeViewportProperties(const WebCore::ViewportArguments&);
679     void pageDidScroll();
680     void runOpenPanel(uint64_t frameID, const WebCore::FileChooserSettings&);
681     void printFrame(uint64_t frameID);
682     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, uint64_t& newQuota);
683     void requestGeolocationPermissionForFrame(uint64_t geolocationID, uint64_t frameID, String originIdentifier);
684     void runModal();
685     void notifyScrollerThumbIsVisibleInRect(const WebCore::IntRect&);
686     void recommendedScrollbarStyleDidChange(int32_t newStyle);
687     void didChangeScrollbarsForMainFrame(bool hasHorizontalScrollbar, bool hasVerticalScrollbar);
688     void didChangeScrollOffsetPinningForMainFrame(bool pinnedToLeftSide, bool pinnedToRightSide);
689     void didChangePageCount(unsigned);
690     void didFailToInitializePlugin(const String& mimeType);
691     void numWheelEventHandlersChanged(unsigned count) { m_wheelEventHandlerCount = count; }
692
693     void reattachToWebProcess();
694     void reattachToWebProcessWithItem(WebBackForwardListItem*);
695
696     void requestNotificationPermission(uint64_t notificationID, const String& originIdentifier);
697     void showNotification(const String& title, const String& body, const String& originIdentifier, uint64_t notificationID);
698     
699 #if USE(TILED_BACKING_STORE)
700     void pageDidRequestScroll(const WebCore::IntPoint&);
701 #endif
702
703 #if PLATFORM(QT)
704     void didChangeContentsSize(const WebCore::IntSize&);
705     void didFindZoomableArea(const WebCore::IntPoint&, const WebCore::IntRect&);
706     void focusEditableArea(const WebCore::IntRect& caret, const WebCore::IntRect&);
707 #endif
708 #if ENABLE(TOUCH_EVENTS)
709     void needTouchEvents(bool);
710 #endif
711
712     void editorStateChanged(const EditorState&);
713
714     // Back/Forward list management
715     void backForwardAddItem(uint64_t itemID);
716     void backForwardGoToItem(uint64_t itemID);
717     void backForwardItemAtIndex(int32_t index, uint64_t& itemID);
718     void backForwardBackListCount(int32_t& count);
719     void backForwardForwardListCount(int32_t& count);
720     void backForwardClear();
721
722     // Undo management
723     void registerEditCommandForUndo(uint64_t commandID, uint32_t editAction);
724     void clearAllEditCommands();
725     void canUndoRedo(uint32_t action, bool& result);
726     void executeUndoRedo(uint32_t action, bool& result);
727
728     // Keyboard handling
729 #if PLATFORM(MAC)
730     void interpretQueuedKeyEvent(const EditorState&, bool& handled, Vector<WebCore::KeypressCommand>&);
731     void executeSavedCommandBySelector(const String& selector, bool& handled);
732 #endif
733
734 #if PLATFORM(GTK)
735     void getEditorCommandsForKeyEvent(const AtomicString&, Vector<String>&);
736 #endif
737 #if PLATFORM(EFL)
738     void getEditorCommandsForKeyEvent(Vector<String>&);
739 #endif
740
741     // Popup Menu.
742     void showPopupMenu(const WebCore::IntRect& rect, uint64_t textDirection, const Vector<WebPopupItem>& items, int32_t selectedIndex, const PlatformPopupMenuData&);
743     void hidePopupMenu();
744 #if PLATFORM(WIN)
745     void setPopupMenuSelectedIndex(int32_t);
746 #endif
747
748     // Context Menu.
749     void showContextMenu(const WebCore::IntPoint& menuLocation, const ContextMenuState&, const Vector<WebContextMenuItemData>&, CoreIPC::ArgumentDecoder*);
750     void internalShowContextMenu(const WebCore::IntPoint& menuLocation, const ContextMenuState&, const Vector<WebContextMenuItemData>&, CoreIPC::ArgumentDecoder*);
751
752     // Search popup results
753     void saveRecentSearches(const String&, const Vector<String>&);
754     void loadRecentSearches(const String&, Vector<String>&);
755
756 #if PLATFORM(MAC)
757     // Speech.
758     void getIsSpeaking(bool&);
759     void speak(const String&);
760     void stopSpeaking();
761
762     // Spotlight.
763     void searchWithSpotlight(const String&);
764
765     // Dictionary.
766     void didPerformDictionaryLookup(const String&, const DictionaryPopupInfo&);
767 #endif
768
769     // Spelling and grammar.
770     int64_t spellDocumentTag();
771 #if USE(UNIFIED_TEXT_CHECKING)
772     void checkTextOfParagraph(const String& text, uint64_t checkingTypes, Vector<WebCore::TextCheckingResult>& results);
773 #endif
774     void checkSpellingOfString(const String& text, int32_t& misspellingLocation, int32_t& misspellingLength);
775     void checkGrammarOfString(const String& text, Vector<WebCore::GrammarDetail>&, int32_t& badGrammarLocation, int32_t& badGrammarLength);
776     void spellingUIIsShowing(bool&);
777     void updateSpellingUIWithMisspelledWord(const String& misspelledWord);
778     void updateSpellingUIWithGrammarString(const String& badGrammarPhrase, const WebCore::GrammarDetail&);
779     void getGuessesForWord(const String& word, const String& context, Vector<String>& guesses);
780     void learnWord(const String& word);
781     void ignoreWord(const String& word);
782
783     void setFocus(bool focused);
784     void takeFocus(uint32_t direction);
785     void setToolTip(const String&);
786     void setCursor(const WebCore::Cursor&);
787     void setCursorHiddenUntilMouseMoves(bool);
788
789     void didReceiveEvent(uint32_t opaqueType, bool handled);
790     void stopResponsivenessTimer();
791
792     void voidCallback(uint64_t);
793     void dataCallback(const CoreIPC::DataReference&, uint64_t);
794     void stringCallback(const String&, uint64_t);
795     void scriptValueCallback(const CoreIPC::DataReference&, uint64_t);
796     void computedPagesCallback(const Vector<WebCore::IntRect>&, double totalScaleFactorForPrinting, uint64_t);
797     void validateCommandCallback(const String&, bool, int, uint64_t);
798
799     void focusedFrameChanged(uint64_t frameID);
800     void frameSetLargestFrameChanged(uint64_t frameID);
801
802     void canAuthenticateAgainstProtectionSpaceInFrame(uint64_t frameID, const WebCore::ProtectionSpace&, bool& canAuthenticate);
803     void didReceiveAuthenticationChallenge(uint64_t frameID, const WebCore::AuthenticationChallenge&, uint64_t challengeID);
804
805     void didFinishLoadingDataForCustomRepresentation(const String& suggestedFilename, const CoreIPC::DataReference&);
806
807 #if PLATFORM(MAC)
808     void pluginFocusOrWindowFocusChanged(uint64_t pluginComplexTextInputIdentifier, bool pluginHasFocusAndWindowHasFocus);
809     void setPluginComplexTextInputState(uint64_t pluginComplexTextInputIdentifier, uint64_t complexTextInputState);
810 #endif
811
812     void clearPendingAPIRequestURL() { m_pendingAPIRequestURL = String(); }
813     void setPendingAPIRequestURL(const String& pendingAPIRequestURL) { m_pendingAPIRequestURL = pendingAPIRequestURL; }
814
815     bool maybeInitializeSandboxExtensionHandle(const WebCore::KURL&, SandboxExtension::Handle&);
816
817 #if PLATFORM(MAC)
818     void substitutionsPanelIsShowing(bool&);
819 #if !defined(BUILDING_ON_SNOW_LEOPARD)
820     void showCorrectionPanel(int32_t panelType, const WebCore::FloatRect& boundingBoxOfReplacedString, const String& replacedString, const String& replacementString, const Vector<String>& alternativeReplacementStrings);
821     void dismissCorrectionPanel(int32_t reason);
822     void dismissCorrectionPanelSoon(int32_t reason, String& result);
823     void recordAutocorrectionResponse(int32_t responseType, const String& replacedString, const String& replacementString);
824 #endif // !defined(BUILDING_ON_SNOW_LEOPARD)
825 #endif // PLATFORM(MAC)
826
827     void clearLoadDependentCallbacks();
828
829     void performDragControllerAction(DragControllerAction, WebCore::DragData*, const String& dragStorageName, const SandboxExtension::Handle&);
830
831     void updateBackingStoreDiscardableState();
832
833 #if PLATFORM(WIN)
834     void scheduleChildWindowGeometryUpdate(const WindowGeometry&);
835 #endif
836
837     void setRenderTreeSize(uint64_t treeSize) { m_renderTreeSize = treeSize; }
838
839     PageClient* m_pageClient;
840     WebLoaderClient m_loaderClient;
841     WebPolicyClient m_policyClient;
842     WebFormClient m_formClient;
843     WebResourceLoadClient m_resourceLoadClient;
844     WebUIClient m_uiClient;
845     WebFindClient m_findClient;
846     WebPageContextMenuClient m_contextMenuClient;
847
848     OwnPtr<DrawingAreaProxy> m_drawingArea;
849     RefPtr<WebProcessProxy> m_process;
850     RefPtr<WebPageGroup> m_pageGroup;
851     RefPtr<WebFrameProxy> m_mainFrame;
852     RefPtr<WebFrameProxy> m_focusedFrame;
853     RefPtr<WebFrameProxy> m_frameSetLargestFrame;
854
855     String m_userAgent;
856     String m_applicationNameForUserAgent;
857     String m_customUserAgent;
858     String m_customTextEncodingName;
859
860 #if ENABLE(INSPECTOR)
861     RefPtr<WebInspectorProxy> m_inspector;
862 #endif
863
864 #if ENABLE(FULLSCREEN_API)
865     RefPtr<WebFullScreenManagerProxy> m_fullScreenManager;
866 #endif
867
868     HashMap<uint64_t, RefPtr<VoidCallback> > m_voidCallbacks;
869     HashMap<uint64_t, RefPtr<DataCallback> > m_dataCallbacks;
870     HashMap<uint64_t, RefPtr<StringCallback> > m_stringCallbacks;
871     HashSet<uint64_t> m_loadDependentStringCallbackIDs;
872     HashMap<uint64_t, RefPtr<ScriptValueCallback> > m_scriptValueCallbacks;
873     HashMap<uint64_t, RefPtr<ComputedPagesCallback> > m_computedPagesCallbacks;
874     HashMap<uint64_t, RefPtr<ValidateCommandCallback> > m_validateCommandCallbacks;
875
876     HashSet<WebEditCommandProxy*> m_editCommandSet;
877
878     RefPtr<WebPopupMenuProxy> m_activePopupMenu;
879     RefPtr<WebContextMenuProxy> m_activeContextMenu;
880     ContextMenuState m_activeContextMenuState;
881     RefPtr<WebOpenPanelResultListenerProxy> m_openPanelResultListener;
882     GeolocationPermissionRequestManagerProxy m_geolocationPermissionRequestManager;
883     NotificationPermissionRequestManagerProxy m_notificationPermissionRequestManager;
884
885     double m_estimatedProgress;
886
887     // Whether the web page is contained in a top-level window.
888     bool m_isInWindow;
889
890     // Whether the page is visible; if the backing view is visible and inserted into a window.
891     bool m_isVisible;
892
893     bool m_canGoBack;
894     bool m_canGoForward;
895     RefPtr<WebBackForwardList> m_backForwardList;
896     
897     bool m_maintainsInactiveSelection;
898
899     String m_toolTip;
900
901     String m_urlAtProcessExit;
902     WebFrameProxy::LoadState m_loadStateAtProcessExit;
903
904     EditorState m_editorState;
905
906     double m_textZoomFactor;
907     double m_pageZoomFactor;
908     double m_pageScaleFactor;
909     float m_intrinsicDeviceScaleFactor;
910     float m_customDeviceScaleFactor;
911
912     bool m_drawsBackground;
913     bool m_drawsTransparentBackground;
914
915     bool m_areMemoryCacheClientCallsEnabled;
916
917     bool m_useFixedLayout;
918     WebCore::IntSize m_fixedLayoutSize;
919
920     WebCore::Page::Pagination::Mode m_paginationMode;
921     double m_pageLength;
922     double m_gapBetweenPages;
923
924     // If the process backing the web page is alive and kicking.
925     bool m_isValid;
926
927     // Whether WebPageProxy::close() has been called on this page.
928     bool m_isClosed;
929
930     bool m_isInPrintingMode;
931     bool m_isPerformingDOMPrintOperation;
932
933     bool m_inDecidePolicyForResponse;
934     bool m_syncMimeTypePolicyActionIsValid;
935     WebCore::PolicyAction m_syncMimeTypePolicyAction;
936     uint64_t m_syncMimeTypePolicyDownloadID;
937
938     bool m_inDecidePolicyForNavigationAction;
939     bool m_syncNavigationActionPolicyActionIsValid;
940     WebCore::PolicyAction m_syncNavigationActionPolicyAction;
941     uint64_t m_syncNavigationActionPolicyDownloadID;
942
943     Deque<NativeWebKeyboardEvent> m_keyEventQueue;
944     Deque<NativeWebWheelEvent> m_wheelEventQueue;
945     Vector<NativeWebWheelEvent> m_currentlyProcessedWheelEvents;
946
947     bool m_processingMouseMoveEvent;
948     OwnPtr<NativeWebMouseEvent> m_nextMouseMoveEvent;
949     OwnPtr<NativeWebMouseEvent> m_currentlyProcessedMouseDownEvent;
950
951 #if ENABLE(TOUCH_EVENTS)
952     bool m_needTouchEvents;
953     Deque<QueuedTouchEvents> m_touchEventQueue;
954 #endif
955
956     uint64_t m_pageID;
957
958 #if PLATFORM(MAC)
959     bool m_isSmartInsertDeleteEnabled;
960 #endif
961
962     int64_t m_spellDocumentTag;
963     bool m_hasSpellDocumentTag;
964     unsigned m_pendingLearnOrIgnoreWordMessageCount;
965
966     bool m_mainFrameHasCustomRepresentation;
967     WebCore::DragSession m_currentDragSession;
968
969     String m_pendingAPIRequestURL;
970
971     bool m_mainFrameHasHorizontalScrollbar;
972     bool m_mainFrameHasVerticalScrollbar;
973     int m_wheelEventHandlerCount;
974
975     bool m_mainFrameIsPinnedToLeftSide;
976     bool m_mainFrameIsPinnedToRightSide;
977
978     unsigned m_pageCount;
979
980     WebCore::IntRect m_visibleScrollerThumbRect;
981
982     uint64_t m_renderTreeSize;
983
984     static WKPageDebugPaintFlags s_debugPaintFlags;
985
986     bool m_shouldSendEventsSynchronously;
987 };
988
989 } // namespace WebKit
990
991 #endif // WebPageProxy_h