[Cherry-pick] Add a new set of WebKit2 APIs for text search and search results manage...
[framework/web/webkit-efl.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 "DragControllerAction.h"
32 #include "DrawingAreaProxy.h"
33 #include "EditorState.h"
34 #include "GeolocationPermissionRequestManagerProxy.h"
35 #if ENABLE(TOUCH_EVENTS)
36 #include "NativeWebTouchEvent.h"
37 #endif
38 #if ENABLE(TIZEN_WEBKIT2_ROTATION_WHILE_JAVASCRIPT_POPUP)
39 #include "NativeWebKeyboardEvent.h"
40 #endif
41 #if PLATFORM(QT)
42 #include "QtNetworkRequestData.h"
43 #endif
44 #include "LayerTreeContext.h"
45 #include "NotificationPermissionRequestManagerProxy.h"
46 #include "PlatformProcessIdentifier.h"
47 #include "SandboxExtension.h"
48 #include "ShareableBitmap.h"
49 #include "WKBase.h"
50 #include "WKPagePrivate.h"
51 #include "WebColorChooserProxy.h"
52 #include "WebContextMenuItemData.h"
53 #include "WebCoreArgumentCoders.h"
54 #include "WebFindClient.h"
55 #include "WebFormClient.h"
56 #include "WebFrameProxy.h"
57 #include "WebFullScreenManagerProxy.h"
58 #include "WebHistoryClient.h"
59 #include "WebHitTestResult.h"
60 #include "WebLoaderClient.h"
61 #include "WebPageContextMenuClient.h"
62 #include "WebPolicyClient.h"
63 #include "WebPopupMenuProxy.h"
64 #include "WebResourceLoadClient.h"
65 #include "WebUIClient.h"
66 #include <WebCore/AlternativeTextClient.h>
67 #include <WebCore/Color.h>
68 #include <WebCore/DragActions.h>
69 #include <WebCore/DragSession.h>
70 #include <WebCore/HitTestResult.h>
71 #include <WebCore/Page.h>
72 #include <WebCore/PlatformScreen.h>
73 #include <WebCore/ScrollTypes.h>
74 #include <WebCore/TextChecking.h>
75 #include <wtf/HashMap.h>
76 #include <wtf/HashSet.h>
77 #include <wtf/OwnPtr.h>
78 #include <wtf/PassOwnPtr.h>
79 #include <wtf/PassRefPtr.h>
80 #include <wtf/RefPtr.h>
81 #include <wtf/Vector.h>
82 #include <wtf/text/WTFString.h>
83
84 #if ENABLE(DRAG_SUPPORT)
85 #include <WebCore/DragActions.h>
86 #include <WebCore/DragSession.h>
87 #endif
88
89 #if PLATFORM(EFL)
90 #include <Evas.h>
91 #include <Ecore_IMF_Evas.h>
92 #endif
93
94 #if OS(TIZEN)
95 #include "WebPageProxyMessages.h"
96 #include "WebTizenClient.h"
97 #include <WebCore/Color.h>
98 #endif
99
100 #if ENABLE(TIZEN_MEDIA_STREAM)
101 #include "UserMediaPermissionRequestManagerProxy.h"
102 #endif
103
104 #if ENABLE(TIZEN_OFFLINE_PAGE_SAVE)
105 #include "WebSubresourceTizen.h"
106 #endif
107
108 #if ENABLE(TIZEN_CSS_OVERFLOW_SCROLL_ACCELERATION)
109 #include "WebLayerTreeInfo.h"
110 #endif
111
112 #if ENABLE(TIZEN_CSP)
113 #include <WebCore/ContentSecurityPolicy.h>
114 #endif
115
116 namespace CoreIPC {
117     class ArgumentDecoder;
118     class Connection;
119     class MessageID;
120 }
121
122 namespace WebCore {
123     class AuthenticationChallenge;
124     class Cursor;
125     class DragData;
126     class FloatRect;
127     class IntSize;
128     class ProtectionSpace;
129     struct FileChooserSettings;
130     struct TextAlternativeWithRange;
131     struct TextCheckingResult;
132     struct ViewportAttributes;
133     struct WindowFeatures;
134 }
135
136 #if PLATFORM(QT)
137 class QQuickNetworkReply;
138 #endif
139
140 #if USE(APPKIT)
141 #ifdef __OBJC__
142 @class WKView;
143 #else
144 class WKView;
145 #endif
146 #endif
147
148 #if ENABLE(WEB_INTENTS)
149 class WebIntentData;
150 #endif
151
152 namespace WebKit {
153
154 #if !ENABLE(TIZEN_WEBKIT2_ROTATION_WHILE_JAVASCRIPT_POPUP)
155 class NativeWebKeyboardEvent;
156 #endif
157 class NativeWebMouseEvent;
158 class NativeWebWheelEvent;
159 class PageClient;
160 class PlatformCertificateInfo;
161 class StringPairVector;
162 class WebBackForwardList;
163 class WebBackForwardListItem;
164 #if ENABLE(TIZEN_INPUT_COLOR_PICKER) // wait for upstream
165 class WebColorPickerResultListenerProxy;
166 #endif
167 class WebContextMenuProxy;
168 class WebData;
169 class WebEditCommandProxy;
170 class WebKeyboardEvent;
171 class WebMouseEvent;
172 class WebOpenPanelResultListenerProxy;
173 class WebPageGroup;
174 class WebProcessProxy;
175 #if ENABLE(TIZEN_OFFLINE_PAGE_SAVE)
176 class WebSubresourceTizen;
177 #endif
178 class WebURLRequest;
179 class WebWheelEvent;
180 struct AttributedString;
181 struct ColorSpaceData;
182 struct DictionaryPopupInfo;
183 struct EditorState;
184 struct PlatformPopupMenuData;
185 struct PrintInfo;
186 struct WebPageCreationParameters;
187 struct WebPopupItem;
188
189 #if PLATFORM(WIN)
190 struct WindowGeometry;
191 #endif
192
193 #if ENABLE(GESTURE_EVENTS)
194 class WebGestureEvent;
195 #endif
196
197 #if ENABLE(WEB_INTENTS)
198 struct IntentData;
199 #endif
200
201 #if ENABLE(WEB_INTENTS_TAG)
202 struct IntentServiceInfo;
203 #endif
204
205 typedef GenericCallback<WKStringRef, StringImpl*> StringCallback;
206 typedef GenericCallback<WKSerializedScriptValueRef, WebSerializedScriptValue*> ScriptValueCallback;
207 #if ENABLE(TIZEN_SUPPORT_WEBAPP_META_TAG)
208 typedef GenericCallback<WKBooleanRef> BooleanCallback;
209 #endif
210 #if ENABLE(TIZEN_WEB_STORAGE)
211 #if ENABLE(TIZEN_WEBKIT2_NUMBER_TYPE_SUPPORT)
212 typedef GenericCallback<WKUInt32Ref> WebStorageQuotaCallback;
213 #endif
214 #endif
215
216 #if PLATFORM(GTK)
217 typedef GenericCallback<WKErrorRef> PrintFinishedCallback;
218 #endif
219
220 #if ENABLE(TIZEN_WEBKIT2_ROTATION_WHILE_JAVASCRIPT_POPUP)
221 template<typename T>
222 struct QueuedUIEvents {
223     QueuedUIEvents(const T& event)
224         : forwardedEvent(event)
225     {
226     }
227     T forwardedEvent;
228     Vector<T> deferredEvents;
229 };
230 #else
231 #if ENABLE(TOUCH_EVENTS)
232 struct QueuedTouchEvents {
233     QueuedTouchEvents(const NativeWebTouchEvent& event)
234         : forwardedEvent(event)
235     {
236     }
237     NativeWebTouchEvent forwardedEvent;
238     Vector<NativeWebTouchEvent> deferredTouchEvents;
239 };
240 #endif
241 #endif
242
243 // FIXME: Make a version of CallbackBase with three arguments, and define ValidateCommandCallback as a specialization.
244 class ValidateCommandCallback : public CallbackBase {
245 public:
246     typedef void (*CallbackFunction)(WKStringRef, bool, int32_t, WKErrorRef, void*);
247
248     static PassRefPtr<ValidateCommandCallback> create(void* context, CallbackFunction callback)
249     {
250         return adoptRef(new ValidateCommandCallback(context, callback));
251     }
252
253     virtual ~ValidateCommandCallback()
254     {
255         ASSERT(!m_callback);
256     }
257
258     void performCallbackWithReturnValue(StringImpl* returnValue1, bool returnValue2, int returnValue3)
259     {
260         ASSERT(m_callback);
261
262         m_callback(toAPI(returnValue1), returnValue2, returnValue3, 0, context());
263
264         m_callback = 0;
265     }
266     
267     void invalidate()
268     {
269         ASSERT(m_callback);
270
271         RefPtr<WebError> error = WebError::create();
272         m_callback(0, 0, 0, toAPI(error.get()), context());
273         
274         m_callback = 0;
275     }
276
277 private:
278
279     ValidateCommandCallback(void* context, CallbackFunction callback)
280         : CallbackBase(context)
281         , m_callback(callback)
282     {
283     }
284
285     CallbackFunction m_callback;
286 };
287
288 class WebPageProxy
289     : public APIObject
290 #if ENABLE(INPUT_TYPE_COLOR)
291     , public WebColorChooserProxy::Client
292 #endif
293     , public WebPopupMenuProxy::Client {
294 public:
295     static const Type APIType = TypePage;
296
297     static PassRefPtr<WebPageProxy> create(PageClient*, PassRefPtr<WebProcessProxy>, WebPageGroup*, uint64_t pageID);
298     virtual ~WebPageProxy();
299
300     uint64_t pageID() const { return m_pageID; }
301
302     WebFrameProxy* mainFrame() const { return m_mainFrame.get(); }
303     WebFrameProxy* focusedFrame() const { return m_focusedFrame.get(); }
304     WebFrameProxy* frameSetLargestFrame() const { return m_frameSetLargestFrame.get(); }
305
306     DrawingAreaProxy* drawingArea() const { return m_drawingArea.get(); }
307
308     WebBackForwardList* backForwardList() const { return m_backForwardList.get(); }
309
310 #if ENABLE(INSPECTOR)
311     WebInspectorProxy* inspector();
312 #endif
313
314 #if ENABLE(FULLSCREEN_API)
315     WebFullScreenManagerProxy* fullScreenManager();
316 #endif
317
318 #if ENABLE(CONTEXT_MENUS)
319     void initializeContextMenuClient(const WKPageContextMenuClient*);
320 #endif
321     void initializeFindClient(const WKPageFindClient*);
322     void initializeFindMatchesClient(const WKPageFindMatchesClient*);
323     void initializeFormClient(const WKPageFormClient*);
324     void initializeLoaderClient(const WKPageLoaderClient*);
325     void initializePolicyClient(const WKPagePolicyClient*);
326     void initializeResourceLoadClient(const WKPageResourceLoadClient*);
327     void initializeUIClient(const WKPageUIClient*);
328 #if OS(TIZEN)
329     void initializeTizenClient(const WKPageTizenClient*);
330 #endif
331
332     void initializeWebPage();
333
334     void close();
335     bool tryClose();
336     bool isClosed() const { return m_isClosed; }
337
338     void loadURL(const String&);
339     void loadURLRequest(WebURLRequest*);
340     void loadHTMLString(const String& htmlString, const String& baseURL);
341     void loadAlternateHTMLString(const String& htmlString, const String& baseURL, const String& unreachableURL);
342     void loadPlainTextString(const String& string);
343     void loadWebArchiveData(const WebData*);
344 #if OS(TIZEN)
345     void loadContentsbyMimeType(const WebData*, const String& mimeType, const String& encoding, const String& baseURL);
346 #endif
347
348     void stopLoading();
349     void reload(bool reloadFromOrigin);
350
351     void goForward();
352     bool canGoForward() const;
353     void goBack();
354     bool canGoBack() const;
355
356     void goToBackForwardItem(WebBackForwardListItem*);
357     void tryRestoreScrollPosition();
358     void didChangeBackForwardList(WebBackForwardListItem* addedItem, Vector<RefPtr<APIObject> >* removedItems);
359     void shouldGoToBackForwardListItem(uint64_t itemID, bool& shouldGoToBackForwardListItem);
360     void willGoToBackForwardListItem(uint64_t itemID, CoreIPC::ArgumentDecoder* arguments);
361
362     String activeURL() const;
363     String provisionalURL() const;
364     String committedURL() const;
365
366     bool willHandleHorizontalScrollEvents() const;
367
368     bool canShowMIMEType(const String& mimeType) const;
369
370     bool drawsBackground() const { return m_drawsBackground; }
371     void setDrawsBackground(bool);
372
373     bool drawsTransparentBackground() const { return m_drawsTransparentBackground; }
374     void setDrawsTransparentBackground(bool);
375
376     void viewWillStartLiveResize();
377     void viewWillEndLiveResize();
378
379     void setInitialFocus(bool forward, bool isKeyboardEventValid, const WebKeyboardEvent&);
380     void setWindowResizerSize(const WebCore::IntSize&);
381     
382     void clearSelection();
383
384     void setViewNeedsDisplay(const WebCore::IntRect&);
385     void displayView();
386     void scrollView(const WebCore::IntRect& scrollRect, const WebCore::IntSize& scrollOffset);
387
388     enum {
389         ViewWindowIsActive = 1 << 0,
390         ViewIsFocused = 1 << 1,
391         ViewIsVisible = 1 << 2,
392         ViewIsInWindow = 1 << 3,
393     };
394     typedef unsigned ViewStateFlags;
395     void viewStateDidChange(ViewStateFlags flags);
396
397     WebCore::IntSize viewSize() const;
398     bool isViewVisible() const { return m_isVisible; }
399     bool isViewWindowActive() const;
400
401     void executeEditCommand(const String& commandName);
402 #if OS(TIZEN)
403     void executeEditCommandWithArgument(const String& commandName, const String& argument);
404 #endif
405     void validateCommand(const String& commandName, PassRefPtr<ValidateCommandCallback>);
406
407     const EditorState& editorState() const { return m_editorState; }
408     bool canDelete() const { return hasSelectedRange() && isContentEditable(); }
409     bool hasSelectedRange() const { return m_editorState.selectionIsRange; }
410     bool isContentEditable() const { return m_editorState.isContentEditable; }
411     
412     bool maintainsInactiveSelection() const { return m_maintainsInactiveSelection; }
413     void setMaintainsInactiveSelection(bool);
414 #if PLATFORM(QT)
415     void registerApplicationScheme(const String& scheme);
416     void resolveApplicationSchemeRequest(QtNetworkRequestData);
417     void sendApplicationSchemeReply(const QQuickNetworkReply*);
418     void authenticationRequiredRequest(const String& hostname, const String& realm, const String& prefilledUsername, String& username, String& password);
419     void certificateVerificationRequest(const String& hostname, bool& ignoreErrors);
420     void proxyAuthenticationRequiredRequest(const String& hostname, uint16_t port, const String& prefilledUsername, String& username, String& password);
421     void setUserScripts(const Vector<String>&);
422 #endif // PLATFORM(QT).
423 #if PLATFORM(EFL)
424     void setThemePath(const String&);
425 #endif
426
427 #if PLATFORM(QT)
428     void setComposition(const String& text, Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd);
429     void confirmComposition(const String& compositionString, int64_t selectionStart, int64_t selectionLength);
430     void cancelComposition();
431 #endif
432 #if PLATFORM(MAC)
433     void updateWindowIsVisible(bool windowIsVisible);
434     void windowAndViewFramesChanged(const WebCore::IntRect& windowFrameInScreenCoordinates, const WebCore::IntRect& viewFrameInWindowCoordinates, const WebCore::IntPoint& accessibilityViewCoordinates);
435
436     void setComposition(const String& text, Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd);
437     void confirmComposition();
438     void cancelComposition();
439     bool insertText(const String& text, uint64_t replacementRangeStart, uint64_t replacementRangeEnd);
440     bool insertDictatedText(const String& text, uint64_t replacementRangeStart, uint64_t replacementRangeEnd, const Vector<WebCore::TextAlternativeWithRange>& dictationAlternatives);
441     void getMarkedRange(uint64_t& location, uint64_t& length);
442     void getSelectedRange(uint64_t& location, uint64_t& length);
443     void getAttributedSubstringFromRange(uint64_t location, uint64_t length, AttributedString&);
444     uint64_t characterIndexForPoint(const WebCore::IntPoint);
445     WebCore::IntRect firstRectForCharacterRange(uint64_t, uint64_t);
446     bool executeKeypressCommands(const Vector<WebCore::KeypressCommand>&);
447
448     void sendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, const String& textInput);
449     CGContextRef containingWindowGraphicsContext();
450     bool shouldDelayWindowOrderingForEvent(const WebMouseEvent&);
451     bool acceptsFirstMouse(int eventNumber, const WebMouseEvent&);
452     
453 #if USE(APPKIT)
454     WKView* wkView() const;
455 #endif
456 #endif
457 #if PLATFORM(WIN)
458     void didChangeCompositionSelection(bool);
459     void confirmComposition(const String&);
460     void setComposition(const String&, Vector<WebCore::CompositionUnderline>&, int);
461     WebCore::IntRect firstRectForCharacterInSelectedRange(int);
462     String getSelectedText();
463
464     bool gestureWillBegin(const WebCore::IntPoint&);
465     void gestureDidScroll(const WebCore::IntSize&);
466     void gestureDidEnd();
467
468     void setGestureReachedScrollingLimit(bool);
469
470     HWND nativeWindow() const;
471 #endif
472 #if PLATFORM(GTK)
473     GtkWidget* viewWidget();
474 #endif
475 #if PLATFORM(EFL)
476     Evas_Object* viewWidget();
477 #endif
478
479 #if OS(TIZEN)
480     void confirmComposition(const String&);
481 #if ENABLE(TIZEN_REDUCE_KEY_LAGGING)
482     static Eina_Bool pageContentResumeTimerFired(void* data);
483 #endif
484     void setComposition(const String&, Vector<WebCore::CompositionUnderline>&, int);
485     void handleInputMethodKeydown(bool&);
486 #if ENABLE(TIZEN_TEXT_CARET_HANDLING_WK2)
487     void setCaretPosition(const WebCore::IntPoint&);
488     void getCaretPosition(WebCore::IntRect&);
489 #endif
490     bool scrollMainFrameBy(const WebCore::IntSize&);
491     void scrollMainFrameTo(const WebCore::IntPoint&);
492     WebCore::IntPoint& scrollPosition() { return m_scrollPosition; }
493     WebCore::IntSize& contentsSize() { return m_contentsSize; }
494     PassRefPtr<WebImage> createSnapshot(const WebCore::IntRect&, float);
495
496     void requestUpdateFormNavigation();
497     void moveFocus(int);
498     void updateFormNavigation(int length, int offset);
499     void focusedNodeChanged(const WebCore::IntRect&);
500
501 #if ENABLE(TIZEN_WEB_STORAGE)
502 #if ENABLE(TIZEN_WEBKIT2_NUMBER_TYPE_SUPPORT)
503     void getWebStorageQuotaBytes(PassRefPtr<WebStorageQuotaCallback>);
504     void didGetWebStorageQuotaBytes(const uint32_t quota, uint64_t callbackID);
505 #endif
506     void setWebStorageQuotaBytes(uint32_t quota);
507 #endif
508
509 #if ENABLE(TIZEN_WEBKIT2_HIT_TEST)
510     WebHitTestResult::Data hitTestResultAtPoint(const WebCore::IntPoint&, int hitTestMode = WebHitTestResult::HitTestModeDefault);
511 #endif
512 #if ENABLE(TIZEN_CONTEXT_MENU_WEBKIT_2)
513     void hideContextMenu();
514     String contextMenuAbsoluteLinkURLString();
515     String contextMenuAbsoluteImageURLString();
516 #endif
517 #if ENABLE(TIZEN_CLIPBOARD) || ENABLE(TIZEN_PASTEBOARD)
518     void setClipboardData(const String& data, const String& type);
519     void clearClipboardData();
520 #endif
521 #if ENABLE(TIZEN_WEBKIT2_CLIPBOARD_HELPER)
522     void didSelectPasteMenuFromContextMenu(const String& data, const String& type);
523     void pasteContextMenuSelected();
524 #endif
525 #if ENABLE(TIZEN_WEBKIT2_CONTEXT_MENU_CLIPBOARD)
526     void clipboardContextMenuSelected();
527     void executePasteFromClipboardItem(const String& data, const String& type);
528 #endif
529 #if ENABLE(TIZEN_WEBKIT2_REMOTE_WEB_INSPECTOR)
530     uint32_t startInspectorServer(uint32_t port);
531     bool stopInspectorServer();
532 #endif
533 #if ENABLE(TIZEN_MOBILE_WEB_PRINT)
534     void createPagesToPDF(const WebCore::IntSize&, const WebCore::IntSize&, const String&);
535 #endif
536
537     void scale(double, const WebCore::IntPoint&);
538     void scaleImage(double, const WebCore::IntPoint&);
539     double scaleFactor();
540
541 #if ENABLE(TIZEN_ORIENTATION_EVENTS)
542     void sendOrientationChangeEvent(int orientation);
543 #endif
544
545     void suspendPainting();
546 #if ENABLE(TIZEN_WEBKIT2_TILED_AC)
547     void suspendPaintingOfInactiveView();
548 #endif
549     void resumePainting();
550
551     void suspendJavaScriptAndResource();
552     void resumeJavaScriptAndResource();
553
554 #if ENABLE(TIZEN_PLUGIN_SUSPEND_RESUME)
555     void suspendPlugin();
556     void resumePlugin();
557 #endif
558
559 #endif // #if OS(TIZEN)
560
561 #if USE(TILED_BACKING_STORE)
562     void setViewportSize(const WebCore::IntSize&);
563 #endif
564
565     void handleMouseEvent(const NativeWebMouseEvent&);
566     void handleWheelEvent(const NativeWebWheelEvent&);
567     void handleKeyboardEvent(const NativeWebKeyboardEvent&);
568 #if ENABLE(GESTURE_EVENTS)
569     void handleGestureEvent(const WebGestureEvent&);
570 #endif
571 #if ENABLE(TOUCH_EVENTS)
572     void handleTouchEvent(const NativeWebTouchEvent&);
573 #if PLATFORM(QT)
574     void handlePotentialActivation(const WebCore::IntPoint& touchPoint, const WebCore::IntSize& touchArea);
575 #endif
576 #endif
577
578     void scrollBy(WebCore::ScrollDirection, WebCore::ScrollGranularity);
579     void centerSelectionInVisibleArea();
580
581     String pageTitle() const;
582     const String& toolTip() const { return m_toolTip; }
583
584     void setUserAgent(const String&);
585     const String& userAgent() const { return m_userAgent; }
586     void setApplicationNameForUserAgent(const String&);
587     const String& applicationNameForUserAgent() const { return m_applicationNameForUserAgent; }
588     void setCustomUserAgent(const String&);
589     const String& customUserAgent() const { return m_customUserAgent; }
590     static String standardUserAgent(const String& applicationName = String());
591 #if ENABLE(TIZEN_CUSTOM_HEADERS)
592     void addCustomHeader(const String&, const String&);
593     void removeCustomHeader(const String&);
594     void clearCustomHeaders();
595 #endif
596
597     bool supportsTextEncoding() const;
598     void setCustomTextEncodingName(const String&);
599     String customTextEncodingName() const { return m_customTextEncodingName; }
600
601     void resumeActiveDOMObjectsAndAnimations();
602     void suspendActiveDOMObjectsAndAnimations();
603
604     double estimatedProgress() const;
605
606     void terminateProcess();
607
608     typedef bool (*WebPageProxySessionStateFilterCallback)(WKPageRef, WKStringRef type, WKTypeRef object, void* context);
609     PassRefPtr<WebData> sessionStateData(WebPageProxySessionStateFilterCallback, void* context) const;
610     void restoreFromSessionStateData(WebData*);
611
612     bool supportsTextZoom() const;
613     double textZoomFactor() const { return m_mainFrameHasCustomRepresentation ? 1 : m_textZoomFactor; }
614     void setTextZoomFactor(double);
615     double pageZoomFactor() const;
616     void setPageZoomFactor(double);
617     void setPageAndTextZoomFactors(double pageZoomFactor, double textZoomFactor);
618
619     void scalePage(double scale, const WebCore::IntPoint& origin);
620     double pageScaleFactor() const { return m_pageScaleFactor; }
621
622     float deviceScaleFactor() const;
623     void setIntrinsicDeviceScaleFactor(float);
624     void setCustomDeviceScaleFactor(float);
625     void windowScreenDidChange(PlatformDisplayID);
626
627     LayerHostingMode layerHostingMode() const { return m_layerHostingMode; }
628
629     void setUseFixedLayout(bool);
630     void setFixedLayoutSize(const WebCore::IntSize&);
631     bool useFixedLayout() const { return m_useFixedLayout; };
632     const WebCore::IntSize& fixedLayoutSize() const { return m_fixedLayoutSize; };
633
634     bool hasHorizontalScrollbar() const { return m_mainFrameHasHorizontalScrollbar; }
635     bool hasVerticalScrollbar() const { return m_mainFrameHasVerticalScrollbar; }
636
637     bool isPinnedToLeftSide() const { return m_mainFrameIsPinnedToLeftSide; }
638     bool isPinnedToRightSide() const { return m_mainFrameIsPinnedToRightSide; }
639
640     void setPaginationMode(WebCore::Page::Pagination::Mode);
641     WebCore::Page::Pagination::Mode paginationMode() const { return m_paginationMode; }
642     void setPaginationBehavesLikeColumns(bool);
643     bool paginationBehavesLikeColumns() const { return m_paginationBehavesLikeColumns; }
644     void setPageLength(double);
645     double pageLength() const { return m_pageLength; }
646     void setGapBetweenPages(double);
647     double gapBetweenPages() const { return m_gapBetweenPages; }
648     unsigned pageCount() const { return m_pageCount; }
649
650 #if PLATFORM(MAC)
651     // Called by the web process through a message.
652     void registerWebProcessAccessibilityToken(const CoreIPC::DataReference&);
653     // Called by the UI process when it is ready to send its tokens to the web process.
654     void registerUIProcessAccessibilityTokens(const CoreIPC::DataReference& elemenToken, const CoreIPC::DataReference& windowToken);
655     bool readSelectionFromPasteboard(const String& pasteboardName);
656     String stringSelectionForPasteboard();
657     PassRefPtr<WebCore::SharedBuffer> dataSelectionForPasteboard(const String& pasteboardType);
658     void makeFirstResponder();
659
660     ColorSpaceData colorSpace();
661 #endif
662
663     void pageScaleFactorDidChange(double);
664
665     void setMemoryCacheClientCallsEnabled(bool);
666
667     // Find.
668     void findString(const String&, FindOptions, unsigned maxMatchCount);
669     void findStringMatches(const String&, FindOptions, unsigned maxMatchCount);
670     void getImageForFindMatch(int32_t matchIndex);
671     void selectFindMatch(int32_t matchIndex);
672     void didGetImageForFindMatch(const ShareableBitmap::Handle& contentImageHandle, uint32_t matchIndex);
673     void hideFindUI();
674     void countStringMatches(const String&, FindOptions, unsigned maxMatchCount);
675     void didCountStringMatches(const String&, uint32_t matchCount);
676     void setFindIndicator(const WebCore::FloatRect& selectionRectInWindowCoordinates, const Vector<WebCore::FloatRect>& textRectsInSelectionRectCoordinates, float contentImageScaleFactor, const ShareableBitmap::Handle& contentImageHandle, bool fadeOut, bool animate);
677     void didFindString(const String&, uint32_t matchCount);
678     void didFailToFindString(const String&);
679     void didFindStringMatches(const String&, Vector<Vector<WebCore::IntRect> > matchRects, int32_t firstIndexAfterSelection);
680 #if PLATFORM(WIN)
681     void didInstallOrUninstallPageOverlay(bool);
682 #endif
683
684     void getContentsAsString(PassRefPtr<StringCallback>);
685 #if ENABLE(MHTML)
686     void getContentsAsMHTMLData(PassRefPtr<DataCallback>, bool useBinaryEncoding);
687 #endif
688     void getMainResourceDataOfFrame(WebFrameProxy*, PassRefPtr<DataCallback>);
689     void getResourceDataFromFrame(WebFrameProxy*, WebURL*, PassRefPtr<DataCallback>);
690     void getRenderTreeExternalRepresentation(PassRefPtr<StringCallback>);
691     void getSelectionOrContentsAsString(PassRefPtr<StringCallback>);
692     void getSourceForFrame(WebFrameProxy*, PassRefPtr<StringCallback>);
693     void getWebArchiveOfFrame(WebFrameProxy*, PassRefPtr<DataCallback>);
694     void runJavaScriptInMainFrame(const String&, PassRefPtr<ScriptValueCallback>);
695     void forceRepaint(PassRefPtr<VoidCallback>);
696
697 #if ENABLE(WEB_INTENTS)
698     void deliverIntentToFrame(WebFrameProxy*, WebIntentData*);
699 #endif
700
701     float headerHeight(WebFrameProxy*);
702     float footerHeight(WebFrameProxy*);
703     void drawHeader(WebFrameProxy*, const WebCore::FloatRect&);
704     void drawFooter(WebFrameProxy*, const WebCore::FloatRect&);
705
706 #if ENABLE(SCREEN_ORIENTATION_SUPPORT) && ENABLE(TIZEN_SCREEN_ORIENTATION_SUPPORT)
707     void lockOrientation(int orientation, bool& result);
708     void unlockOrientation();
709 #endif
710
711 #if PLATFORM(MAC)
712     // Dictionary.
713     void performDictionaryLookupAtLocation(const WebCore::FloatPoint&);
714 #endif
715
716     void receivedPolicyDecision(WebCore::PolicyAction, WebFrameProxy*, uint64_t listenerID);
717
718     void backForwardRemovedItem(uint64_t itemID);
719
720 #if ENABLE(DRAG_SUPPORT)    
721     // Drag and drop support.
722     void dragEntered(WebCore::DragData*, const String& dragStorageName = String());
723     void dragUpdated(WebCore::DragData*, const String& dragStorageName = String());
724     void dragExited(WebCore::DragData*, const String& dragStorageName = String());
725 #if ENABLE(TIZEN_DRAG_SUPPORT)
726     void performDrag(WebCore::DragData*, const String& dragStorageName = String());
727 #else
728     void performDrag(WebCore::DragData*, const String& dragStorageName, const SandboxExtension::Handle&, const SandboxExtension::HandleArray&);
729 #endif
730
731     void didPerformDragControllerAction(WebCore::DragSession);
732     void dragEnded(const WebCore::IntPoint& clientPosition, const WebCore::IntPoint& globalPosition, uint64_t operation);
733 #if PLATFORM(MAC)
734     void setDragImage(const WebCore::IntPoint& clientPosition, const ShareableBitmap::Handle& dragImageHandle, bool isLinkDrag);
735     void setPromisedData(const String& pasteboardName, const SharedMemory::Handle& imageHandle, uint64_t imageSize, const String& filename, const String& extension,
736                          const String& title, const String& url, const String& visibleURL, const SharedMemory::Handle& archiveHandle, uint64_t archiveSize);
737 #endif
738 #if PLATFORM(WIN)
739     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);
740 #endif
741 #if PLATFORM(QT) || PLATFORM(GTK) || ENABLE(TIZEN_DRAG_SUPPORT)
742     void startDrag(const WebCore::DragData&, const ShareableBitmap::Handle& dragImage);
743 #endif
744 #endif
745
746     void didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*);
747     void didReceiveSyncMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*, OwnPtr<CoreIPC::ArgumentEncoder>&);
748
749     void processDidBecomeUnresponsive();
750     void interactionOccurredWhileProcessUnresponsive();
751     void processDidBecomeResponsive();
752     void processDidCrash();
753
754 #if USE(ACCELERATED_COMPOSITING)
755     virtual void enterAcceleratedCompositingMode(const LayerTreeContext&);
756     virtual void exitAcceleratedCompositingMode();
757     virtual void updateAcceleratedCompositingMode(const LayerTreeContext&);
758 #endif
759     
760     void didDraw();
761
762     enum UndoOrRedo { Undo, Redo };
763     void addEditCommand(WebEditCommandProxy*);
764     void removeEditCommand(WebEditCommandProxy*);
765     bool isValidEditCommand(WebEditCommandProxy*);
766     void registerEditCommand(PassRefPtr<WebEditCommandProxy>, UndoOrRedo);
767
768 #if PLATFORM(MAC)
769     void registerKeypressCommandName(const String& name) { m_knownKeypressCommandNames.add(name); }
770     bool isValidKeypressCommandName(const String& name) const { return m_knownKeypressCommandNames.contains(name); }
771 #endif
772
773     WebProcessProxy* process() const;
774     PlatformProcessIdentifier processIdentifier() const;
775
776     WebPageGroup* pageGroup() const { return m_pageGroup.get(); }
777
778     bool isValid();
779
780     const String& urlAtProcessExit() const { return m_urlAtProcessExit; }
781     WebFrameProxy::LoadState loadStateAtProcessExit() const { return m_loadStateAtProcessExit; }
782
783 #if ENABLE(DRAG_SUPPORT)
784     WebCore::DragSession dragSession() const { return m_currentDragSession; }
785     void resetDragOperation() { m_currentDragSession = WebCore::DragSession(); }
786 #endif
787
788     void preferencesDidChange();
789
790 #if ENABLE(CONTEXT_MENUS)
791     // Called by the WebContextMenuProxy.
792     void contextMenuItemSelected(const WebContextMenuItemData&);
793 #endif
794
795     // Called by the WebOpenPanelResultListenerProxy.
796     void didChooseFilesForOpenPanel(const Vector<String>&);
797     void didCancelForOpenPanel();
798
799     WebPageCreationParameters creationParameters() const;
800
801 #if PLATFORM(QT)
802     void findZoomableAreaForPoint(const WebCore::IntPoint&, const WebCore::IntSize&);
803     void didReceiveMessageFromNavigatorQtObject(const String&);
804 #endif
805
806 #if PLATFORM(QT) || PLATFORM(EFL)
807     void handleDownloadRequest(DownloadProxy*);
808 #endif
809 #if OS(TIZEN)
810     void findZoomableAreaForPoint(const WebCore::IntPoint&, const WebCore::IntSize&);
811 #endif // #if OS(TIZEN)
812
813     void advanceToNextMisspelling(bool startBeforeSelection) const;
814     void changeSpellingToWord(const String& word) const;
815 #if USE(APPKIT)
816     void uppercaseWord();
817     void lowercaseWord();
818     void capitalizeWord();
819 #endif
820
821 #if PLATFORM(MAC)
822     bool isSmartInsertDeleteEnabled() const { return m_isSmartInsertDeleteEnabled; }
823     void setSmartInsertDeleteEnabled(bool);
824 #endif
825
826 #if PLATFORM(GTK)
827     String accessibilityPlugID() const { return m_accessibilityPlugID; }
828 #endif
829
830     void setCanRunModal(bool);
831     bool canRunModal();
832
833     void beginPrinting(WebFrameProxy*, const PrintInfo&);
834     void endPrinting();
835     void computePagesForPrinting(WebFrameProxy*, const PrintInfo&, PassRefPtr<ComputedPagesCallback>);
836 #if PLATFORM(MAC) || PLATFORM(WIN)
837     void drawRectToPDF(WebFrameProxy*, const PrintInfo&, const WebCore::IntRect&, PassRefPtr<DataCallback>);
838     void drawPagesToPDF(WebFrameProxy*, const PrintInfo&, uint32_t first, uint32_t count, PassRefPtr<DataCallback>);
839 #elif PLATFORM(GTK)
840     void drawPagesForPrinting(WebFrameProxy*, const PrintInfo&, PassRefPtr<PrintFinishedCallback>);
841 #endif
842
843     const String& pendingAPIRequestURL() const { return m_pendingAPIRequestURL; }
844
845     void flashBackingStoreUpdates(const Vector<WebCore::IntRect>& updateRects);
846
847 #if PLATFORM(MAC)
848     void handleAlternativeTextUIResult(const String& result);
849 #endif
850
851     static void setDebugPaintFlags(WKPageDebugPaintFlags flags) { s_debugPaintFlags = flags; }
852     static WKPageDebugPaintFlags debugPaintFlags() { return s_debugPaintFlags; }
853
854     // Color to be used with kWKDebugFlashViewUpdates.
855     static WebCore::Color viewUpdatesFlashColor();
856
857     // Color to be used with kWKDebugFlashBackingStoreUpdates.
858     static WebCore::Color backingStoreUpdatesFlashColor();
859
860     void saveDataToFileInDownloadsFolder(const String& suggestedFilename, const String& mimeType, const String& originatingURLString, WebData*);
861
862     void linkClicked(const String&, const WebMouseEvent&);
863
864     WebCore::IntRect visibleScrollerThumbRect() const { return m_visibleScrollerThumbRect; }
865
866     uint64_t renderTreeSize() const { return m_renderTreeSize; }
867
868     void setShouldSendEventsSynchronously(bool sync) { m_shouldSendEventsSynchronously = sync; };
869 #if ENABLE(TIZEN_INPUT_TAG_EXTENSION) || ENABLE(TIZEN_WEBKIT2_FORM_DATABASE)
870     void setFocusedInputElementValue(const String& inputValue);
871     String getFocusedInputElementValue();
872 #endif
873
874 #if ENABLE(TIZEN_DATALIST_ELEMENT)
875     Vector<String> getFocusedInputElementDataList();
876 #endif
877
878     void printMainFrame();
879
880 #if ENABLE(TIZEN_RECORDING_SURFACE_SET)
881 void recordingSurfaceSetEnableSet(bool enable);
882 #endif
883     
884 #if ENABLE(TIZEN_REGISTER_PROTOCOL_HANDLER)
885     void registerProtocolHandler(const String& scheme, const String& baseURL, const String& url, const String& title);
886 #endif
887 #if ENABLE(TIZEN_CUSTOM_SCHEME_HANDLER)
888     void isProtocolHandlerRegistered(const String& scheme, const String& baseURL, const String& url, unsigned int& result);
889     void unregisterProtocolHandler(const String& scheme, const String& baseURL, const String& url);
890 #endif
891 #if ENABLE(TIZEN_REGISTER_CONTENT_HANDLER)
892     void registerContentHandler(const String& mimeType, const String& baseURL, const String& url, const String& title);
893     void isContentHandlerRegistered(const String& mimeType, const String& baseURL, const String& url, unsigned int& result);
894     void unregisterContentHandler(const String& mimeType, const String& baseURL, const String& url);
895 #endif
896
897 #if ENABLE(TIZEN_SEARCH_PROVIDER)
898     void addSearchProvider(const String& baseURL, const String& engineURL);
899     void isSearchProviderInstalled(const String& baseURL, const String& engineURL, uint64_t& result);
900 #endif
901
902 #if ENABLE(TIZEN_SUPPORT_WEBAPP_META_TAG)
903     void getStandaloneStatus(bool& standalone);
904     void getWebAppCapable(PassRefPtr<BooleanCallback>);
905     void getWebAppIconURL(PassRefPtr<StringCallback>);
906 #endif
907
908     void setMediaVolume(float);
909
910 #if OS(TIZEN)
911     void replyJavaScriptAlert();
912     void replyJavaScriptConfirm(bool result);
913     void replyJavaScriptPrompt(const String& result);
914 #if ENABLE(TIZEN_SUPPORT_BEFORE_UNLOAD_CONFIRM_PANEL)
915     void replyBeforeUnloadConfirmPanel(bool result);
916 #endif
917 #endif
918
919 #if ENABLE(TIZEN_CERTIFICATE_HANDLING)
920     void replyPolicyForCertificateError(bool result);
921 #endif
922
923     // WebPopupMenuProxy::Client
924     virtual NativeWebMouseEvent* currentlyProcessedMouseDownEvent();
925
926 #if ENABLE(TIZEN_PAGE_VISIBILITY_API)
927     void setPageVisibility(WebCore::PageVisibilityState, bool isInitialState);
928 #endif
929
930 #if ENABLE(TIZEN_CSS_OVERFLOW_SCROLL_ACCELERATION)
931     bool scrollOverflow(const WebCore::FloatPoint&);
932     bool setPressedNodeAtPoint(const WebCore::IntPoint&, bool checkOverflowLayer, WebLayerID&);
933     void setLoadingFinished(const bool isLoadingFinished) { m_isLoadingFinished = isLoadingFinished; }
934     bool isLoadingFinished() const { return m_isLoadingFinished; }
935     bool askOverflow() const { return m_askOverflow; }
936     void setOverflowResult(bool pressed, WebLayerID webLayerID);
937 #endif
938
939 #if ENABLE(TIZEN_ISF_PORT)
940     int getCursorOffset();
941     void getSurroundingTextAndCursorOffset(String&, int&);
942     WebCore::IntRect getSelectionRect(bool);
943     void deleteSurroundingText(int, int);
944
945     void updateCursorOffset(int);
946     void didCancelComposition();
947 #endif
948
949     void setBackgroundColor(double red, double green, double blue, double alpha);
950 #if ENABLE(TIZEN_WEBKIT2_TILED_AC)
951     bool makeContextCurrent();
952 #endif
953
954 #if OS(TIZEN)
955     void didRenderFrame();
956 #endif
957
958 #if ENABLE(TIZEN_WEBKIT2_GET_TEXT_STYLE_FOR_SELECTION)
959     void getTextStyleStateForSelection();
960     void didGetTextStyleStateForSelection(int underlineState, int italicState, int boldState);
961 #endif
962
963 #if PLATFORM(GTK) && USE(TEXTURE_MAPPER_GL)
964     void widgetMapped(uint64_t nativeWindowId);
965 #endif
966
967     void setSuppressVisibilityUpdates(bool flag) { m_suppressVisibilityUpdates = flag; }
968     bool suppressVisibilityUpdates() { return m_suppressVisibilityUpdates; }
969
970 #if ENABLE(TIZEN_INPUT_COLOR_PICKER) // wait for upstream
971 #if ENABLE(INPUT_TYPE_COLOR)
972     void setColorChooserColor(const WebCore::Color&);
973     void endColorChooser();
974 #endif
975 #endif
976
977 #if ENABLE(TIZEN_MULTIPLE_SELECT)
978     void valueChangedForPopupMenuMultiple(WebPopupMenuProxy*, Vector<int32_t> newSelectedIndex);
979 #endif
980
981 #if ENABLE(TIZEN_NATIVE_MEMORY_SNAPSHOT)
982     void dumpMemorySnapshot();
983 #endif
984
985 #if ENABLE(TIZEN_OFFLINE_PAGE_SAVE)
986     void saveSerializedHTMLDataForMainPage(const String& serializedData, const String& fileName);
987     void saveSubresourcesData(Vector<WebSubresourceTizen> subresourceData);
988     void startOfflinePageSave(String subresourceFolderName);
989 #endif
990
991 #if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
992     bool selectClosestWord(const WebCore::IntPoint&, bool isStartedTextSelectionFromOutside);
993     bool setLeftSelection(const WebCore::IntPoint&);
994     bool setRightSelection(const WebCore::IntPoint&);
995     bool getSelectionHandlers(WebCore::IntRect& leftRect, WebCore::IntRect& rightRect);
996     String getSelectionText();
997     bool selectionRangeClear();
998 #endif
999
1000 #if ENABLE(TIZEN_LINK_MAGNIFIER)
1001     void getLinkMagnifierRect(const WebCore::IntPoint&, const WebCore::IntSize&);
1002     void openLink(const WebCore::IntPoint&);
1003 #endif
1004
1005 #if ENABLE(TIZEN_SCREEN_READER)
1006     void raiseTapEvent(const WebCore::IntPoint&);
1007     bool moveScreenReaderFocus(bool);
1008     void moveScreenReaderFocusByPoint(const WebCore::IntPoint&);
1009     void recalcScreenReaderFocusRect();
1010     void clearScreenReader();
1011
1012     void didScreenReaderFocusRectChanged(const WebCore::IntRect&);
1013     void didScreenReaderTextChanged(const String&);
1014 #endif
1015
1016 #if ENABLE(TIZEN_CSP)
1017     void setContentSecurityPolicy(const String& policy, WebCore::ContentSecurityPolicy::HeaderType type);
1018 #endif
1019
1020 private:
1021     WebPageProxy(PageClient*, PassRefPtr<WebProcessProxy>, WebPageGroup*, uint64_t pageID);
1022
1023     virtual Type type() const { return APIType; }
1024
1025     // WebPopupMenuProxy::Client
1026     virtual void valueChangedForPopupMenu(WebPopupMenuProxy*, int32_t newSelectedIndex);
1027     virtual void setTextFromItemForPopupMenu(WebPopupMenuProxy*, int32_t index);
1028 #if PLATFORM(GTK)
1029     virtual void failedToShowPopupMenu();
1030 #endif
1031 #if PLATFORM(QT)
1032     virtual void changeSelectedIndex(int32_t newSelectedIndex);
1033     virtual void closePopupMenu();
1034 #endif
1035
1036     // Implemented in generated WebPageProxyMessageReceiver.cpp
1037     void didReceiveWebPageProxyMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*);
1038     void didReceiveSyncWebPageProxyMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*, OwnPtr<CoreIPC::ArgumentEncoder>&);
1039
1040     void didCreateMainFrame(uint64_t frameID);
1041     void didCreateSubframe(uint64_t frameID, uint64_t parentFrameID);
1042     void didSaveFrameToPageCache(uint64_t frameID);
1043     void didRestoreFrameFromPageCache(uint64_t frameID, uint64_t parentFrameID);
1044
1045     void didStartProvisionalLoadForFrame(uint64_t frameID, const String& url, const String& unreachableURL, CoreIPC::ArgumentDecoder*);
1046     void didReceiveServerRedirectForProvisionalLoadForFrame(uint64_t frameID, const String&, CoreIPC::ArgumentDecoder*);
1047     void didFailProvisionalLoadForFrame(uint64_t frameID, const WebCore::ResourceError&, CoreIPC::ArgumentDecoder*);
1048     void didCommitLoadForFrame(uint64_t frameID, const String& mimeType, bool frameHasCustomRepresentation, const PlatformCertificateInfo&, CoreIPC::ArgumentDecoder*);
1049     void didFinishDocumentLoadForFrame(uint64_t frameID, CoreIPC::ArgumentDecoder*);
1050     void didFinishLoadForFrame(uint64_t frameID, CoreIPC::ArgumentDecoder*);
1051     void didFailLoadForFrame(uint64_t frameID, const WebCore::ResourceError&, CoreIPC::ArgumentDecoder*);
1052     void didSameDocumentNavigationForFrame(uint64_t frameID, uint32_t sameDocumentNavigationType, const String&, CoreIPC::ArgumentDecoder*);
1053     void didReceiveTitleForFrame(uint64_t frameID, const String&, CoreIPC::ArgumentDecoder*);
1054     void didFirstLayoutForFrame(uint64_t frameID, CoreIPC::ArgumentDecoder*);
1055     void didFirstVisuallyNonEmptyLayoutForFrame(uint64_t frameID, CoreIPC::ArgumentDecoder*);
1056     void didNewFirstVisuallyNonEmptyLayout(CoreIPC::ArgumentDecoder*);
1057     void didRemoveFrameFromHierarchy(uint64_t frameID, CoreIPC::ArgumentDecoder*);
1058     void didDisplayInsecureContentForFrame(uint64_t frameID, CoreIPC::ArgumentDecoder*);
1059     void didRunInsecureContentForFrame(uint64_t frameID, CoreIPC::ArgumentDecoder*);
1060     void didDetectXSSForFrame(uint64_t frameID, CoreIPC::ArgumentDecoder*);
1061     void frameDidBecomeFrameSet(uint64_t frameID, bool);
1062     void didStartProgress();
1063     void didChangeProgress(double);
1064     void didFinishProgress();
1065
1066 #if ENABLE(TIZEN_PLUGIN_CUSTOM_REQUEST)
1067     void processPluginCustomRequest(const String& request, const String& msg);
1068 #endif
1069
1070 #if ENABLE(WEB_INTENTS)
1071     void didReceiveIntentForFrame(uint64_t frameID, const IntentData&, CoreIPC::ArgumentDecoder*);
1072 #endif
1073 #if ENABLE(WEB_INTENTS_TAG)
1074     void registerIntentServiceForFrame(uint64_t frameID, const IntentServiceInfo&, CoreIPC::ArgumentDecoder*);
1075 #endif
1076
1077 #if ENABLE(TIZEN_DOWNLOAD_ATTRIBUTE)
1078     // Called by the web process through a message when the download need to be initiated from the web process.
1079     void startDownload(const WebCore::ResourceRequest&, const String& suggestedName = String());
1080 #endif
1081
1082      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);
1083     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*);
1084     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);
1085     void unableToImplementPolicy(uint64_t frameID, const WebCore::ResourceError&, CoreIPC::ArgumentDecoder* arguments);
1086
1087 #if ENABLE(TIZEN_WEBKIT2_FORM_DATABASE)
1088     void willSubmitForm(uint64_t frameID, uint64_t sourceFrameID, const StringPairVector& textFieldValues, bool containsPasswordData, uint64_t listenerID, CoreIPC::ArgumentDecoder*);
1089 #else
1090     void willSubmitForm(uint64_t frameID, uint64_t sourceFrameID, const StringPairVector& textFieldValues, uint64_t listenerID, CoreIPC::ArgumentDecoder*);
1091 #endif
1092
1093     // Resource load client
1094     void didInitiateLoadForResource(uint64_t frameID, uint64_t resourceIdentifier, const WebCore::ResourceRequest&, bool pageIsProvisionallyLoading);
1095     void didSendRequestForResource(uint64_t frameID, uint64_t resourceIdentifier, const WebCore::ResourceRequest&, const WebCore::ResourceResponse& redirectResponse);
1096     void didReceiveResponseForResource(uint64_t frameID, uint64_t resourceIdentifier, const WebCore::ResourceResponse&);
1097     void didReceiveContentLengthForResource(uint64_t frameID, uint64_t resourceIdentifier, uint64_t contentLength);
1098     void didFinishLoadForResource(uint64_t frameID, uint64_t resourceIdentifier);
1099     void didFailLoadForResource(uint64_t frameID, uint64_t resourceIdentifier, const WebCore::ResourceError&);
1100
1101     // UI client
1102     void createNewPage(const WebCore::ResourceRequest&, const WebCore::WindowFeatures&, uint32_t modifiers, int32_t mouseButton, uint64_t& newPageID, WebPageCreationParameters&);
1103     void showPage();
1104     void closePage(bool stopResponsivenessTimer);
1105 #if OS(TIZEN)
1106     void runJavaScriptAlert(uint64_t frameID, const String&, PassRefPtr<Messages::WebPageProxy::RunJavaScriptAlert::DelayedReply>);
1107     void runJavaScriptConfirm(uint64_t frameID, const String&, PassRefPtr<Messages::WebPageProxy::RunJavaScriptConfirm::DelayedReply>);
1108     void runJavaScriptPrompt(uint64_t frameID, const String&, const String&, PassRefPtr<Messages::WebPageProxy::RunJavaScriptPrompt::DelayedReply>);
1109 #else
1110     void runJavaScriptAlert(uint64_t frameID, const String&);
1111     void runJavaScriptConfirm(uint64_t frameID, const String&, bool& result);
1112     void runJavaScriptPrompt(uint64_t frameID, const String&, const String&, String& result);
1113 #endif
1114     void shouldInterruptJavaScript(bool& result);
1115     void setStatusText(const String&);
1116     void mouseDidMoveOverElement(const WebHitTestResult::Data& hitTestResultData, uint32_t modifiers, CoreIPC::ArgumentDecoder*);
1117     void unavailablePluginButtonClicked(uint32_t opaquePluginUnavailabilityReason, const String& mimeType, const String& url, const String& pluginsPageURL);
1118     void setToolbarsAreVisible(bool toolbarsAreVisible);
1119     void getToolbarsAreVisible(bool& toolbarsAreVisible);
1120     void setMenuBarIsVisible(bool menuBarIsVisible);
1121     void getMenuBarIsVisible(bool& menuBarIsVisible);
1122     void setStatusBarIsVisible(bool statusBarIsVisible);
1123     void getStatusBarIsVisible(bool& statusBarIsVisible);
1124     void setIsResizable(bool isResizable);
1125     void getIsResizable(bool& isResizable);
1126     void setWindowFrame(const WebCore::FloatRect&);
1127     void getWindowFrame(WebCore::FloatRect&);
1128     void screenToWindow(const WebCore::IntPoint& screenPoint, WebCore::IntPoint& windowPoint);
1129     void windowToScreen(const WebCore::IntRect& viewRect, WebCore::IntRect& result);
1130 #if ENABLE(TIZEN_SUPPORT_BEFORE_UNLOAD_CONFIRM_PANEL)
1131     void runBeforeUnloadConfirmPanel(const String& message, uint64_t frameID, PassRefPtr<Messages::WebPageProxy::RunBeforeUnloadConfirmPanel::DelayedReply>);
1132 #else
1133     void runBeforeUnloadConfirmPanel(const String& message, uint64_t frameID, bool& shouldClose);
1134 #endif
1135     void didChangeViewportProperties(const WebCore::ViewportAttributes&);
1136     void pageDidScroll();
1137     void runOpenPanel(uint64_t frameID, const WebCore::FileChooserSettings&);
1138     void printFrame(uint64_t frameID);
1139     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);
1140     void requestGeolocationPermissionForFrame(uint64_t geolocationID, uint64_t frameID, String originIdentifier);
1141     void runModal();
1142     void notifyScrollerThumbIsVisibleInRect(const WebCore::IntRect&);
1143     void recommendedScrollbarStyleDidChange(int32_t newStyle);
1144     void didChangeScrollbarsForMainFrame(bool hasHorizontalScrollbar, bool hasVerticalScrollbar);
1145     void didChangeScrollOffsetPinningForMainFrame(bool pinnedToLeftSide, bool pinnedToRightSide);
1146 #if PLATFORM(EFL)
1147     void didChangeScrollPositionForMainFrame(const WebCore::IntPoint&);
1148 #endif
1149     void didChangePageCount(unsigned);
1150     void didFailToInitializePlugin(const String& mimeType);
1151     void didBlockInsecurePluginVersion(const String& mimeType, const String& urlString);
1152     void setCanShortCircuitHorizontalWheelEvents(bool canShortCircuitHorizontalWheelEvents) { m_canShortCircuitHorizontalWheelEvents = canShortCircuitHorizontalWheelEvents; }
1153
1154     void reattachToWebProcess();
1155     void reattachToWebProcessWithItem(WebBackForwardListItem*);
1156
1157     void requestNotificationPermission(uint64_t notificationID, const String& originString);
1158
1159     void showNotification(const String& title, const String& body, const String& iconURL, const String& tag, const String& originString, uint64_t notificationID);
1160
1161 #if ENABLE(TIZEN_MEDIA_STREAM)
1162     void requestUserMediaPermission(uint64_t userMediaID);
1163 #endif
1164
1165 #if USE(TILED_BACKING_STORE)
1166     void pageDidRequestScroll(const WebCore::IntPoint&);
1167 #endif
1168
1169 #if ENABLE(TIZEN_WEBKIT2_HISTORICAL_RESTORE_VISIBLE_CONTENT_RECT)
1170     void pageDidRequestRestoreVisibleContentRect(const WebCore::IntPoint&, float);
1171 #endif
1172
1173 #if PLATFORM(QT) || OS(TIZEN)
1174     void didChangeContentsSize(const WebCore::IntSize&);
1175     void didFindZoomableArea(const WebCore::IntPoint&, const WebCore::IntRect&);
1176 #endif
1177 #if ENABLE(TOUCH_EVENTS)
1178     void needTouchEvents(bool);
1179 #endif
1180
1181 #if ENABLE(TIZEN_SUPPORT_WEBAPP_META_TAG)
1182     void didGetWebAppCapable(const bool capable, uint64_t callbackID);
1183     void didGetWebAppIconURL(const String& iconURL, uint64_t callbackID);
1184 #endif
1185 #if ENABLE(TIZEN_ICON_DATABASE)
1186     void didReceiveIcon();
1187 #endif
1188
1189 #if ENABLE(INPUT_TYPE_COLOR)
1190     void showColorChooser(const WebCore::Color& initialColor);
1191 #if !ENABLE(TIZEN_INPUT_COLOR_PICKER) // wait for upstream
1192     void setColorChooserColor(const WebCore::Color&);
1193     void endColorChooser();
1194 #endif
1195     void didChooseColor(const WebCore::Color&);
1196     void didEndColorChooser();
1197 #endif
1198
1199     void editorStateChanged(const EditorState&);
1200
1201     // Back/Forward list management
1202     void backForwardAddItem(uint64_t itemID);
1203     void backForwardGoToItem(uint64_t itemID, SandboxExtension::Handle&);
1204     void backForwardItemAtIndex(int32_t index, uint64_t& itemID);
1205     void backForwardBackListCount(int32_t& count);
1206     void backForwardForwardListCount(int32_t& count);
1207     void backForwardClear();
1208
1209     // Undo management
1210     void registerEditCommandForUndo(uint64_t commandID, uint32_t editAction);
1211     void clearAllEditCommands();
1212     void canUndoRedo(uint32_t action, bool& result);
1213     void executeUndoRedo(uint32_t action, bool& result);
1214
1215     // Keyboard handling
1216 #if PLATFORM(MAC)
1217     void interpretQueuedKeyEvent(const EditorState&, bool& handled, Vector<WebCore::KeypressCommand>&);
1218     void executeSavedCommandBySelector(const String& selector, bool& handled);
1219 #endif
1220
1221 #if PLATFORM(GTK)
1222     void getEditorCommandsForKeyEvent(const AtomicString&, Vector<String>&);
1223     void bindAccessibilityTree(const String&);
1224 #endif
1225 #if PLATFORM(EFL)
1226     void getEditorCommandsForKeyEvent(Vector<String>&);
1227 #endif
1228
1229     // Popup Menu.
1230     void showPopupMenu(const WebCore::IntRect& rect, uint64_t textDirection, const Vector<WebPopupItem>& items, int32_t selectedIndex, const PlatformPopupMenuData&);
1231     void hidePopupMenu();
1232 #if PLATFORM(WIN)
1233     void setPopupMenuSelectedIndex(int32_t);
1234 #endif
1235 #if ENABLE(TIZEN_WEBKIT2_POPUP_INTERNAL)
1236     void updatePopupMenu(uint64_t textDirection, const Vector<WebPopupItem>& items, int32_t selectedIndex);
1237 #endif
1238
1239 #if ENABLE(CONTEXT_MENUS)
1240     // Context Menu.
1241     void showContextMenu(const WebCore::IntPoint& menuLocation, const WebHitTestResult::Data&, const Vector<WebContextMenuItemData>&, CoreIPC::ArgumentDecoder*);
1242     void internalShowContextMenu(const WebCore::IntPoint& menuLocation, const WebHitTestResult::Data&, const Vector<WebContextMenuItemData>&, CoreIPC::ArgumentDecoder*);
1243 #endif
1244
1245     // Search popup results
1246     void saveRecentSearches(const String&, const Vector<String>&);
1247     void loadRecentSearches(const String&, Vector<String>&);
1248
1249 #if PLATFORM(MAC)
1250     // Speech.
1251     void getIsSpeaking(bool&);
1252     void speak(const String&);
1253     void stopSpeaking();
1254
1255     // Spotlight.
1256     void searchWithSpotlight(const String&);
1257
1258     // Dictionary.
1259     void didPerformDictionaryLookup(const String&, const DictionaryPopupInfo&);
1260 #endif
1261
1262     // Spelling and grammar.
1263     int64_t spellDocumentTag();
1264 #if USE(UNIFIED_TEXT_CHECKING)
1265     void checkTextOfParagraph(const String& text, uint64_t checkingTypes, Vector<WebCore::TextCheckingResult>& results);
1266 #endif
1267     void checkSpellingOfString(const String& text, int32_t& misspellingLocation, int32_t& misspellingLength);
1268     void checkGrammarOfString(const String& text, Vector<WebCore::GrammarDetail>&, int32_t& badGrammarLocation, int32_t& badGrammarLength);
1269     void spellingUIIsShowing(bool&);
1270     void updateSpellingUIWithMisspelledWord(const String& misspelledWord);
1271     void updateSpellingUIWithGrammarString(const String& badGrammarPhrase, const WebCore::GrammarDetail&);
1272     void getGuessesForWord(const String& word, const String& context, Vector<String>& guesses);
1273 #if PLATFORM(EFL)
1274 #if ENABLE(TIZEN_WEBKIT2_FORM_DATABASE)
1275     void textChangeInTextField(const String&, const String&);
1276 #endif
1277 #if ENABLE(TIZEN_ISF_PORT)
1278     void setInputMethodState(bool, const String&, const String&);
1279 #else
1280     void setInputMethodState(bool active);
1281 #endif
1282 #endif
1283     void learnWord(const String& word);
1284     void ignoreWord(const String& word);
1285
1286     void setFocus(bool focused);
1287     void takeFocus(uint32_t direction);
1288     void setToolTip(const String&);
1289     void setCursor(const WebCore::Cursor&);
1290     void setCursorHiddenUntilMouseMoves(bool);
1291
1292     void didReceiveEvent(uint32_t opaqueType, bool handled);
1293     void stopResponsivenessTimer();
1294
1295     void voidCallback(uint64_t);
1296     void dataCallback(const CoreIPC::DataReference&, uint64_t);
1297     void stringCallback(const String&, uint64_t);
1298     void scriptValueCallback(const CoreIPC::DataReference&, uint64_t);
1299     void computedPagesCallback(const Vector<WebCore::IntRect>&, double totalScaleFactorForPrinting, uint64_t);
1300     void validateCommandCallback(const String&, bool, int, uint64_t);
1301 #if PLATFORM(GTK)
1302     void printFinishedCallback(const WebCore::ResourceError&, uint64_t);
1303 #endif
1304
1305     void focusedFrameChanged(uint64_t frameID);
1306     void frameSetLargestFrameChanged(uint64_t frameID);
1307
1308     void canAuthenticateAgainstProtectionSpaceInFrame(uint64_t frameID, const WebCore::ProtectionSpace&, bool& canAuthenticate);
1309     void didReceiveAuthenticationChallenge(uint64_t frameID, const WebCore::AuthenticationChallenge&, uint64_t challengeID);
1310
1311     void didFinishLoadingDataForCustomRepresentation(const String& suggestedFilename, const CoreIPC::DataReference&);
1312
1313 #if PLATFORM(MAC)
1314     void pluginFocusOrWindowFocusChanged(uint64_t pluginComplexTextInputIdentifier, bool pluginHasFocusAndWindowHasFocus);
1315     void setPluginComplexTextInputState(uint64_t pluginComplexTextInputIdentifier, uint64_t complexTextInputState);
1316 #endif
1317
1318     void clearPendingAPIRequestURL() { m_pendingAPIRequestURL = String(); }
1319     void setPendingAPIRequestURL(const String& pendingAPIRequestURL) { m_pendingAPIRequestURL = pendingAPIRequestURL; }
1320
1321     bool maybeInitializeSandboxExtensionHandle(const WebCore::KURL&, SandboxExtension::Handle&);
1322
1323 #if PLATFORM(MAC)
1324     void substitutionsPanelIsShowing(bool&);
1325 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
1326     void showCorrectionPanel(int32_t panelType, const WebCore::FloatRect& boundingBoxOfReplacedString, const String& replacedString, const String& replacementString, const Vector<String>& alternativeReplacementStrings);
1327     void dismissCorrectionPanel(int32_t reason);
1328     void dismissCorrectionPanelSoon(int32_t reason, String& result);
1329     void recordAutocorrectionResponse(int32_t responseType, const String& replacedString, const String& replacementString);
1330 #endif // __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
1331
1332 #if USE(DICTATION_ALTERNATIVES)
1333     void showDictationAlternativeUI(const WebCore::FloatRect& boundingBoxOfDictatedText, uint64_t dictationContext);
1334     void dismissDictationAlternativeUI();
1335     void removeDictationAlternatives(uint64_t dictationContext);
1336     void dictationAlternatives(uint64_t dictationContext, Vector<String>& result);
1337 #endif
1338 #endif // PLATFORM(MAC)
1339
1340     void clearLoadDependentCallbacks();
1341
1342     void performDragControllerAction(DragControllerAction, WebCore::DragData*, const String& dragStorageName, const SandboxExtension::Handle&, const SandboxExtension::HandleArray&);
1343
1344     void updateBackingStoreDiscardableState();
1345
1346 #if PLATFORM(WIN)
1347     void scheduleChildWindowGeometryUpdate(const WindowGeometry&);
1348 #endif
1349
1350     void setRenderTreeSize(uint64_t treeSize) { m_renderTreeSize = treeSize; }
1351
1352 #if PLUGIN_ARCHITECTURE(X11)
1353     void createPluginContainer(uint64_t& windowID);
1354     void windowedPluginGeometryDidChange(const WebCore::IntRect& frameRect, const WebCore::IntRect& clipRect, uint64_t windowID);
1355 #endif
1356
1357     void processNextQueuedWheelEvent();
1358     void sendWheelEvent(const WebWheelEvent&);
1359
1360 #if ENABLE(TIZEN_CERTIFICATE_HANDLING)
1361     void decidePolicyForCertificateError(const String& url, const String& certificate, int error, PassRefPtr<Messages::WebPageProxy::DecidePolicyForCertificateError::DelayedReply>);
1362 #endif
1363
1364 #if ENABLE(TIZEN_WEBKIT2_ROTATION_WHILE_JAVASCRIPT_POPUP)
1365     bool isWaitingForJavaScriptPopupReply();
1366 #endif
1367
1368 #if ENABLE(TIZEN_LINK_MAGNIFIER)
1369     void didGetLinkMagnifierRect(const WebCore::IntPoint&, const WebCore::IntRect&);
1370 #endif
1371
1372     PageClient* m_pageClient;
1373     WebLoaderClient m_loaderClient;
1374     WebPolicyClient m_policyClient;
1375     WebFormClient m_formClient;
1376     WebResourceLoadClient m_resourceLoadClient;
1377     WebUIClient m_uiClient;
1378     WebFindClient m_findClient;
1379     WebFindMatchesClient m_findMatchesClient;
1380 #if ENABLE(CONTEXT_MENUS)
1381     WebPageContextMenuClient m_contextMenuClient;
1382 #endif
1383 #if OS(TIZEN)
1384     WebTizenClient m_tizenClient;
1385 #endif
1386
1387     OwnPtr<DrawingAreaProxy> m_drawingArea;
1388     RefPtr<WebProcessProxy> m_process;
1389     RefPtr<WebPageGroup> m_pageGroup;
1390     RefPtr<WebFrameProxy> m_mainFrame;
1391     RefPtr<WebFrameProxy> m_focusedFrame;
1392     RefPtr<WebFrameProxy> m_frameSetLargestFrame;
1393
1394     String m_userAgent;
1395     String m_applicationNameForUserAgent;
1396     String m_customUserAgent;
1397     String m_customTextEncodingName;
1398
1399 #if ENABLE(INSPECTOR)
1400     RefPtr<WebInspectorProxy> m_inspector;
1401 #endif
1402
1403 #if ENABLE(FULLSCREEN_API)
1404     RefPtr<WebFullScreenManagerProxy> m_fullScreenManager;
1405 #endif
1406
1407 #if ENABLE(TIZEN_SUPPORT_WEBAPP_META_TAG)
1408     HashMap<uint64_t, RefPtr<BooleanCallback> > m_booleanCallbacks;
1409 #endif
1410     HashMap<uint64_t, RefPtr<VoidCallback> > m_voidCallbacks;
1411     HashMap<uint64_t, RefPtr<DataCallback> > m_dataCallbacks;
1412     HashMap<uint64_t, RefPtr<StringCallback> > m_stringCallbacks;
1413     HashSet<uint64_t> m_loadDependentStringCallbackIDs;
1414     HashMap<uint64_t, RefPtr<ScriptValueCallback> > m_scriptValueCallbacks;
1415     HashMap<uint64_t, RefPtr<ComputedPagesCallback> > m_computedPagesCallbacks;
1416     HashMap<uint64_t, RefPtr<ValidateCommandCallback> > m_validateCommandCallbacks;
1417 #if PLATFORM(GTK)
1418     HashMap<uint64_t, RefPtr<PrintFinishedCallback> > m_printFinishedCallbacks;
1419 #endif
1420 #if ENABLE(TIZEN_WEB_STORAGE)
1421     HashMap<uint64_t, RefPtr<WebStorageQuotaCallback> > m_quotaCallbacks;
1422 #endif
1423
1424     HashSet<WebEditCommandProxy*> m_editCommandSet;
1425
1426 #if PLATFORM(MAC)
1427     HashSet<String> m_knownKeypressCommandNames;
1428 #endif
1429
1430     RefPtr<WebPopupMenuProxy> m_activePopupMenu;
1431     RefPtr<WebContextMenuProxy> m_activeContextMenu;
1432     WebHitTestResult::Data m_activeContextMenuHitTestResultData;
1433     RefPtr<WebOpenPanelResultListenerProxy> m_openPanelResultListener;
1434     GeolocationPermissionRequestManagerProxy m_geolocationPermissionRequestManager;
1435     NotificationPermissionRequestManagerProxy m_notificationPermissionRequestManager;
1436 #if ENABLE(TIZEN_MEDIA_STREAM)
1437     UserMediaPermissionRequestManagerProxy m_userMediaPermissionRequestManager;
1438 #endif
1439     double m_estimatedProgress;
1440
1441     // Whether the web page is contained in a top-level window.
1442     bool m_isInWindow;
1443
1444     // Whether the page is visible; if the backing view is visible and inserted into a window.
1445     bool m_isVisible;
1446
1447     bool m_canGoBack;
1448     bool m_canGoForward;
1449     RefPtr<WebBackForwardList> m_backForwardList;
1450     
1451     bool m_maintainsInactiveSelection;
1452
1453     String m_toolTip;
1454
1455     String m_urlAtProcessExit;
1456     WebFrameProxy::LoadState m_loadStateAtProcessExit;
1457
1458     EditorState m_editorState;
1459
1460     double m_textZoomFactor;
1461     double m_pageZoomFactor;
1462     double m_pageScaleFactor;
1463     float m_intrinsicDeviceScaleFactor;
1464     float m_customDeviceScaleFactor;
1465
1466     LayerHostingMode m_layerHostingMode;
1467
1468     bool m_drawsBackground;
1469     bool m_drawsTransparentBackground;
1470
1471     bool m_areMemoryCacheClientCallsEnabled;
1472
1473     bool m_useFixedLayout;
1474     WebCore::IntSize m_fixedLayoutSize;
1475
1476     WebCore::Page::Pagination::Mode m_paginationMode;
1477     bool m_paginationBehavesLikeColumns;
1478     double m_pageLength;
1479     double m_gapBetweenPages;
1480
1481     // If the process backing the web page is alive and kicking.
1482     bool m_isValid;
1483
1484     // Whether WebPageProxy::close() has been called on this page.
1485     bool m_isClosed;
1486
1487     // Whether it can run modal child web pages.
1488     bool m_canRunModal;
1489
1490     bool m_isInPrintingMode;
1491     bool m_isPerformingDOMPrintOperation;
1492
1493     bool m_inDecidePolicyForResponse;
1494     bool m_syncMimeTypePolicyActionIsValid;
1495     WebCore::PolicyAction m_syncMimeTypePolicyAction;
1496     uint64_t m_syncMimeTypePolicyDownloadID;
1497
1498     bool m_inDecidePolicyForNavigationAction;
1499     bool m_syncNavigationActionPolicyActionIsValid;
1500     WebCore::PolicyAction m_syncNavigationActionPolicyAction;
1501     uint64_t m_syncNavigationActionPolicyDownloadID;
1502
1503 #if ENABLE(TIZEN_WEBKIT2_ROTATION_WHILE_JAVASCRIPT_POPUP)
1504 #if ENABLE(GESTURE_EVENTS)
1505     Deque<QueuedUIEvents<WebGestureEvent> > m_gestureEventQueue;
1506 #endif
1507     Deque<QueuedUIEvents<NativeWebKeyboardEvent> > m_keyEventQueue;
1508 #else
1509 #if ENABLE(GESTURE_EVENTS)
1510     Deque<WebGestureEvent> m_gestureEventQueue;
1511 #endif
1512     Deque<NativeWebKeyboardEvent> m_keyEventQueue;
1513 #endif
1514     Deque<NativeWebWheelEvent> m_wheelEventQueue;
1515     Deque<OwnPtr<Vector<NativeWebWheelEvent> > > m_currentlyProcessedWheelEvents;
1516
1517     bool m_processingMouseMoveEvent;
1518     OwnPtr<NativeWebMouseEvent> m_nextMouseMoveEvent;
1519     OwnPtr<NativeWebMouseEvent> m_currentlyProcessedMouseDownEvent;
1520
1521 #if ENABLE(TOUCH_EVENTS)
1522     bool m_needTouchEvents;
1523 #if ENABLE(TIZEN_WEBKIT2_ROTATION_WHILE_JAVASCRIPT_POPUP)
1524     Deque<QueuedUIEvents<NativeWebTouchEvent> > m_touchEventQueue;
1525 #else
1526     Deque<QueuedTouchEvents> m_touchEventQueue;
1527 #endif
1528 #endif
1529 #if ENABLE(INPUT_TYPE_COLOR)
1530     RefPtr<WebColorChooserProxy> m_colorChooser;
1531 #if ENABLE(TIZEN_INPUT_COLOR_PICKER) // wait for upstream
1532     RefPtr<WebColorPickerResultListenerProxy> m_colorPickerResultListener;
1533 #endif
1534 #endif
1535 #if ENABLE(TIZEN_CSS_OVERFLOW_SCROLL_ACCELERATION)
1536     bool m_isLoadingFinished;    //if the page loading is finished, then set to true.
1537     bool m_askOverflow;
1538 #endif
1539
1540     uint64_t m_pageID;
1541
1542     bool m_isPageSuspended;
1543
1544 #if PLATFORM(MAC)
1545     bool m_isSmartInsertDeleteEnabled;
1546 #endif
1547
1548 #if PLATFORM(GTK)
1549     String m_accessibilityPlugID;
1550 #endif
1551
1552     int64_t m_spellDocumentTag;
1553     bool m_hasSpellDocumentTag;
1554     unsigned m_pendingLearnOrIgnoreWordMessageCount;
1555
1556     bool m_mainFrameHasCustomRepresentation;
1557
1558 #if ENABLE(DRAG_SUPPORT)
1559     WebCore::DragSession m_currentDragSession;
1560 #endif
1561
1562     String m_pendingAPIRequestURL;
1563
1564     bool m_mainFrameHasHorizontalScrollbar;
1565     bool m_mainFrameHasVerticalScrollbar;
1566
1567     // Whether horizontal wheel events can be handled directly for swiping purposes.
1568     bool m_canShortCircuitHorizontalWheelEvents;
1569
1570     bool m_mainFrameIsPinnedToLeftSide;
1571     bool m_mainFrameIsPinnedToRightSide;
1572
1573 #if PLATFORM(EFL)
1574     WebCore::IntPoint m_scrollPosition;
1575     WebCore::IntSize m_contentsSize;
1576 #endif
1577     unsigned m_pageCount;
1578
1579     WebCore::IntRect m_visibleScrollerThumbRect;
1580
1581     uint64_t m_renderTreeSize;
1582
1583     static WKPageDebugPaintFlags s_debugPaintFlags;
1584
1585     bool m_shouldSendEventsSynchronously;
1586
1587     bool m_suppressVisibilityUpdates;
1588
1589     float m_mediaVolume;
1590
1591 #if PLATFORM(QT)
1592     WTF::HashSet<RefPtr<QtRefCountedNetworkRequestData> > m_applicationSchemeRequests;
1593 #endif
1594
1595 #if ENABLE(PAGE_VISIBILITY_API)
1596     WebCore::PageVisibilityState m_visibilityState;
1597 #endif
1598
1599 #if OS(TIZEN)
1600     RefPtr<Messages::WebPageProxy::RunJavaScriptAlert::DelayedReply> m_alertReply;
1601     RefPtr<Messages::WebPageProxy::RunJavaScriptConfirm::DelayedReply> m_confirmReply;
1602     RefPtr<Messages::WebPageProxy::RunJavaScriptPrompt::DelayedReply> m_promptReply;
1603 #if ENABLE(TIZEN_SUPPORT_BEFORE_UNLOAD_CONFIRM_PANEL)
1604     RefPtr<Messages::WebPageProxy::RunBeforeUnloadConfirmPanel::DelayedReply> m_beforeUnloadConfirmPanelReply;
1605 #endif
1606 #endif
1607
1608 #if ENABLE(TIZEN_CERTIFICATE_HANDLING)
1609     RefPtr<Messages::WebPageProxy::DecidePolicyForCertificateError::DelayedReply> m_allowedReply;
1610 #endif
1611
1612 #if ENABLE(TIZEN_REDUCE_KEY_LAGGING)
1613     Ecore_Timer* m_pageContentResumeTimer;
1614 #endif
1615
1616 #if ENABLE(TIZEN_ISF_PORT)
1617     bool m_didCancelCompositionFromWebProcess;
1618 #endif
1619 };
1620
1621 } // namespace WebKit
1622
1623 #endif // WebPageProxy_h