Bring up drag option in context menu
authorDaniel Waślicki <d.waslicki@samsung.com>
Wed, 18 Feb 2015 09:25:08 +0000 (10:25 +0100)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
This reverts commit ddc255acd3b2955c28c29af67104881f1840b52d.

Implementation of Drag&Drop was splitted into two parts. First one
implemented EFL`s port for D&D with default behavior, which is
dragging on long press. Second part changed default behavior to
starting D&D after choosing proper option from context menu. After
merge of first patch issues was raised that one cannot open context
menu for URL links. Now both parts are merged so this issue does not
occur any more.

Together with: I1b3cc3280e119ea69fa3939b51315100f512e527
Together with: I5aeff041e53f659181b85c92e2e3674beb46f0be

Change-Id: I641c466f36791c73055dae9cd20b5f0738fcc666
Signed-off-by: Daniel Waślicki <d.waslicki@samsung.com>
tizen_src/impl/context_menu_controller_efl.cc

index c2984b9..5c48d65 100644 (file)
@@ -166,12 +166,10 @@ void ContextMenuControllerEfl::GetProposedContextMenu() {
     AddItemToPropsedList(MENU_ITEM_TYPE_ACTION, MENU_ITEM_SELECT_ALL,
         std::string(dgettext("WebKit", "IDS_WEBVIEW_OPT_SELECT_ALL_ABB")));
   }
-#if !defined(EWK_BRINGUP)
   if (params_.is_draggable) {
     AddItemToPropsedList(MENU_ITEM_TYPE_ACTION, MENU_ITEM_DRAG,
         std::string(dgettext("WebKit", "IDS_WEBVIEW_OPT_DRAG_AND_DROP")));
   }
-#endif
   if (params_.is_editable && ClipboardHelperEfl::NumberOfItems() > 0) {
     AddItemToPropsedList(MENU_ITEM_TYPE_ACTION, MENU_ITEM_CLIPBOARD,
         std::string(dgettext("WebKit", "IDS_WEBVIEW_OPT_CLIPBOARD")));
@@ -817,14 +815,12 @@ void ContextMenuControllerEfl::MenuItemSelected(ContextMenuItemEfl* menu_item)
       ClipboardHelperEfl::GetInstance()->OpenClipboardWindow(view, true);
       break;
     }
-#if !defined(EWK_BRINGUP)
     case MENU_ITEM_DRAG: {
       RenderViewHost* rvh = web_contents_.GetRenderViewHost();
-      rvh->SendDragStartInformationToRenderer();
+      rvh->StartDragging();
       context_menu_show_pos_.SetPoint(params_.x, params_.y);
       break;
     }
-#endif
     default:
       CustomMenuItemSelected(menu_item);
   }