2010-07-05 Gyuyoung Kim <gyuyoung.kim@samsung.com>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Jul 2010 03:11:53 +0000 (03:11 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Jul 2010 03:11:53 +0000 (03:11 +0000)
        Reviewed by Kenneth Rohde Christiansen.

        [EFL] Implement downloadURL in ContextMenuClientEfl
        When user selects a download menu from context menu, send the download
        request to application.
        https://bugs.webkit.org/show_bug.cgi?id=41149

        * efl/WebCoreSupport/ContextMenuClientEfl.cpp:
        (WebCore::ContextMenuClientEfl::downloadURL): Get url for downloading
        file and Send it to application.
        * efl/WebCoreSupport/ContextMenuClientEfl.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@62515 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/ChangeLog
WebKit/efl/WebCoreSupport/ContextMenuClientEfl.cpp

index 7ba39c3e1fe879feef29ba29f7fee6e861db1a35..a987c9a95b13dff7c68532d351353d33843e70ef 100644 (file)
@@ -1,3 +1,17 @@
+2010-07-05  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        [EFL] Implement downloadURL in ContextMenuClientEfl
+        When user selects a download menu from context menu, send the download 
+        request to application.
+        https://bugs.webkit.org/show_bug.cgi?id=41149
+
+        * efl/WebCoreSupport/ContextMenuClientEfl.cpp:
+        (WebCore::ContextMenuClientEfl::downloadURL): Get url for downloading 
+        file and Send it to application.
+        * efl/WebCoreSupport/ContextMenuClientEfl.h:
+
 2010-06-30  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
 
         Reviewed by Kenneth Rohde Christiansen.
 2010-06-30  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
 
         Reviewed by Kenneth Rohde Christiansen.
index 19c3705671836838eafd7621d311cf274f50a100..37d7d5adfba78792977f0a4dea371ad90935ff25 100644 (file)
 
 #include "ContextMenu.h"
 #include "EWebKit.h"
 
 #include "ContextMenu.h"
 #include "EWebKit.h"
-#include "ewk_private.h"
 #include "HitTestResult.h"
 #include "KURL.h"
 #include "NotImplemented.h"
 #include "PlatformMenuDescription.h"
 #include "HitTestResult.h"
 #include "KURL.h"
 #include "NotImplemented.h"
 #include "PlatformMenuDescription.h"
+#include "ewk_private.h"
 
 using namespace WebCore;
 
 
 using namespace WebCore;
 
@@ -62,9 +62,16 @@ void ContextMenuClientEfl::contextMenuItemSelected(ContextMenuItem*, const Conte
     notImplemented();
 }
 
     notImplemented();
 }
 
-void ContextMenuClientEfl::downloadURL(const KURL&)
+void ContextMenuClientEfl::downloadURL(const KURL& url)
 {
 {
-    notImplemented();
+    if (!m_view)
+        return;
+
+    Ewk_Download download;
+
+    CString downloadUrl = url.prettyURL().utf8();
+    download.url = downloadUrl.data();
+    ewk_view_download_request(m_view, &download);
 }
 
 void ContextMenuClientEfl::searchWithGoogle(const Frame*)
 }
 
 void ContextMenuClientEfl::searchWithGoogle(const Frame*)