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