Commit a7d27d63 authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

[EFL][WK2] Implement focus/unfocus in UIClient

https://bugs.webkit.org/show_bug.cgi?id=98253

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-10-03
Reviewed by Gyuyoung Kim.

Implement focus-related functionality in
WebKitEFL's UIClient.

* UIProcess/API/efl/ewk_view_ui_client.cpp:
(focus):
(unfocus):
(takeFocus):
(ewk_view_ui_client_attach):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130285 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent b560f78b
2012-10-03 Christophe Dumez <christophe.dumez@intel.com>
[EFL][WK2] Implement focus/unfocus in UIClient
https://bugs.webkit.org/show_bug.cgi?id=98253
Reviewed by Gyuyoung Kim.
Implement focus-related functionality in
WebKitEFL's UIClient.
* UIProcess/API/efl/ewk_view_ui_client.cpp:
(focus):
(unfocus):
(takeFocus):
(ewk_view_ui_client_attach):
2012-10-03 Carlos Garcia Campos <cgarcia@igalia.com>
[GTK] WebKitWebView doesn't emit notify:favicon when it changes in some cases in WebKit2
......
......@@ -80,6 +80,22 @@ static unsigned long long exceededDatabaseQuota(WKPageRef, WKFrameRef, WKSecurit
}
#endif
static void focus(WKPageRef, const void* clientInfo)
{
evas_object_focus_set(toEwkView(clientInfo), true);
}
static void unfocus(WKPageRef, const void* clientInfo)
{
evas_object_focus_set(toEwkView(clientInfo), false);
}
static void takeFocus(WKPageRef, WKFocusDirection, const void* clientInfo)
{
// FIXME: this is only a partial implementation.
evas_object_focus_set(toEwkView(clientInfo), false);
}
void ewk_view_ui_client_attach(WKPageRef pageRef, Evas_Object* ewkView)
{
WKPageUIClient uiClient;
......@@ -91,6 +107,9 @@ void ewk_view_ui_client_attach(WKPageRef pageRef, Evas_Object* ewkView)
uiClient.runJavaScriptAlert = runJavaScriptAlert;
uiClient.runJavaScriptConfirm = runJavaScriptConfirm;
uiClient.runJavaScriptPrompt = runJavaScriptPrompt;
uiClient.takeFocus = takeFocus;
uiClient.focus = focus;
uiClient.unfocus = unfocus;
#if ENABLE(SQL_DATABASE)
uiClient.exceededDatabaseQuota = exceededDatabaseQuota;
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment