Remove the video context menu
authorbunam.jeon <bunam.jeon@samsung.com>
Sun, 14 Apr 2013 06:38:33 +0000 (15:38 +0900)
committerbunam.jeon <bunam.jeon@samsung.com>
Sun, 14 Apr 2013 06:50:53 +0000 (15:50 +0900)
[Title] Remove the video context menu
[Issue#] P130413-1739
[Problem] The text is not translated.
[Cause] The reference browser does not support this feature.
[Solution] Remove the video context menu

Change-Id: Ic0c998cfc28baf9424964f5b7b1f89584f15c11d

Source/WebKit2/UIProcess/API/efl/ewk_view.cpp

index 025eb76..9af5e93 100755 (executable)
@@ -443,6 +443,8 @@ static Eina_Bool _ewk_view_smart_gesture_start(Ewk_View_Smart_Data* smartData, c
         IntPoint scenePoint(event->position.x, event->position.y);
         IntPoint contentsPoint = impl->transformFromScene().mapPoint(scenePoint);
         WebHitTestResult::Data hitTestResultData = impl->pageProxy->hitTestResultAtPoint(contentsPoint);
+        if (!hitTestResultData.absoluteMediaURL.isEmpty())
+            break;
 #if ENABLE(TIZEN_DRAG_SUPPORT)
         // 1. Check to start dragging.
         if (hitTestResultData.isDragSupport) {
@@ -457,8 +459,7 @@ static Eina_Bool _ewk_view_smart_gesture_start(Ewk_View_Smart_Data* smartData, c
 #endif
         // 2. Check to show context menu.
         if (!hitTestResultData.absoluteImageURL.isEmpty()
-            || !hitTestResultData.absoluteLinkURL.isEmpty()
-            || !hitTestResultData.absoluteMediaURL.isEmpty()) {
+            || !hitTestResultData.absoluteLinkURL.isEmpty()) {
 #if ENABLE(TIZEN_WEBKIT2_FOCUS_RING)
             if (impl->focusRing)
                 impl->focusRing->show(IntRect(), true);