Eina_Bool (*popup_menu_hide)(Ewk_View_Smart_Data *sd);
Eina_Bool (*popup_menu_update)(Ewk_View_Smart_Data *sd, Eina_Rectangle rect, Ewk_Text_Direction text_direction, Eina_List* items, int selected_index);
+ Eina_Bool (*text_selection_down)(Ewk_View_Smart_Data *sd, int x, int y);
+ Eina_Bool (*text_selection_up)(Ewk_View_Smart_Data *sd, int x, int y);
+
Eina_Bool (*input_picker_show)(Ewk_View_Smart_Data *sd, Ewk_Input_Type inputType, const char* inputValue);
// event handling:
api.mouse_move = &handleMouseMove;
api.key_down = &handleKeyDown;
api.key_up = &handleKeyUp;
+ api.text_selection_down = &handleTextSelectionDown;
+ api.text_selection_up = &handleTextSelectionUp;
// Type identifier.
api.sc.data = SmartClassName;
return true;
}
+Eina_Bool EWebView::handleTextSelectionDown(Ewk_View_Smart_Data* d, int x, int y) {
+ // temporary mockup codes
+ NOTIMPLEMENTED();
+ return EINA_FALSE;
+}
+
+Eina_Bool EWebView::handleTextSelectionUp(Ewk_View_Smart_Data* d, int x, int y) {
+ // temporary mockup codes
+ NOTIMPLEMENTED();
+ return EINA_FALSE;
+}
+
void EWebView::OnTouchDown(void* sd, Evas*, Evas_Object*, void*) {
ToEWebView(static_cast<Ewk_View_Smart_Data*>(sd))->HandleTouchEvents(EWK_TOUCH_START);
}
static Eina_Bool handleMouseMove(Ewk_View_Smart_Data* d, const Evas_Event_Mouse_Move* moveEvent);
static Eina_Bool handleKeyDown(Ewk_View_Smart_Data* d, const Evas_Event_Key_Down* downEvent);
static Eina_Bool handleKeyUp(Ewk_View_Smart_Data* d, const Evas_Event_Key_Up* upEvent);
+ static Eina_Bool handleTextSelectionDown(Ewk_View_Smart_Data* d, int x, int y);
+ static Eina_Bool handleTextSelectionUp(Ewk_View_Smart_Data* d, int x, int y);
static void OnTouchDown(void*, Evas*, Evas_Object*, void*);
static void OnTouchUp(void*, Evas*, Evas_Object*, void*);