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