X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=Source%2FWebKit2%2FWebProcess%2FWebPage%2FWebPage.h;h=8c69ad3a26c7009a541b5b3ca2715ed0811e4484;hb=b8bed2469cb69146c1b048442418e82b9214f8bc;hp=147122f28efd37e8c65cfa5f5937f66c497b8f3d;hpb=b5858f562ce125c0273c5e089ddd8a5c9aa2e3f7;p=framework%2Fweb%2Fwebkit-efl.git diff --git a/Source/WebKit2/WebProcess/WebPage/WebPage.h b/Source/WebKit2/WebProcess/WebPage/WebPage.h old mode 100644 new mode 100755 index 147122f..8c69ad3 --- a/Source/WebKit2/WebProcess/WebPage/WebPage.h +++ b/Source/WebKit2/WebProcess/WebPage/WebPage.h @@ -195,6 +195,42 @@ class WebUserMediaClient; #if ENABLE(TIZEN_ISF_PORT) class NativeWebKeyboardEvent; + +enum { + KeyPressCommandSetComposition, + KeyPressCommandConfirmComposition, + KeyPressCommandDeleteText +}; + +struct KeyPressCommand { + KeyPressCommand(int type) : type(type) { } + + int type; +}; + +struct SetCompositionKeyPressCommand : public KeyPressCommand { + SetCompositionKeyPressCommand(const String& compositionString, const Vector& underlines, uint64_t cursorPosition) + : KeyPressCommand(KeyPressCommandSetComposition), compositionString(compositionString), underlines(underlines), cursorPosition(cursorPosition) { } + + String compositionString; + Vector underlines; + uint64_t cursorPosition; +}; + +struct ConfirmCompositionKeyPressCommand : public KeyPressCommand { + ConfirmCompositionKeyPressCommand(const String& compositionString) + : KeyPressCommand(KeyPressCommandConfirmComposition), compositionString(compositionString) { } + + String compositionString; +}; + +struct DeleteTextKeyPressCommand : public KeyPressCommand { + DeleteTextKeyPressCommand(int offset, int count) + : KeyPressCommand(KeyPressCommandDeleteText), offset(offset), count(count) { } + + int offset; + int count; +}; #endif class WebPage : public APIObject, public CoreIPC::MessageSender { @@ -236,6 +272,9 @@ public: #if ENABLE(TIZEN_ISF_PORT) void didCancelComposition(WebCore::Node*); + void prepareKeyDownEvent(); + void swapKeyPressCommands(Vector >&); + void getCursorOffset(int&); void getSurroundingTextAndCursorOffset(String&, int&); void getSelectionRect(bool, WebCore::IntRect&); @@ -297,9 +336,14 @@ public: // FIXME: We could genericize these into a DrawingArea client interface. Would that be beneficial? void drawRect(WebCore::GraphicsContext&, const WebCore::IntRect&); #if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION) - void selectClosestWord(const WebCore::IntPoint&, bool isStartedTextSelectionFromOutside, bool& result); - void setLeftSelection(const WebCore::IntPoint&, bool& result); - void setRightSelection(const WebCore::IntPoint&, bool& result); + enum HandleMovingDirection { + HandleMovingDirectionNone = 0, + HandleMovingDirectionNormal, + HandleMovingDirectionReverse, + }; + void selectClosestWord(const WebCore::IntPoint&, bool& result); + void setLeftSelection(const WebCore::IntPoint&, const int direction, int& result); + void setRightSelection(const WebCore::IntPoint&, const int direction, int& result); void getSelectionHandlers(WebCore::IntRect& leftRect, WebCore::IntRect& rightRect); void getSelectionText(String& result); void selectionRangeClear(bool& result); @@ -740,10 +784,6 @@ public: WebCore::HTTPHeaderMap customHeaders(); #endif -#if ENABLE(TIZEN_WEBKIT2_GET_TEXT_STYLE_FOR_SELECTION) - void getTextStyleStateForSelection(); -#endif - #if PLATFORM(GTK) && USE(TEXTURE_MAPPER_GL) uint64_t nativeWindowHandle() { return m_nativeWindowHandle; } #endif @@ -757,9 +797,11 @@ public: #endif #if ENABLE(TIZEN_SCREEN_READER) - void raiseTapEvent(const WebCore::IntPoint&, const WebCore::IntPoint&); void moveScreenReaderFocus(bool, bool&); void moveScreenReaderFocusByPoint(const WebCore::IntPoint&); + void clearScreenReaderFocus(); + void raiseTapEvent(const WebCore::IntPoint&, const WebCore::IntPoint&, bool&); + void adjustScreenReaderFocusedObjectValue(bool); void recalcScreenReaderFocusRect(); void updateScreenReaderFocus(WebCore::RenderObject*); void clearScreenReader(); @@ -1150,6 +1192,11 @@ private: #if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION) EditorState m_editorState; #endif + +#if ENABLE(TIZEN_ISF_PORT) + bool m_prepareKeyDownEvent; + Vector > m_keyPressCommands; +#endif }; #if ENABLE(TIZEN_NATIVE_MEMORY_SNAPSHOT)