2 * Copyright (C) 2010, 2011 Apple Inc. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
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.
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.
29 #include "APIObject.h"
30 #include "DrawingArea.h"
31 #include "FindController.h"
32 #include "GeolocationPermissionRequestManager.h"
33 #include "ImageOptions.h"
34 #include "ImmutableArray.h"
35 #if ENABLE(CONTEXT_MENUS)
36 #include "InjectedBundlePageContextMenuClient.h"
38 #include "InjectedBundlePageDiagnosticLoggingClient.h"
39 #include "InjectedBundlePageEditorClient.h"
40 #include "InjectedBundlePageFormClient.h"
41 #include "InjectedBundlePageFullScreenClient.h"
42 #include "InjectedBundlePageLoaderClient.h"
43 #include "InjectedBundlePagePolicyClient.h"
44 #include "InjectedBundlePageResourceLoadClient.h"
45 #include "InjectedBundlePageUIClient.h"
46 #include "MessageSender.h"
47 #include "TapHighlightController.h"
49 #include "SandboxExtension.h"
50 #include "ShareableBitmap.h"
51 #include "WebHitTestResult.h"
52 #include "WebUndoStep.h"
53 #include <WebCore/DictationAlternative.h>
54 #include <WebCore/DragData.h>
55 #include <WebCore/Editor.h>
56 #include <WebCore/FrameLoaderTypes.h>
57 #include <WebCore/IntRect.h>
58 #include <WebCore/Page.h>
59 #if ENABLE(PAGE_VISIBILITY_API)
60 #include <WebCore/PageVisibilityState.h>
62 #include <WebCore/PlatformScreen.h>
63 #include <WebCore/ScrollTypes.h>
64 #include <WebCore/WebCoreKeyboardUIMode.h>
65 #include <wtf/HashMap.h>
66 #include <wtf/OwnPtr.h>
67 #include <wtf/PassRefPtr.h>
68 #include <wtf/RefPtr.h>
69 #include <wtf/text/WTFString.h>
72 #include "ArgumentCodersQt.h"
73 #include "QtNetworkAccessManager.h"
74 #include "QtNetworkReply.h"
75 #include "QtNetworkReplyData.h"
76 #include "QtNetworkRequestData.h"
77 #include <QNetworkReply>
78 #include <QNetworkRequest>
82 #include "ArgumentCodersGtk.h"
83 #include "WebPageAccessibilityObject.h"
84 #include "WebPrintOperationGtk.h"
87 #if ENABLE(TOUCH_EVENTS)
88 #include <WebCore/PlatformTouchEvent.h>
92 #include "DictionaryPopupInfo.h"
93 #include "LayerHostingContext.h"
94 #include <wtf/RetainPtr.h>
95 OBJC_CLASS NSDictionary;
97 OBJC_CLASS WKAccessibilityWebPageObject;
100 #if ENABLE(TIZEN_PAGE_VISIBILITY_API)
101 #include <WebCore/PageVisibilityState.h>
104 #if ENABLE(TIZEN_CUSTOM_HEADERS)
105 #include <WebCore/HTTPHeaderMap.h>
108 #if ENABLE(TIZEN_DATALIST_ELEMENT)
109 #include "HTMLDataListElement.h"
112 #if ENABLE(TIZEN_DRAG_SUPPORT)
113 #include "ArgumentCodersTizen.h"
116 #if ENABLE(TIZEN_SCREEN_READER)
117 #include "ScreenReader.h"
120 #if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
121 #include "EditorState.h"
125 class ArgumentDecoder;
131 class GraphicsContext;
134 class HTMLPlugInElement;
139 class ResourceRequest;
141 class VisibleSelection;
142 struct KeypressCommand;
144 #if ENABLE(TIZEN_DATALIST_ELEMENT)
145 class HTMLDataListElement;
152 class InjectedBundleBackForwardList;
153 class NotificationPermissionRequestManager;
157 class WebColorChooser;
158 class WebContextMenu;
159 class WebContextMenuItemData;
162 class WebFullScreenManager;
165 class WebInspectorClient;
166 class WebKeyboardEvent;
168 class WebNotificationClient;
169 class WebOpenPanelResultListener;
170 class WebPageGroupProxy;
173 struct AttributedString;
176 struct WebPageCreationParameters;
177 struct WebPreferencesStore;
179 #if ENABLE(WEB_INTENTS)
183 #if ENABLE(GESTURE_EVENTS)
184 class WebGestureEvent;
187 #if ENABLE(TOUCH_EVENTS)
191 #if ENABLE(TIZEN_MEDIA_STREAM)
192 class UserMediaPermissionRequestManager;
193 class WebUserMediaClient;
196 #if ENABLE(TIZEN_ISF_PORT)
197 class NativeWebKeyboardEvent;
200 KeyPressCommandSetComposition,
201 KeyPressCommandConfirmComposition,
202 KeyPressCommandDeleteText
205 struct KeyPressCommand {
206 KeyPressCommand(int type) : type(type) { }
211 struct SetCompositionKeyPressCommand : public KeyPressCommand {
212 SetCompositionKeyPressCommand(const String& compositionString, const Vector<WebCore::CompositionUnderline>& underlines, uint64_t cursorPosition)
213 : KeyPressCommand(KeyPressCommandSetComposition), compositionString(compositionString), underlines(underlines), cursorPosition(cursorPosition) { }
215 String compositionString;
216 Vector<WebCore::CompositionUnderline> underlines;
217 uint64_t cursorPosition;
220 struct ConfirmCompositionKeyPressCommand : public KeyPressCommand {
221 ConfirmCompositionKeyPressCommand(const String& compositionString)
222 : KeyPressCommand(KeyPressCommandConfirmComposition), compositionString(compositionString) { }
224 String compositionString;
227 struct DeleteTextKeyPressCommand : public KeyPressCommand {
228 DeleteTextKeyPressCommand(int offset, int count)
229 : KeyPressCommand(KeyPressCommandDeleteText), offset(offset), count(count) { }
236 class WebPage : public APIObject, public CoreIPC::MessageSender<WebPage> {
238 static const Type APIType = TypeBundlePage;
240 static PassRefPtr<WebPage> create(uint64_t pageID, const WebPageCreationParameters&);
243 // Used by MessageSender.
244 CoreIPC::Connection* connection() const;
245 uint64_t destinationID() const { return pageID(); }
249 WebCore::Page* corePage() const { return m_page.get(); }
250 uint64_t pageID() const { return m_pageID; }
252 void setSize(const WebCore::IntSize&);
253 const WebCore::IntSize& size() const { return m_viewSize; }
254 WebCore::IntRect bounds() const { return WebCore::IntRect(WebCore::IntPoint(), size()); }
256 InjectedBundleBackForwardList* backForwardList();
257 DrawingArea* drawingArea() const { return m_drawingArea.get(); }
259 WebPageGroupProxy* pageGroup() const { return m_pageGroup.get(); }
261 void scrollMainFrameIfNotAtMaxScrollPosition(const WebCore::IntSize& scrollOffset);
263 void scrollBy(uint32_t scrollDirection, uint32_t scrollGranularity);
265 void centerSelectionInVisibleArea();
268 #if ENABLE(TIZEN_TEXT_CARET_HANDLING_WK2)
269 bool setCaretPosition(const WebCore::IntPoint&);
270 void getCaretPosition(WebCore::IntRect&);
272 #if ENABLE(TIZEN_ISF_PORT)
273 void didCancelComposition(WebCore::Node*);
275 void prepareKeyDownEvent();
276 void swapKeyPressCommands(Vector<OwnPtr<KeyPressCommand> >&);
278 void getCursorOffset(int&);
279 void getSurroundingTextAndCursorOffset(String&, int&);
280 void getSelectionRect(bool, WebCore::IntRect&);
281 void deleteSurroundingText(int, int);
283 void scrollMainFrameBy(const WebCore::IntSize&);
284 void scrollMainFrameTo(const WebCore::IntPoint&);
285 void createSnapshot(const WebCore::IntRect, float, ShareableBitmap::Handle&);
286 void requestUpdateFormNavigation();
287 void moveFocus(int newIndex);
288 #if ENABLE(TIZEN_MOBILE_WEB_PRINT)
289 void createPagesToPDF(const WebCore::IntSize&, const WebCore::IntSize&, const String&);
291 #if ENABLE(TIZEN_WEBKIT2_HIT_TEST)
292 #if ENABLE(TOUCH_ADJUSTMENT)
293 void hitTestResultAtPoint(const WebCore::IntPoint&, int hitTestMode, const WebCore::IntSize&, WebHitTestResult::Data&);
295 void hitTestResultAtPoint(const WebCore::IntPoint&, int hitTestMode, WebHitTestResult::Data&);
299 #if ENABLE(TIZEN_WEB_STORAGE)
300 void getStorageQuotaBytes(uint64_t callbackID);
301 void setStorageQuotaBytes(uint32_t quota);
304 #if ENABLE(TIZEN_CLIPBOARD) || ENABLE(TIZEN_PASTEBOARD)
305 void setClipboardDataForPaste(const String& data, const String& type);
308 void suspendJavaScriptAndResources();
309 void resumeJavaScriptAndResources();
311 void suspendAnimations();
312 void resumeAnimations();
314 #if ENABLE(TIZEN_SYNC_REQUEST_ANIMATION_FRAME)
315 void suspendAnimationController();
316 void resumeAnimationController();
318 #if ENABLE(TIZEN_PLUGIN_SUSPEND_RESUME)
319 void suspendPlugin();
323 #if ENABLE(TIZEN_REMOTE_WEB_INSPECTOR)
324 void startInspectorServer(uint32_t port, uint32_t& assignedPort);
325 void stopInspectorServer(bool& result);
327 #if ENABLE(TIZEN_ORIENTATION_EVENTS)
328 void sendOrientationChangeEvent(int orientation);
331 #if ENABLE(INSPECTOR)
332 WebInspector* inspector();
335 #if ENABLE(FULLSCREEN_API)
336 WebFullScreenManager* fullScreenManager();
339 // -- Called by the DrawingArea.
340 // FIXME: We could genericize these into a DrawingArea client interface. Would that be beneficial?
341 void drawRect(WebCore::GraphicsContext&, const WebCore::IntRect&);
342 #if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
343 enum HandleMovingDirection {
344 HandleMovingDirectionNone = 0,
345 HandleMovingDirectionNormal,
346 HandleMovingDirectionReverse,
348 void selectClosestWord(const WebCore::IntPoint&, bool& result);
349 void setLeftSelection(const WebCore::IntPoint&, const int direction, int& result);
350 void setRightSelection(const WebCore::IntPoint&, const int direction, int& result);
351 void getSelectionHandlers(WebCore::IntRect& leftRect, WebCore::IntRect& rightRect);
352 void getSelectionText(String& result);
353 void selectionRangeClear(bool& result);
354 void selectionClearAllSelection(WebCore::Frame* frame);
355 void scrollContentByCharacter(const WebCore::IntPoint&, int direction, bool& result);
356 void scrollContentByLine(const WebCore::IntPoint&, int direction, bool& result);
359 #if ENABLE(TIZEN_OFFLINE_PAGE_SAVE)
360 void startOfflinePageSave(String subresourceFolderName);
363 #if ENABLE(TIZEN_WEBKIT2_CONTEXT_MENU_TEXT_SELECTION_MODE)
364 void selectLink(WebCore::IntPoint positionForSelection, bool& result);
367 void drawPageOverlay(WebCore::GraphicsContext&, const WebCore::IntRect&);
368 void layoutIfNeeded();
370 // -- Called from WebCore clients.
372 bool handleEditingKeyboardEvent(WebCore::KeyboardEvent*, bool saveCommands);
374 bool handleEditingKeyboardEvent(WebCore::KeyboardEvent*);
378 String userAgent() const { return m_userAgent; }
379 WebCore::IntRect windowResizerRect() const;
380 WebCore::KeyboardUIMode keyboardUIMode();
382 WebUndoStep* webUndoStep(uint64_t);
383 void addWebUndoStep(uint64_t, WebUndoStep*);
384 void removeWebEditCommand(uint64_t);
385 bool isInRedo() const { return m_isInRedo; }
387 void setActivePopupMenu(WebPopupMenu*);
389 #if ENABLE(INPUT_TYPE_COLOR)
390 WebColorChooser* activeColorChooser() const { return m_activeColorChooser; }
391 void setActiveColorChooser(WebColorChooser*);
392 void didChooseColor(const WebCore::Color&);
393 void didEndColorChooser();
396 WebOpenPanelResultListener* activeOpenPanelResultListener() const { return m_activeOpenPanelResultListener.get(); }
397 void setActiveOpenPanelResultListener(PassRefPtr<WebOpenPanelResultListener>);
399 void cancelForOpenPanel();
402 // -- Called from WebProcess.
403 void didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*);
404 void didReceiveSyncMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*, OwnPtr<CoreIPC::ArgumentEncoder>&);
406 // -- InjectedBundle methods
407 #if ENABLE(CONTEXT_MENUS)
408 void initializeInjectedBundleContextMenuClient(WKBundlePageContextMenuClient*);
410 void initializeInjectedBundleEditorClient(WKBundlePageEditorClient*);
411 void initializeInjectedBundleFormClient(WKBundlePageFormClient*);
412 void initializeInjectedBundleLoaderClient(WKBundlePageLoaderClient*);
413 void initializeInjectedBundlePolicyClient(WKBundlePagePolicyClient*);
414 void initializeInjectedBundleResourceLoadClient(WKBundlePageResourceLoadClient*);
415 void initializeInjectedBundleUIClient(WKBundlePageUIClient*);
416 #if ENABLE(FULLSCREEN_API)
417 void initializeInjectedBundleFullScreenClient(WKBundlePageFullScreenClient*);
419 void initializeInjectedBundleDiagnosticLoggingClient(WKBundlePageDiagnosticLoggingClient*);
421 #if ENABLE(CONTEXT_MENUS)
422 InjectedBundlePageContextMenuClient& injectedBundleContextMenuClient() { return m_contextMenuClient; }
424 InjectedBundlePageEditorClient& injectedBundleEditorClient() { return m_editorClient; }
425 InjectedBundlePageFormClient& injectedBundleFormClient() { return m_formClient; }
426 InjectedBundlePageLoaderClient& injectedBundleLoaderClient() { return m_loaderClient; }
427 InjectedBundlePagePolicyClient& injectedBundlePolicyClient() { return m_policyClient; }
428 InjectedBundlePageResourceLoadClient& injectedBundleResourceLoadClient() { return m_resourceLoadClient; }
429 InjectedBundlePageUIClient& injectedBundleUIClient() { return m_uiClient; }
430 InjectedBundlePageDiagnosticLoggingClient& injectedBundleDiagnosticLoggingClient() { return m_logDiagnosticMessageClient; }
431 #if ENABLE(FULLSCREEN_API)
432 InjectedBundlePageFullScreenClient& injectedBundleFullScreenClient() { return m_fullScreenClient; }
435 void setUnderlayPage(PassRefPtr<WebPage> underlayPage) { m_underlayPage = underlayPage; }
437 bool findStringFromInjectedBundle(const String&, FindOptions);
439 WebFrame* mainWebFrame() const { return m_mainFrame.get(); }
441 WebCore::Frame* mainFrame() const; // May return 0.
442 WebCore::FrameView* mainFrameView() const; // May return 0.
444 PassRefPtr<Plugin> createPlugin(WebFrame*, WebCore::HTMLPlugInElement*, const Plugin::Parameters&);
446 EditorState editorState() const;
447 #if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
448 void setEditorState(const EditorState& editorState) { m_editorState = editorState;}
451 String renderTreeExternalRepresentation() const;
452 uint64_t renderTreeSize() const;
453 void setPaintedObjectsCounterThreshold(uint64_t);
455 void setTracksRepaints(bool);
456 bool isTrackingRepaints() const;
457 void resetTrackedRepaints();
458 PassRefPtr<ImmutableArray> trackedRepaintRects();
460 void executeEditingCommand(const String& commandName, const String& argument);
461 bool isEditingCommandEnabled(const String& commandName);
462 void clearMainFrameName();
465 double textZoomFactor() const;
466 void setTextZoomFactor(double);
467 double pageZoomFactor() const;
468 void setPageZoomFactor(double);
469 void setPageAndTextZoomFactors(double pageZoomFactor, double textZoomFactor);
470 void windowScreenDidChange(uint64_t);
471 void setViewMode(WebCore::Page::ViewMode);
473 void scalePage(double scale, const WebCore::IntPoint& origin);
474 double pageScaleFactor() const;
476 void setUseFixedLayout(bool);
477 bool useFixedLayout() const { return m_useFixedLayout; }
478 void setFixedLayoutSize(const WebCore::IntSize&);
480 void setPaginationMode(uint32_t /* WebCore::Page::Pagination::Mode */);
481 void setPaginationBehavesLikeColumns(bool);
482 void setPageLength(double);
483 void setGapBetweenPages(double);
485 bool drawsBackground() const { return m_drawsBackground; }
486 bool drawsTransparentBackground() const { return m_drawsTransparentBackground; }
489 void stopLoadingFrame(uint64_t frameID);
490 void setDefersLoading(bool deferLoading);
492 #if USE(ACCELERATED_COMPOSITING)
493 void enterAcceleratedCompositingMode(WebCore::GraphicsLayer*);
494 void exitAcceleratedCompositingMode();
497 void addPluginView(PluginView*);
498 void removePluginView(PluginView*);
501 LayerHostingMode layerHostingMode() const { return m_layerHostingMode; }
502 void setLayerHostingMode(LayerHostingMode);
504 bool windowIsVisible() const { return m_windowIsVisible; }
505 void updatePluginsActiveAndFocusedState();
506 const WebCore::IntRect& windowFrameInScreenCoordinates() const { return m_windowFrameInScreenCoordinates; }
507 const WebCore::IntRect& viewFrameInWindowCoordinates() const { return m_viewFrameInWindowCoordinates; }
509 HWND nativeWindow() const { return m_nativeWindow; }
512 bool windowIsFocused() const;
513 bool windowAndWebPageAreFocused() const;
514 void installPageOverlay(PassRefPtr<PageOverlay>);
515 void uninstallPageOverlay(PageOverlay*, bool fadeOut);
516 bool hasPageOverlay() const { return m_pageOverlay; }
517 WebCore::IntPoint screenToWindow(const WebCore::IntPoint&);
518 WebCore::IntRect windowToScreen(const WebCore::IntRect&);
520 PassRefPtr<WebImage> snapshotInViewCoordinates(const WebCore::IntRect&, ImageOptions);
521 PassRefPtr<WebImage> scaledSnapshotInViewCoordinates(const WebCore::IntRect&, double scaleFactor, ImageOptions);
522 PassRefPtr<WebImage> snapshotInDocumentCoordinates(const WebCore::IntRect&, ImageOptions);
523 PassRefPtr<WebImage> scaledSnapshotInDocumentCoordinates(const WebCore::IntRect&, double scaleFactor, ImageOptions);
525 static const WebEvent* currentEvent();
527 FindController& findController() { return m_findController; }
528 #if ENABLE(TOUCH_EVENTS) && PLATFORM(QT)
529 TapHighlightController& tapHighlightController() { return m_tapHighlightController; }
532 #if ENABLE(GEOLOCATION)
533 GeolocationPermissionRequestManager& geolocationPermissionRequestManager() { return m_geolocationPermissionRequestManager; }
536 NotificationPermissionRequestManager* notificationPermissionRequestManager();
537 #if ENABLE(TIZEN_MEDIA_STREAM)
538 UserMediaPermissionRequestManager* userMediaPermissionRequestManager();
540 void pageDidScroll();
541 #if USE(TILED_BACKING_STORE)
542 void pageDidRequestScroll(const WebCore::IntPoint&);
544 #if ENABLE(TIZEN_WEBKIT2_HISTORICAL_RESTORE_VISIBLE_CONTENT_RECT)
545 void pageDidRequestRestoreVisibleContentRect(const WebCore::IntPoint&, float);
548 void setFixedVisibleContentRect(const WebCore::IntRect&);
549 void setResizesToContentsUsingLayoutSize(const WebCore::IntSize&);
550 void resizeToContentsIfNeeded();
551 void sendViewportAttributesChanged();
552 void setViewportSize(const WebCore::IntSize&);
553 WebCore::IntSize viewportSize() const { return m_viewportSize; }
555 #if ENABLE(TIZEN_WEBKIT2_TILED_BACKING_STORE)
556 WebCore::IntSize contentsSize() const;
561 #if ENABLE(CONTEXT_MENUS)
562 WebContextMenu* contextMenu();
565 bool hasLocalDataForURL(const WebCore::KURL&);
566 String cachedResponseMIMETypeForURL(const WebCore::KURL&);
567 String cachedSuggestedFilenameForURL(const WebCore::KURL&);
568 PassRefPtr<WebCore::SharedBuffer> cachedResponseDataForURL(const WebCore::KURL&);
570 static bool canHandleRequest(const WebCore::ResourceRequest&);
572 class SandboxExtensionTracker {
574 ~SandboxExtensionTracker();
578 void beginLoad(WebFrame*, const SandboxExtension::Handle& handle);
579 void willPerformLoadDragDestinationAction(PassRefPtr<SandboxExtension> pendingDropSandboxExtension);
580 void didStartProvisionalLoad(WebFrame*);
581 void didCommitProvisionalLoad(WebFrame*);
582 void didFailProvisionalLoad(WebFrame*);
585 void setPendingProvisionalSandboxExtension(PassRefPtr<SandboxExtension>);
587 RefPtr<SandboxExtension> m_pendingProvisionalSandboxExtension;
588 RefPtr<SandboxExtension> m_provisionalSandboxExtension;
589 RefPtr<SandboxExtension> m_committedSandboxExtension;
592 SandboxExtensionTracker& sandboxExtensionTracker() { return m_sandboxExtensionTracker; }
595 void setThemePath(const String&);
599 void setComposition(const String& text, Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd);
600 void confirmComposition(const String& text, int64_t selectionStart, int64_t selectionLength);
601 void cancelComposition();
605 void registerUIProcessAccessibilityTokens(const CoreIPC::DataReference& elemenToken, const CoreIPC::DataReference& windowToken);
606 WKAccessibilityWebPageObject* accessibilityRemoteObject();
607 WebCore::IntPoint accessibilityPosition() const { return m_accessibilityPosition; }
609 void sendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, const String& textInput);
611 void setComposition(const String& text, Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd, EditorState& newState);
612 void confirmComposition(EditorState& newState);
613 void cancelComposition(EditorState& newState);
614 void insertText(const String& text, uint64_t replacementRangeStart, uint64_t replacementRangeEnd, bool& handled, EditorState& newState);
615 void getMarkedRange(uint64_t& location, uint64_t& length);
616 void getSelectedRange(uint64_t& location, uint64_t& length);
617 void getAttributedSubstringFromRange(uint64_t location, uint64_t length, AttributedString&);
618 void characterIndexForPoint(const WebCore::IntPoint point, uint64_t& result);
619 void firstRectForCharacterRange(uint64_t location, uint64_t length, WebCore::IntRect& resultRect);
620 void executeKeypressCommands(const Vector<WebCore::KeypressCommand>&, bool& handled, EditorState& newState);
621 void readSelectionFromPasteboard(const WTF::String& pasteboardName, bool& result);
622 void getStringSelectionForPasteboard(WTF::String& stringValue);
623 void getDataSelectionForPasteboard(const WTF::String pasteboardType, SharedMemory::Handle& handle, uint64_t& size);
624 void shouldDelayWindowOrderingEvent(const WebKit::WebMouseEvent&, bool& result);
625 void acceptsFirstMouse(int eventNumber, const WebKit::WebMouseEvent&, bool& result);
626 bool performNonEditingBehaviorForSelector(const String&);
627 void insertDictatedText(const String& text, uint64_t replacementRangeStart, uint64_t replacementRangeEnd, const Vector<WebCore::DictationAlternative>& dictationAlternativeLocations, bool& handled, EditorState& newState);
629 void confirmComposition(const String& compositionString);
630 void setComposition(const WTF::String& compositionString, const WTF::Vector<WebCore::CompositionUnderline>& underlines, uint64_t cursorPosition);
631 void firstRectForCharacterInSelectedRange(const uint64_t characterPosition, WebCore::IntRect& resultRect);
632 void getSelectedText(WTF::String&);
634 void gestureWillBegin(const WebCore::IntPoint&, bool& canBeginPanning);
635 void gestureDidScroll(const WebCore::IntSize&);
636 void gestureDidEnd();
638 void confirmComposition(const String& compositionString);
639 void setComposition(const WTF::String& compositionString, const WTF::Vector<WebCore::CompositionUnderline>& underlines, uint64_t cursorPosition);
640 void cancelComposition();
642 void updateAccessibilityTree();
643 bool handleMousePressedEvent(const WebCore::PlatformMouseEvent&);
644 #if USE(TEXTURE_MAPPER_GL)
645 void widgetMapped(int64_t nativeWindowHandle);
649 void setCompositionForTesting(const String& compositionString, uint64_t from, uint64_t length);
650 bool hasCompositionForTesting();
651 void confirmCompositionForTesting(const String& compositionString);
653 // FIXME: This a dummy message, to avoid breaking the build for platforms that don't require
654 // any synchronous messages, and should be removed when <rdar://problem/8775115> is fixed.
658 void performDictionaryLookupForSelection(DictionaryPopupInfo::Type, WebCore::Frame*, const WebCore::VisibleSelection&);
661 void speak(const String&);
664 bool isSmartInsertDeleteEnabled() const { return m_isSmartInsertDeleteEnabled; }
667 #if ENABLE(WEB_INTENTS)
668 void deliverIntentToFrame(uint64_t frameID, const IntentData&);
671 void replaceSelectionWithText(WebCore::Frame*, const String&);
672 void clearSelection();
674 #if ENABLE(DRAG_SUPPORT)
676 void performDragControllerAction(uint64_t action, WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t draggingSourceOperationMask, const WebCore::DragDataMap&, uint32_t flags);
677 #elif PLATFORM(QT) || PLATFORM(GTK)
678 void performDragControllerAction(uint64_t action, WebCore::DragData);
680 #if ENABLE(TIZEN_DRAG_SUPPORT)
681 void performDragControllerAction(uint64_t action, WebCore::DragData);
683 void performDragControllerAction(uint64_t action, WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t draggingSourceOperationMask, const WTF::String& dragStorageName, uint32_t flags, const SandboxExtension::Handle&, const SandboxExtension::HandleArray&);
686 void dragEnded(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t operation);
688 void willPerformLoadDragDestinationAction();
689 void mayPerformUploadDragDestinationAction();
690 #endif // ENABLE(DRAG_SUPPORT)
692 void beginPrinting(uint64_t frameID, const PrintInfo&);
694 void computePagesForPrinting(uint64_t frameID, const PrintInfo&, uint64_t callbackID);
695 #if PLATFORM(MAC) || PLATFORM(WIN)
696 void drawRectToPDF(uint64_t frameID, const PrintInfo&, const WebCore::IntRect&, uint64_t callbackID);
697 void drawPagesToPDF(uint64_t frameID, const PrintInfo&, uint32_t first, uint32_t count, uint64_t callbackID);
699 void drawPagesForPrinting(uint64_t frameID, const PrintInfo&, uint64_t callbackID);
702 #if ENABLE(TIZEN_SUPPORT_WEBAPP_META_TAG)
703 void getWebAppCapable(uint64_t callbackID);
704 void getWebAppIconURL(uint64_t callbackID);
705 void getWebAppIconURLs(uint64_t callbackID);
708 void setMediaVolume(float);
710 bool mainFrameHasCustomRepresentation() const;
712 void didChangeScrollOffsetForMainFrame();
714 void mainFrameDidLayout();
716 bool canRunBeforeUnloadConfirmPanel() const { return m_canRunBeforeUnloadConfirmPanel; }
717 void setCanRunBeforeUnloadConfirmPanel(bool canRunBeforeUnloadConfirmPanel) { m_canRunBeforeUnloadConfirmPanel = canRunBeforeUnloadConfirmPanel; }
719 bool canRunModal() const { return m_canRunModal; }
720 void setCanRunModal(bool canRunModal) { m_canRunModal = canRunModal; }
724 void setDeviceScaleFactor(float);
725 float deviceScaleFactor() const;
727 void setMemoryCacheMessagesEnabled(bool);
729 void forceRepaintWithoutCallback();
731 void unmarkAllMisspellings();
732 void unmarkAllBadGrammar();
733 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
734 void handleAlternativeTextUIResult(const String&);
737 // For testing purpose.
738 void simulateMouseDown(int button, WebCore::IntPoint, int clickCount, WKEventModifiers, double time);
739 void simulateMouseUp(int button, WebCore::IntPoint, int clickCount, WKEventModifiers, double time);
740 void simulateMouseMotion(WebCore::IntPoint, double time);
742 #if ENABLE(CONTEXT_MENUS)
743 void contextMenuShowing() { m_isShowingContextMenu = true; }
747 void registerApplicationScheme(const String& scheme);
748 void applicationSchemeReply(const QtNetworkReplyData&);
749 void receivedApplicationSchemeRequest(const QNetworkRequest&, QtNetworkReply*);
750 void setUserScripts(const Vector<String>&);
752 void wheelEvent(const WebWheelEvent&);
753 #if ENABLE(GESTURE_EVENTS)
754 void gestureEvent(const WebGestureEvent&);
757 void numWheelEventHandlersChanged(unsigned);
758 void recomputeShortCircuitHorizontalWheelEventsState();
760 bool willGoToBackForwardItemCallbackEnabled() const { return m_willGoToBackForwardItemCallbackEnabled; }
762 #if ENABLE(PAGE_VISIBILITY_API)
763 void setVisibilityState(int visibilityState, bool isInitialState);
766 #if ENABLE(TIZEN_INPUT_TAG_EXTENSION) || ENABLE(TIZEN_WEBKIT2_FORM_DATABASE)
767 void setFocusedInputElementValue(const String& inputValue);
768 void getFocusedInputElementValue(String& inputValue);
771 #if ENABLE(TIZEN_DATALIST_ELEMENT)
772 void getFocusedInputElementDataList(Vector<String>&);
775 #if ENABLE(TIZEN_CSS_OVERFLOW_SCROLL_ACCELERATION)
776 void scrollOverflow(const WebCore::FloatPoint&, bool& scrolled);
777 void setPressedNodeAtPoint(const WebCore::IntPoint&, bool checkOverflowLayer, bool& pressed, uint32_t& id);
780 #if ENABLE(TIZEN_CSS_OVERFLOW_SCROLL_ACCELERATION_ON_UI_SIDE)
781 void scrollOverflowWithTrajectoryVector(const WebCore::FloatPoint&);
784 #if ENABLE(TIZEN_CUSTOM_HEADERS)
785 void addCustomHeader(const String& name, const String& value);
786 void removeCustomHeader(const String& name);
787 void clearCustomHeaders();
788 WebCore::HTTPHeaderMap customHeaders();
791 #if PLATFORM(GTK) && USE(TEXTURE_MAPPER_GL)
792 uint64_t nativeWindowHandle() { return m_nativeWindowHandle; }
795 #if ENABLE(TIZEN_MULTIPLE_SELECT)
796 void didChangeSelectedIndexForActivePopupMenuMultiple(Vector<int32_t>);
799 #if ENABLE(TIZEN_LINK_MAGNIFIER)
800 void getLinkMagnifierRect(const WebCore::IntPoint&, const WebCore::IntSize&);
803 #if ENABLE(TIZEN_SCREEN_READER)
804 void moveScreenReaderFocus(bool, bool&);
805 void moveScreenReaderFocusByPoint(const WebCore::IntPoint&);
806 void clearScreenReaderFocus();
807 void raiseTapEvent(const WebCore::IntPoint&, const WebCore::IntPoint&, bool&);
808 void adjustScreenReaderFocusedObjectValue(bool);
809 void recalcScreenReaderFocusRect();
810 void updateScreenReaderFocus(WebCore::RenderObject*);
811 void clearScreenReader();
814 #if ENABLE(TIZEN_SCREEN_READER) || ENABLE(TIZEN_FOCUS_UI) || ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
815 WebCore::IntRect nodeRect(WebCore::Node*) const;
818 #if ENABLE(TIZEN_SCREEN_READER) || ENABLE(TIZEN_FOCUS_UI)
819 void didChangeFocusedRect(WebCore::Node*);
822 #if ENABLE(TIZEN_WEBKIT2_POPUP_INTERNAL)
823 void notifyTransitionToCommitted(bool);
826 #if ENABLE(TIZEN_CSP)
827 void setContentSecurityPolicy(const String& policy, uint32_t headerType);
830 #if ENABLE(TIZEN_INDEXED_DATABASE)
831 void setIndexedDatabaseDirectory(const String& path);
834 #if ENABLE(TIZEN_WEB_STORAGE)
835 void setLocalStorageDirectory(const String& path);
838 #if ENABLE(TIZEN_USE_SETTINGS_FONT)
839 void useSettingsFont();
843 void didChangeContents(const WebCore::IntRect&);
846 #if ENABLE(TIZEN_FOCUS_UI)
847 void setSpatialNavigationEnabled(bool);
851 WebPage(uint64_t pageID, const WebPageCreationParameters&);
853 virtual Type type() const { return APIType; }
855 void platformInitialize();
857 void didReceiveWebPageMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*);
858 void didReceiveSyncWebPageMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*, OwnPtr<CoreIPC::ArgumentEncoder>&);
861 static const char* interpretKeyEvent(const WebCore::KeyboardEvent*);
863 bool performDefaultBehaviorForKeyEvent(const WebKeyboardEvent&);
866 bool executeKeypressCommandsInternal(const Vector<WebCore::KeypressCommand>&, WebCore::KeyboardEvent*);
869 String sourceForFrame(WebFrame*);
871 void loadData(PassRefPtr<WebCore::SharedBuffer>, const String& MIMEType, const String& encodingName, const WebCore::KURL& baseURL, const WebCore::KURL& failingURL);
873 bool platformHasLocalDataForURL(const WebCore::KURL&);
877 void loadURL(const String&, const SandboxExtension::Handle&);
878 void loadURLRequest(const WebCore::ResourceRequest&, const SandboxExtension::Handle&);
879 void loadHTMLString(const String& htmlString, const String& baseURL);
880 void loadAlternateHTMLString(const String& htmlString, const String& baseURL, const String& unreachableURL);
881 void loadPlainTextString(const String&);
882 void loadWebArchiveData(const CoreIPC::DataReference&);
884 void loadContentsbyMimeType(const CoreIPC::DataReference&, const String& mimeType, const String& encoding, const String& baseURL);
886 void linkClicked(const String& url, const WebMouseEvent&);
887 void reload(bool reloadFromOrigin, const SandboxExtension::Handle&);
888 void goForward(uint64_t);
889 void goBack(uint64_t);
890 void goToBackForwardItem(uint64_t);
891 void tryRestoreScrollPosition();
892 void setActive(bool);
893 void setFocused(bool);
894 void setInitialFocus(bool forward, bool isKeyboardEventValid, const WebKeyboardEvent&);
895 void setWindowResizerSize(const WebCore::IntSize&);
896 void setIsInWindow(bool);
897 void validateCommand(const String&, uint64_t);
898 void executeEditCommand(const String&);
900 void executeEditCommandWithArgument(const String& command, const String& argument);
903 void mouseEvent(const WebMouseEvent&);
904 void mouseEventSyncForTesting(const WebMouseEvent&, bool&);
905 void wheelEventSyncForTesting(const WebWheelEvent&, bool&);
906 #if ENABLE(TIZEN_ISF_PORT)
907 void keyEvent(const NativeWebKeyboardEvent&);
909 void keyEvent(const WebKeyboardEvent&);
911 void keyEventSyncForTesting(const WebKeyboardEvent&, bool&);
912 #if ENABLE(TOUCH_EVENTS)
913 void touchEvent(const WebTouchEvent&);
914 void touchEventSyncForTesting(const WebTouchEvent&, bool& handled);
916 void highlightPotentialActivation(const WebCore::IntPoint&, const WebCore::IntSize& area);
919 #if ENABLE(CONTEXT_MENUS)
920 void contextMenuHidden() { m_isShowingContextMenu = false; }
923 static void scroll(WebCore::Page*, WebCore::ScrollDirection, WebCore::ScrollGranularity);
924 static void logicalScroll(WebCore::Page*, WebCore::ScrollLogicalDirection, WebCore::ScrollGranularity);
926 uint64_t restoreSession(const SessionState&);
927 void restoreSessionAndNavigateToCurrentItem(const SessionState&);
929 void didRemoveBackForwardItem(uint64_t);
931 void setWillGoToBackForwardItemCallbackEnabled(bool enabled) { m_willGoToBackForwardItemCallbackEnabled = enabled; }
933 void setDrawsBackground(bool);
934 void setDrawsTransparentBackground(bool);
936 void viewWillStartLiveResize();
937 void viewWillEndLiveResize();
939 void getContentsAsString(uint64_t callbackID);
941 void getContentsAsMHTMLData(uint64_t callbackID, bool useBinaryEncoding);
943 void getMainResourceDataOfFrame(uint64_t frameID, uint64_t callbackID);
944 void getResourceDataFromFrame(uint64_t frameID, const String& resourceURL, uint64_t callbackID);
945 void getRenderTreeExternalRepresentation(uint64_t callbackID);
946 void getSelectionOrContentsAsString(uint64_t callbackID);
947 void getSourceForFrame(uint64_t frameID, uint64_t callbackID);
948 void getWebArchiveOfFrame(uint64_t frameID, uint64_t callbackID);
949 void runJavaScriptInMainFrame(const String&, uint64_t callbackID);
950 void forceRepaint(uint64_t callbackID);
952 void preferencesDidChange(const WebPreferencesStore&);
953 void platformPreferencesDidChange(const WebPreferencesStore&);
954 void updatePreferences(const WebPreferencesStore&);
956 void didReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, uint32_t policyAction, uint64_t downloadID);
957 void setUserAgent(const String&);
958 void setCustomTextEncodingName(const String&);
959 void suspendActiveDOMObjectsAndAnimations();
960 void resumeActiveDOMObjectsAndAnimations();
963 void performDictionaryLookupAtLocation(const WebCore::FloatPoint&);
964 void performDictionaryLookupForRange(DictionaryPopupInfo::Type, WebCore::Frame*, WebCore::Range*, NSDictionary *options);
966 void setWindowIsVisible(bool windowIsVisible);
967 void windowAndViewFramesChanged(const WebCore::IntRect& windowFrameInScreenCoordinates, const WebCore::IntRect& viewFrameInWindowCoordinates, const WebCore::IntPoint& accessibilityViewCoordinates);
969 RetainPtr<PDFDocument> pdfDocumentForPrintingFrame(WebCore::Frame*);
970 void computePagesForPrintingPDFDocument(uint64_t frameID, const PrintInfo&, Vector<WebCore::IntRect>& resultPageRects);
971 void drawRectToPDFFromPDFDocument(CGContextRef, PDFDocument *, const PrintInfo&, const WebCore::IntRect&);
972 void drawPagesToPDFFromPDFDocument(CGContextRef, PDFDocument *, const PrintInfo&, uint32_t first, uint32_t count);
975 void unapplyEditCommand(uint64_t commandID);
976 void reapplyEditCommand(uint64_t commandID);
977 void didRemoveEditCommand(uint64_t commandID);
979 void findString(const String&, uint32_t findOptions, uint32_t maxMatchCount);
980 void findStringMatches(const String&, uint32_t findOptions, uint32_t maxMatchCount);
981 void getImageForFindMatch(uint32_t matchIndex);
982 void selectFindMatch(uint32_t matchIndex);
984 void countStringMatches(const String&, uint32_t findOptions, uint32_t maxMatchCount);
986 #if PLATFORM(QT) || OS(TIZEN)
987 void findZoomableAreaForPoint(const WebCore::IntPoint&, const WebCore::IntSize& area);
990 void didChangeSelectedIndexForActivePopupMenu(int32_t newIndex);
991 void setTextForActivePopupMenu(int32_t index);
994 void failedToShowPopupMenu();
997 void hidePopupMenu();
998 void selectedIndex(int32_t newIndex);
1001 void didChooseFilesForOpenPanel(const Vector<String>&);
1002 void didCancelForOpenPanel();
1003 #if ENABLE(WEB_PROCESS_SANDBOX)
1004 void extendSandboxForFileFromOpenPanel(const SandboxExtension::Handle&);
1007 void didReceiveGeolocationPermissionDecision(uint64_t geolocationID, bool allowed);
1009 void didReceiveNotificationPermissionDecision(uint64_t notificationID, bool allowed);
1010 #if ENABLE(TIZEN_MEDIA_STREAM)
1011 void didReceiveUserMediaPermissionDecision(uint64_t userMediaID, bool allowed);
1014 void advanceToNextMisspelling(bool startBeforeSelection);
1015 void changeSpellingToWord(const String& word);
1017 void uppercaseWord();
1018 void lowercaseWord();
1019 void capitalizeWord();
1023 void setSmartInsertDeleteEnabled(bool isSmartInsertDeleteEnabled) { m_isSmartInsertDeleteEnabled = isSmartInsertDeleteEnabled; }
1026 #if ENABLE(CONTEXT_MENUS)
1027 void didSelectItemFromActiveContextMenu(const WebContextMenuItemData&);
1030 void changeSelectedIndex(int32_t index);
1031 void setCanStartMediaTimerFired();
1033 static bool platformCanHandleRequest(const WebCore::ResourceRequest&);
1034 #if ENABLE(TIZEN_NATIVE_MEMORY_SNAPSHOT)
1035 void dumpMemorySnapshot();
1037 OwnPtr<WebCore::Page> m_page;
1038 RefPtr<WebFrame> m_mainFrame;
1039 RefPtr<InjectedBundleBackForwardList> m_backForwardList;
1041 RefPtr<WebPageGroupProxy> m_pageGroup;
1045 WebCore::IntSize m_viewSize;
1046 OwnPtr<DrawingArea> m_drawingArea;
1048 HashSet<PluginView*> m_pluginViews;
1050 bool m_useFixedLayout;
1052 bool m_drawsBackground;
1053 bool m_drawsTransparentBackground;
1059 #if ENABLE(TIZEN_CUSTOM_HEADERS)
1060 WebCore::HTTPHeaderMap m_customHeaders;
1064 // Whether the containing window is visible or not.
1065 bool m_windowIsVisible;
1067 // Whether smart insert/delete is enabled or not.
1068 bool m_isSmartInsertDeleteEnabled;
1070 // The frame of the containing window in screen coordinates.
1071 WebCore::IntRect m_windowFrameInScreenCoordinates;
1073 // The frame of the view in window coordinates.
1074 WebCore::IntRect m_viewFrameInWindowCoordinates;
1076 // The accessibility position of the view.
1077 WebCore::IntPoint m_accessibilityPosition;
1079 // The layer hosting mode.
1080 LayerHostingMode m_layerHostingMode;
1082 RetainPtr<WKAccessibilityWebPageObject> m_mockAccessibilityElement;
1084 WebCore::KeyboardEvent* m_keyboardEventBeingInterpreted;
1087 // Our view's window (in the UI process).
1088 HWND m_nativeWindow;
1090 RefPtr<WebCore::Node> m_gestureTargetNode;
1092 WebPageAccessibilityObject* m_accessibilityObject;
1094 #if USE(TEXTURE_MAPPER_GL)
1095 // Our view's window in the UI process.
1096 uint64_t m_nativeWindowHandle;
1100 WebCore::RunLoop::Timer<WebPage> m_setCanStartMediaTimer;
1102 HashMap<uint64_t, RefPtr<WebUndoStep> > m_undoStepMap;
1104 WebCore::IntSize m_windowResizerSize;
1106 #if ENABLE(CONTEXT_MENUS)
1107 InjectedBundlePageContextMenuClient m_contextMenuClient;
1109 InjectedBundlePageEditorClient m_editorClient;
1110 InjectedBundlePageFormClient m_formClient;
1111 InjectedBundlePageLoaderClient m_loaderClient;
1112 InjectedBundlePagePolicyClient m_policyClient;
1113 InjectedBundlePageResourceLoadClient m_resourceLoadClient;
1114 InjectedBundlePageUIClient m_uiClient;
1115 #if ENABLE(FULLSCREEN_API)
1116 InjectedBundlePageFullScreenClient m_fullScreenClient;
1118 InjectedBundlePageDiagnosticLoggingClient m_logDiagnosticMessageClient;
1120 #if USE(TILED_BACKING_STORE)
1121 WebCore::IntSize m_viewportSize;
1124 FindController m_findController;
1125 #if ENABLE(TOUCH_EVENTS) && PLATFORM(QT)
1126 TapHighlightController m_tapHighlightController;
1128 RefPtr<PageOverlay> m_pageOverlay;
1130 RefPtr<WebPage> m_underlayPage;
1132 #if ENABLE(INSPECTOR)
1133 RefPtr<WebInspector> m_inspector;
1135 #if ENABLE(FULLSCREEN_API)
1136 RefPtr<WebFullScreenManager> m_fullScreenManager;
1138 RefPtr<WebPopupMenu> m_activePopupMenu;
1139 #if ENABLE(CONTEXT_MENUS)
1140 RefPtr<WebContextMenu> m_contextMenu;
1142 #if ENABLE(INPUT_TYPE_COLOR)
1143 WebColorChooser* m_activeColorChooser;
1145 RefPtr<WebOpenPanelResultListener> m_activeOpenPanelResultListener;
1146 RefPtr<NotificationPermissionRequestManager> m_notificationPermissionRequestManager;
1147 #if ENABLE(TIZEN_MEDIA_STREAM)
1148 RefPtr<UserMediaPermissionRequestManager> m_userMediaPermissionRequestManager;
1151 #if ENABLE(GEOLOCATION)
1152 GeolocationPermissionRequestManager m_geolocationPermissionRequestManager;
1155 OwnPtr<WebCore::PrintContext> m_printContext;
1157 RefPtr<WebPrintOperationGtk> m_printOperation;
1160 SandboxExtensionTracker m_sandboxExtensionTracker;
1163 RefPtr<SandboxExtension> m_pendingDropSandboxExtension;
1164 Vector<RefPtr<SandboxExtension> > m_pendingDropExtensionsForFileUpload;
1166 bool m_canRunBeforeUnloadConfirmPanel;
1169 bool m_isRunningModal;
1171 bool m_cachedMainFrameIsPinnedToLeftSide;
1172 bool m_cachedMainFrameIsPinnedToRightSide;
1173 bool m_canShortCircuitHorizontalWheelEvents;
1174 unsigned m_numWheelEventHandlers;
1176 unsigned m_cachedPageCount;
1178 #if ENABLE(CONTEXT_MENUS)
1179 bool m_isShowingContextMenu;
1182 bool m_willGoToBackForwardItemCallbackEnabled;
1185 bool m_gestureReachedScrollingLimit;
1189 HashMap<String, QtNetworkReply*> m_applicationSchemeReplies;
1191 #if ENABLE(PAGE_VISIBILITY_API)
1192 WebCore::PageVisibilityState m_visibilityState;
1194 #if ENABLE(TIZEN_SYNC_REQUEST_ANIMATION_FRAME)
1195 bool m_suspendedAnimationController;
1198 WebInspectorClient* m_inspectorClient;
1200 #if ENABLE(TIZEN_SCREEN_READER)
1201 OwnPtr<ScreenReader> m_screenReader;
1204 #if ENABLE(TIZEN_SCREEN_READER) || ENABLE(TIZEN_FOCUS_UI)
1205 WebCore::IntRect m_focusedRect;
1208 #if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
1209 EditorState m_editorState;
1212 #if ENABLE(TIZEN_ISF_PORT)
1213 bool m_prepareKeyDownEvent;
1214 Vector<OwnPtr<KeyPressCommand> > m_keyPressCommands;
1218 #if ENABLE(TIZEN_NATIVE_MEMORY_SNAPSHOT)
1219 void dumpMemorySnapshot();
1222 } // namespace WebKit