Fixed when user tap on linkable contents, somtimes focus ring is not shown.
[framework/web/webkit-efl.git] / Source / WebKit2 / UIProcess / WebPageProxy.h
index f8506c7..28e8fed 100755 (executable)
 #include <WebCore/ContentSecurityPolicy.h>
 #endif
 
+#if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
+#include <WebCore/VisibleSelection.h>
+#endif
+
 namespace CoreIPC {
     class ArgumentDecoder;
     class Connection;
@@ -308,6 +312,10 @@ public:
 
     WebBackForwardList* backForwardList() const { return m_backForwardList.get(); }
 
+#if ENABLE(TIZEN_WEBKIT2_NOTIFY_SUSPEND_BY_REMOTE_WEB_INSPECTOR)
+    bool isContentSuspendedByInspector() { return m_contentSuspendedByInspector; }
+#endif
+
 #if ENABLE(INSPECTOR)
     WebInspectorProxy* inspector();
 #endif
@@ -470,6 +478,12 @@ public:
 
     HWND nativeWindow() const;
 #endif
+#if PLATFORM(EFL)
+    void handleInputMethodKeydown(bool& handled);
+    void confirmComposition(const String&);
+    void setComposition(const String&, Vector<WebCore::CompositionUnderline>&, int);
+    void cancelComposition();
+#endif
 #if PLATFORM(GTK)
     GtkWidget* viewWidget();
 #endif
@@ -478,12 +492,9 @@ public:
 #endif
 
 #if OS(TIZEN)
-    void confirmComposition(const String&);
 #if ENABLE(TIZEN_REDUCE_KEY_LAGGING)
     static Eina_Bool pageContentResumeTimerFired(void* data);
 #endif
-    void setComposition(const String&, Vector<WebCore::CompositionUnderline>&, int);
-    void handleInputMethodKeydown(bool&);
 #if ENABLE(TIZEN_TEXT_CARET_HANDLING_WK2)
     void setCaretPosition(const WebCore::IntPoint&);
     void getCaretPosition(WebCore::IntRect&);
@@ -508,8 +519,12 @@ public:
 #endif
 
 #if ENABLE(TIZEN_WEBKIT2_HIT_TEST)
+#if ENABLE(TOUCH_ADJUSTMENT)
+    WebHitTestResult::Data hitTestResultAtPoint(const WebCore::IntPoint&, int hitTestMode = WebHitTestResult::HitTestModeDefault, const WebCore::IntSize& area = WebCore::IntSize());
+#else
     WebHitTestResult::Data hitTestResultAtPoint(const WebCore::IntPoint&, int hitTestMode = WebHitTestResult::HitTestModeDefault);
 #endif
+#endif
 #if ENABLE(TIZEN_CONTEXT_MENU_WEBKIT_2)
     void hideContextMenu();
     String contextMenuAbsoluteLinkURLString();
@@ -527,7 +542,7 @@ public:
     void clipboardContextMenuSelected();
     void executePasteFromClipboardItem(const String& data, const String& type);
 #endif
-#if ENABLE(TIZEN_WEBKIT2_REMOTE_WEB_INSPECTOR)
+#if ENABLE(TIZEN_REMOTE_WEB_INSPECTOR)
     uint32_t startInspectorServer(uint32_t port);
     bool stopInspectorServer();
 #endif
@@ -544,19 +559,23 @@ public:
 #endif
 
     void suspendPainting();
-#if ENABLE(TIZEN_WEBKIT2_TILED_AC)
-    void suspendPaintingOfInactiveView();
-#endif
     void resumePainting();
 
     void suspendJavaScriptAndResource();
     void resumeJavaScriptAndResource();
 
+    void suspendAnimations();
+    void resumeAnimations();
+
 #if ENABLE(TIZEN_PLUGIN_SUSPEND_RESUME)
     void suspendPlugin();
     void resumePlugin();
 #endif
 
+#if ENABLE(TIZEN_WEBKIT2_TILED_AC)
+    void purgeBackingStoresOfInactiveView();
+#endif
+
 #endif // #if OS(TIZEN)
 
 #if USE(TILED_BACKING_STORE)
@@ -877,10 +896,6 @@ public:
 #endif
 
     void printMainFrame();
-
-#if ENABLE(TIZEN_RECORDING_SURFACE_SET)
-void recordingSurfaceSetEnableSet(bool enable);
-#endif
     
 #if ENABLE(TIZEN_REGISTER_PROTOCOL_HANDLER)
     void registerProtocolHandler(const String& scheme, const String& baseURL, const String& url, const String& title);
@@ -918,6 +933,10 @@ void recordingSurfaceSetEnableSet(bool enable);
 #endif
 #endif
 
+#if ENABLE(TIZEN_ON_AUTHENTICATION_REQUESTED)
+    void replyReceiveAuthenticationChallengeInFrame(bool result);
+#endif
+
 #if ENABLE(TIZEN_CERTIFICATE_HANDLING)
     void replyPolicyForCertificateError(bool result);
 #endif
@@ -939,13 +958,14 @@ void recordingSurfaceSetEnableSet(bool enable);
 #endif
 
 #if ENABLE(TIZEN_ISF_PORT)
+    void prepareKeyDownEvent();
     int getCursorOffset();
     void getSurroundingTextAndCursorOffset(String&, int&);
     WebCore::IntRect getSelectionRect(bool);
     void deleteSurroundingText(int, int);
 
-    void updateCursorOffset(int);
     void didCancelComposition();
+    void removeInputMethodContext(uintptr_t);
 #endif
 
     void setBackgroundColor(double red, double green, double blue, double alpha);
@@ -957,11 +977,6 @@ void recordingSurfaceSetEnableSet(bool enable);
     void didRenderFrame();
 #endif
 
-#if ENABLE(TIZEN_WEBKIT2_GET_TEXT_STYLE_FOR_SELECTION)
-    void getTextStyleStateForSelection();
-    void didGetTextStyleStateForSelection(int underlineState, int italicState, int boldState);
-#endif
-
 #if PLATFORM(GTK) && USE(TEXTURE_MAPPER_GL)
     void widgetMapped(uint64_t nativeWindowId);
 #endif
@@ -991,12 +1006,14 @@ void recordingSurfaceSetEnableSet(bool enable);
 #endif
 
 #if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
-    bool selectClosestWord(const WebCore::IntPoint&, bool isStartedTextSelectionFromOutside);
-    bool setLeftSelection(const WebCore::IntPoint&);
-    bool setRightSelection(const WebCore::IntPoint&);
+    bool selectClosestWord(const WebCore::IntPoint&);
+    int setLeftSelection(const WebCore::IntPoint&, const int direction);
+    int setRightSelection(const WebCore::IntPoint&, const int direction);
     bool getSelectionHandlers(WebCore::IntRect& leftRect, WebCore::IntRect& rightRect);
     String getSelectionText();
     bool selectionRangeClear();
+    bool scrollContentByCharacter(const WebCore::IntPoint&, WebCore::SelectionDirection direction);
+    bool scrollContentByLine(const WebCore::IntPoint&, WebCore::SelectionDirection direction);
 #endif
 
 #if ENABLE(TIZEN_LINK_MAGNIFIER)
@@ -1005,9 +1022,11 @@ void recordingSurfaceSetEnableSet(bool enable);
 #endif
 
 #if ENABLE(TIZEN_SCREEN_READER)
-    void raiseTapEvent(const WebCore::IntPoint&);
     bool moveScreenReaderFocus(bool);
     void moveScreenReaderFocusByPoint(const WebCore::IntPoint&);
+    void clearScreenReaderFocus();
+    bool raiseTapEvent(const WebCore::IntPoint&);
+    void adjustScreenReaderFocusedObjectValue(bool);
     void recalcScreenReaderFocusRect();
     void clearScreenReader();
 
@@ -1027,6 +1046,18 @@ void recordingSurfaceSetEnableSet(bool enable);
     void replyExceededIndexedDatabaseQuota(bool allow);
 #endif
 
+#if ENABLE(TIZEN_SQL_DATABASE)
+    void replyExceededDatabaseQuota(bool allow);
+#endif
+
+#if ENABLE(TIZEN_FILE_SYSTEM)
+    void replyExceededLocalFileSystemQuota(bool allow);
+#endif
+
+#if ENABLE(TIZEN_USE_SETTINGS_FONT)
+    void useSettingsFont();
+#endif
+
 private:
     WebPageProxy(PageClient*, PassRefPtr<WebProcessProxy>, WebPageGroup*, uint64_t pageID);
 
@@ -1146,7 +1177,11 @@ private:
     void pageDidScroll();
     void runOpenPanel(uint64_t frameID, const WebCore::FileChooserSettings&);
     void printFrame(uint64_t frameID);
+#if ENABLE(TIZEN_SQL_DATABASE)
+    void exceededDatabaseQuota(uint64_t frameID, const String& originIdentifier, const String& displayName, uint64_t expectedUsage, PassRefPtr<Messages::WebPageProxy::ExceededDatabaseQuota::DelayedReply>);
+#else
     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);
+#endif
 #if ENABLE(TIZEN_APPLICATION_CACHE)
     void requestApplicationCachePermission(uint64_t frameID, const String& originIdentifier, PassRefPtr<Messages::WebPageProxy::RequestApplicationCachePermission::DelayedReply>);
 #endif
@@ -1288,11 +1323,6 @@ private:
 #if ENABLE(TIZEN_WEBKIT2_FORM_DATABASE)
     void textChangeInTextField(const String&, const String&);
 #endif
-#if ENABLE(TIZEN_ISF_PORT)
-    void setInputMethodState(bool, const String&, const String&);
-#else
-    void setInputMethodState(bool active);
-#endif
 #endif
     void learnWord(const String& word);
     void ignoreWord(const String& word);
@@ -1320,7 +1350,11 @@ private:
     void frameSetLargestFrameChanged(uint64_t frameID);
 
     void canAuthenticateAgainstProtectionSpaceInFrame(uint64_t frameID, const WebCore::ProtectionSpace&, bool& canAuthenticate);
+#if ENABLE(TIZEN_ON_AUTHENTICATION_REQUESTED)
+    void didReceiveAuthenticationChallenge(uint64_t frameID, const WebCore::AuthenticationChallenge&, uint64_t challengeID, PassRefPtr<Messages::WebPageProxy::DidReceiveAuthenticationChallenge::DelayedReply>);
+#else
     void didReceiveAuthenticationChallenge(uint64_t frameID, const WebCore::AuthenticationChallenge&, uint64_t challengeID);
+#endif
 
     void didFinishLoadingDataForCustomRepresentation(const String& suggestedFilename, const CoreIPC::DataReference&);
 
@@ -1351,6 +1385,10 @@ private:
 #endif
 #endif // PLATFORM(MAC)
 
+#if USE(SOUP)
+    void didReceiveURIRequest(String uriString, uint64_t requestID);
+#endif
+
     void clearLoadDependentCallbacks();
 
     void performDragControllerAction(DragControllerAction, WebCore::DragData*, const String& dragStorageName, const SandboxExtension::Handle&, const SandboxExtension::HandleArray&);
@@ -1387,6 +1425,14 @@ private:
     void exceededIndexedDatabaseQuota(uint64_t frameID, const String& originIdentifier, int64_t currentUsage, PassRefPtr<Messages::WebPageProxy::ExceededIndexedDatabaseQuota::DelayedReply> reply);
 #endif
 
+#if ENABLE(TIZEN_FILE_SYSTEM)
+    void exceededLocalFileSystemQuota(uint64_t frameID, const String& originIdentifier, int64_t currentUsage, PassRefPtr<Messages::WebPageProxy::ExceededLocalFileSystemQuota::DelayedReply> reply);
+#endif
+
+#if ENABLE(TIZEN_WEBKIT2_NOTIFY_SUSPEND_BY_REMOTE_WEB_INSPECTOR)
+    void setContentSuspendedByInspector(bool);
+#endif
+
     PageClient* m_pageClient;
     WebLoaderClient m_loaderClient;
     WebPolicyClient m_policyClient;
@@ -1578,6 +1624,10 @@ private:
     WebCore::DragSession m_currentDragSession;
 #endif
 
+#if ENABLE(TIZEN_WEBKIT2_NOTIFY_SUSPEND_BY_REMOTE_WEB_INSPECTOR)
+    bool m_contentSuspendedByInspector;
+#endif
+
     String m_pendingAPIRequestURL;
 
     bool m_mainFrameHasHorizontalScrollbar;
@@ -1625,6 +1675,13 @@ private:
 #if ENABLE(TIZEN_APPLICATION_CACHE)
     RefPtr<Messages::WebPageProxy::RequestApplicationCachePermission::DelayedReply> m_applicationCacheReply;
 #endif
+#if ENABLE(TIZEN_SQL_DATABASE)
+    RefPtr<Messages::WebPageProxy::ExceededDatabaseQuota::DelayedReply> m_exceededDatabaseQuotaReply;
+#endif
+#endif
+
+#if ENABLE(TIZEN_ON_AUTHENTICATION_REQUESTED)
+    RefPtr<Messages::WebPageProxy::DidReceiveAuthenticationChallenge::DelayedReply> m_AuthReply;
 #endif
 
 #if ENABLE(TIZEN_CERTIFICATE_HANDLING)
@@ -1642,6 +1699,10 @@ private:
 #if ENABLE(TIZEN_INDEXED_DATABASE)
     RefPtr<Messages::WebPageProxy::ExceededIndexedDatabaseQuota::DelayedReply> m_exceededIndexedDatabaseQuotaReply;
 #endif
+
+#if ENABLE(TIZEN_FILE_SYSTEM)
+    RefPtr<Messages::WebPageProxy::ExceededLocalFileSystemQuota::DelayedReply> m_exceededLocalFileSystemQuotaReply;
+#endif
 };
 
 } // namespace WebKit