Changeset 142116 in webkit


Ignore:
Timestamp:
Feb 7, 2013 7:07:03 AM (11 years ago)
Author:
mifenton@rim.com
Message:

[BlackBerry] Send type details with IMF mask as part of focus gained.
https://bugs.webkit.org/show_bug.cgi?id=109086

Reviewed by Yong Li.

PR 292609.

Add masking options based on VKB type to the IMF mask.

Reviewed Internally by Nima Ghanavatian.

  • WebKitSupport/InputHandler.cpp:

(BlackBerry::WebKit::addInputStyleMaskForKeyboardType):
(WebKit):
(BlackBerry::WebKit::InputHandler::setElementFocused):

Location:
trunk/Source/WebKit/blackberry
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/ChangeLog

    r142037 r142116  
     12013-02-07  Mike Fenton  <mifenton@rim.com>
     2
     3        [BlackBerry] Send type details with IMF mask as part of focus gained.
     4        https://bugs.webkit.org/show_bug.cgi?id=109086
     5
     6        Reviewed by Yong Li.
     7
     8        PR 292609.
     9
     10        Add masking options based on VKB type to the IMF mask.
     11
     12        Reviewed Internally by Nima Ghanavatian.
     13
     14        * WebKitSupport/InputHandler.cpp:
     15        (BlackBerry::WebKit::addInputStyleMaskForKeyboardType):
     16        (WebKit):
     17        (BlackBerry::WebKit::InputHandler::setElementFocused):
     18
    1192013-02-06  Jakob Petsovits  <jpetsovits@rim.com>
    220
  • trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp

    r141623 r142116  
    900900}
    901901
     902static void addInputStyleMaskForKeyboardType(int64_t& inputMask, VirtualKeyboardType keyboardType)
     903{
     904    switch (keyboardType) {
     905    case VKBTypeUrl:
     906        inputMask |= IMF_URL_TYPE;
     907        break;
     908    case VKBTypePassword:
     909        inputMask |= IMF_PASSWORD_TYPE;
     910        break;
     911    case VKBTypePin:
     912        inputMask |= IMF_PIN_TYPE;
     913        break;
     914    case VKBTypePhone:
     915        inputMask |= IMF_PHONE_TYPE;
     916        break;
     917    case VKBTypeEmail:
     918        inputMask |= IMF_EMAIL_TYPE;
     919        break;
     920    default:
     921        break;
     922    }
     923}
     924
    902925void InputHandler::setElementFocused(Element* element)
    903926{
     
    938961    if (keyboardType == VKBTypeNotSet)
    939962        keyboardType = convertInputTypeToVKBType(type);
     963
     964    addInputStyleMaskForKeyboardType(m_currentFocusElementTextEditMask, keyboardType);
    940965
    941966    VirtualKeyboardEnterKeyType enterKeyType = keyboardEnterKeyTypeAttribute(element);
Note: See TracChangeset for help on using the changeset viewer.