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