diff options
Diffstat (limited to 'WebKit/efl/WebCoreSupport')
-rw-r--r-- | WebKit/efl/WebCoreSupport/ChromeClientEfl.cpp | 25 | ||||
-rw-r--r-- | WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp | 11 |
2 files changed, 29 insertions, 7 deletions
diff --git a/WebKit/efl/WebCoreSupport/ChromeClientEfl.cpp b/WebKit/efl/WebCoreSupport/ChromeClientEfl.cpp index 8ec65b9..5fef33e 100644 --- a/WebKit/efl/WebCoreSupport/ChromeClientEfl.cpp +++ b/WebKit/efl/WebCoreSupport/ChromeClientEfl.cpp @@ -49,9 +49,9 @@ #include "PlatformString.h" #include "WindowFeatures.h" #include "ewk_private.h" -#include <wtf/text/CString.h> - +#include <Ecore_Evas.h> #include <Evas.h> +#include <wtf/text/CString.h> using namespace WebCore; @@ -87,13 +87,28 @@ void ChromeClientEfl::focusedNodeChanged(Node*) FloatRect ChromeClientEfl::windowRect() { - notImplemented(); - return FloatRect(); + Ecore_Evas* ee = 0; + int x, y, w, h; + + if (!m_view) + return FloatRect(); + + ee = ecore_evas_ecore_evas_get(evas_object_evas_get(m_view)); + ecore_evas_geometry_get(ee, &x, &y, &w, &h); + return FloatRect(x, y, w, h); } void ChromeClientEfl::setWindowRect(const FloatRect& rect) { - notImplemented(); + Ecore_Evas* ee = 0; + IntRect intrect = IntRect(rect); + + if (!m_view) + return; + + ee = ecore_evas_ecore_evas_get(evas_object_evas_get(m_view)); + ecore_evas_move(ee, intrect.x(), intrect.y()); + ecore_evas_resize(ee, intrect.width(), intrect.height()); } FloatRect ChromeClientEfl::pageRect() diff --git a/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp b/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp index 438d6a0..50356e9 100644 --- a/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp +++ b/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp @@ -749,9 +749,16 @@ void FrameLoaderClientEfl::dispatchDidFailLoad(const ResourceError& err) m_loadError.failingURL().utf8().data()); } -void FrameLoaderClientEfl::download(ResourceHandle*, const ResourceRequest&, const ResourceRequest&, const ResourceResponse&) +void FrameLoaderClientEfl::download(ResourceHandle*, const ResourceRequest& request, const ResourceRequest&, const ResourceResponse&) { - notImplemented(); + if (!m_view) + return; + + CString url = request.url().prettyURL().utf8(); + Ewk_Download download; + + download.url = url.data(); + ewk_view_download_request(m_view, &download); } // copied from WebKit/Misc/WebKitErrors[Private].h |