[Webkit-unassigned] [Bug 47256] Adding C api for comboboxes
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Oct 6 06:20:53 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=47256
--- Comment #10 from Luiz Agostini <luiz at webkit.org> 2010-10-06 06:20:52 PST ---
(In reply to comment #8)
> WK_EXPORT bool WKSelectPopupGetItemIsInGroup(WKSelectPopupRef select, int index);
>
> How does this work? the index is the group index or the index of the item?
index is the index of the item.
for example:
<select>
<optgroup label="group">
<option value="red">red</option>
<option value="green">green</option>
</optgroup>
<option value="blue">blue</option>
</select>
WKSelectPopupGetItemIsInGroup would return true for indexes 1 and 2 and return false for index 3 indicating that blue is not a part of the previous group. This should be enough since just one level of groups is allowed.
I could replace it by a method that returns the item level or indentation. Or by a method that returns the index of the group to which the item belongs to or -1 if it does not belong to any group.
Suggestions?
>
> --
> Regarding:
> WK_EXPORT void WKSelectPopupDidHide(WKComboboxRef combobox);
>
> What about
>
> WK_EXPORT void WKSelectPopupInformDidHide(WKComboboxRef combobox);
It is better then just did hide for sure.
--
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