[Webkit-unassigned] [Bug 91832] [EFL][WK2] Implemented color chooser proxy and input picker interface

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 8 07:27:34 PDT 2012


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





--- Comment #22 from KwangYong Choi <ky0.choi at samsung.com>  2012-08-08 07:27:53 PST ---
(In reply to comment #21)
> (From update of attachment 154833 [details])
> Can you make some test or at least show that it is possible to easily inherit to implement the picker.

As you know, this patch is an interface from UI to the color chooser on WebCore.

This implementation has 3 interfaces.

1. Show color picker
2. Set color changed
3. Close color picker

The application(browser app, etc) using webkit should provide color picker. It should show color picker dialog or popup when it receives show color picker call. The color picker implementation can be anything including color selector of EFL. I think, it's similar to color dialog on Windows. After showing the color picker, the user can select color from color dialog or popup.

Below is pseudo example for using color picker.

Eina_Bool browser_view_smart_class_set(Ewk_View_Smart_Class* api)
{
    if (!ewk_view_smart_class_set(api))
        return false;

    // register show color picker callback to smart class
    api->input_picker_show = _browser_input_picker_show;

    return true;
}

void _browser_input_picker_show(smartData, type, value)
{
    // display input picker by type and register callback functions
    elm_color_selector_show(); // this is for example
    register_changed_callback(callback_color_selected);
    register_close_callback(callback_color_picker_closed);
}

void callback_color_selected(color)
{
    // set color changed
    ewk_view_color_chooser_color_set(color);
}

void callback_color_picker_closed()
{
    // close color picker
    ewk_view_color_chooser_close();

    // unregister callback functions and destroy color picker
}

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list