Skip to content
  • commit-queue@webkit.org's avatar
    [BlackBerry] Upstream the datalist support UI · e47b86c6
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=110736
    
    Patch by Alberto Garcia <agarcia@igalia.com> on 2013-02-26
    Reviewed by Rob Buis.
    
    Original code by Otto Derek Cheung <otcheung@rim.com>
    
    Source/WebCore:
    
    * css/themeBlackBerry.css:
    (input::-webkit-suggestion-dropdown-box):
    (input::-webkit-suggestion-dropdown-box-item):
    (input::-webkit-suggestion-prefix-text):
    (input::-webkit-suggestion-dropdown-box-item-last):
    * platform/blackberry/RenderThemeBlackBerry.cpp:
    (WebCore::RenderThemeBlackBerry::supportsDataListUI):
    (WebCore):
    * platform/blackberry/RenderThemeBlackBerry.h:
    (RenderThemeBlackBerry):
    
    Source/WebKit:
    
    * PlatformBlackBerry.cmake:
    
    Source/WebKit/blackberry:
    
    * WebCoreSupport/SuggestionBoxElement.cpp: Added.
    (WebCore):
    (WebCore::SuggestionBoxElement::SuggestionBoxElement):
    (WebCore::SuggestionBoxElement::~SuggestionBoxElement):
    (WebCore::SuggestionBoxElement::create):
    (WebCore::SuggestionBoxElement::defaultEventHandler):
    * WebCoreSupport/SuggestionBoxElement.h: Added.
    (WebCore):
    (SuggestionBoxElement):
    * WebCoreSupport/SuggestionBoxHandler.cpp: Added.
    (WebCore):
    (WebCore::SuggestionBoxHandler::SuggestionBoxHandler):
    (WebCore::SuggestionBoxHandler::~SuggestionBoxHandler):
    (WebCore::SuggestionBoxHandler::create):
    (WebCore::SuggestionBoxHandler::setInputElementAndUpdateDisplay):
    (WebCore::SuggestionBoxHandler::showDropdownBox):
    (WebCore::SuggestionBoxHandler::hideDropdownBox):
    (WebCore::SuggestionBoxHandler::changeInputElementInnerTextValue):
    (WebCore::SuggestionBoxHandler::parseSuggestions):
    (WebCore::SuggestionBoxHandler::insertSuggestionsToDropdownBox):
    (WebCore::adjustDropdownBoxPosition):
    (WebCore::SuggestionBoxHandler::buildDropdownBoxTree):
    * WebCoreSupport/SuggestionBoxHandler.h: Added.
    (WebCore):
    (SuggestionBoxHandler):
    (WebCore::SuggestionBoxHandler::focusedElement):
    * WebKitSupport/InputHandler.cpp:
    (BlackBerry::WebKit::InputHandler::setElementUnfocused):
    (BlackBerry::WebKit::InputHandler::updateFormState):
    * WebKitSupport/InputHandler.h:
    (WebCore):
    (InputHandler):
    * WebKitSupport/TouchEventHandler.cpp:
    (BlackBerry::WebKit::TouchEventHandler::handleTouchPoint):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@144063 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    e47b86c6