Changes between Version 5 and Version 6 of EnableFormFeatures


Ignore:
Timestamp:
Feb 13, 2013 5:48:30 PM (11 years ago)
Author:
tkent@chromium.org
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • EnableFormFeatures

    v5 v6  
    11= How to enable Form features =
     2
     3== Interactive form validation ==
     4
     51. Implement `WebCore/page/ValidationMessageClient.h` for your port
     62. Set it to `PageClients::validationMessageClient`
     73. Instantiate a `Page` object
     84. `page->settings()->setInteractiveFormValidationEnabled(true)`
     9
     10Doing step 3 and 4 without step 1 and 2 enables a platform-neutral form validation UI. But it has [https://bugs.webkit.org/show_bug.cgi?id=95527 some unresolvable bugs].
     11You should provide your `ValidationMessageClient`.
    212
    313== input[type=number] ==
     
    2131
    2232Test: fast/forms/number/number-l10n-input.html
    23 
    24 == Interactive form validation ==
    25 
    26 1. Implement `WebCore/page/ValidationMessageClient.h` for your port
    27 2. Set it to `PageClients::validationMessageClient`
    28 3. Instantiate a `Page` object
    29 4. `page->settings()->setInteractiveFormValidationEnabled(true)`
    30 
    31 Doing step 3 and 4 without step 1 and 2 enables a platform-neutral form validation UI. But it has [https://bugs.webkit.org/show_bug.cgi?id=95527 some unresolvable bugs].
    32 You should provide your `ValidationMessageClient`.
    3333
    3434== input[type=color] ==
     
    6262  2. Implement `ChromeClient::openDateTimeChooser`
    6363
    64 Note that WebCore has calendar chooser implementation built with HTML. It supports date type, month type, week type, and year-month-day part of datetime-local type.
    65 It requires `ENABLE_CALENDAR_PICKER` and `ENABLE_PAGE_POPUP`. This implementation doesn't support time type and the time part of datetime-local type.
    66 If we add their support in the future, `ENABLE_CALENDAR_PICKER` can be used for the chooser-only UI too.
     64=== ENABLE_CALENDAR_PICKER ===
     65WebCore has a calendar chooser implementation built with HTML.
     66It supports date type, month type, week type, and year-month-day part of datetime-local type, and
     67doesn't support time type and the time part of datetime-local type for now.
     68So, the implementation is not enough for the chooser-only UI.
     69
     701. Enable `ENABLE_PAGE_POPUP` flag.[[BR]]
     71   This feature requires `V8EnabledPerContext` extended attribute.
     72   If your port uses JavaScriptCore, dont't use `WebCore/page/DOMWindowPagePopup.idl` and setup `pagePopupController` property in C++ code.
     732. Enable `ENABLE_CALENDAR_PICKER` flag
    6774
    6875[[Image(calendar-picker.png)]] [[BR]]