Changeset 127817 in webkit


Ignore:
Timestamp:
Sep 6, 2012 9:18:53 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Implement a color picker
https://bugs.webkit.org/show_bug.cgi?id=96001

Patch by Crystal Zhang <haizhang@rim.com> on 2012-09-06
Reviewed by Rob Buis.

Source/WebKit:

Add color picker files into building system.

  • PlatformBlackBerry.cmake:

Source/WebKit/blackberry:

Add files for color picker, replace old hook to AIR color picker.

  • WebCoreSupport/ColorPickerClient.cpp: Added.

(WebCore):
(WebCore::ColorPickerClient::ColorPickerClient):
(WebCore::ColorPickerClient::~ColorPickerClient):
(WebCore::ColorPickerClient::generateHTML):
(WebCore::ColorPickerClient::closePopup):
(WebCore::ColorPickerClient::contentSize):
(WebCore::ColorPickerClient::htmlSource):
(WebCore::ColorPickerClient::setValueAndClosePopup):
(WebCore::ColorPickerClient::didClosePopup):
(WebCore::ColorPickerClient::writeDocument):

  • WebCoreSupport/ColorPickerClient.h: Added.

(WebKit):
(WebCore):
(ColorPickerClient):

  • WebKitSupport/InputHandler.cpp:

(BlackBerry::WebKit::InputHandler::openColorPopup):

Location:
trunk/Source/WebKit
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r127724 r127817  
     12012-09-06  Crystal Zhang  <haizhang@rim.com>
     2
     3        [BlackBerry]  Implement a color picker
     4        https://bugs.webkit.org/show_bug.cgi?id=96001
     5
     6        Reviewed by Rob Buis.
     7
     8        Add color picker files into building system.
     9
     10        * PlatformBlackBerry.cmake:
     11
    1122012-09-06  Simon Hausmann  <simon.hausmann@nokia.com>
    213
  • trunk/Source/WebKit/PlatformBlackBerry.cmake

    r125901 r127817  
    9393    blackberry/WebCoreSupport/SelectPopupClient.cpp
    9494    blackberry/WebCoreSupport/DatePickerClient.cpp
     95    blackberry/WebCoreSupport/ColorPickerClient.cpp
    9596    blackberry/WebKitSupport/AboutData.cpp
    9697    blackberry/WebKitSupport/BackingStoreCompositingSurface.cpp
  • trunk/Source/WebKit/blackberry/ChangeLog

    r127782 r127817  
     12012-09-06  Crystal Zhang  <haizhang@rim.com>
     2
     3        [BlackBerry]  Implement a color picker
     4        https://bugs.webkit.org/show_bug.cgi?id=96001
     5
     6        Reviewed by Rob Buis.
     7
     8        Add files for color picker, replace old hook to AIR color picker.
     9
     10        * WebCoreSupport/ColorPickerClient.cpp: Added.
     11        (WebCore):
     12        (WebCore::ColorPickerClient::ColorPickerClient):
     13        (WebCore::ColorPickerClient::~ColorPickerClient):
     14        (WebCore::ColorPickerClient::generateHTML):
     15        (WebCore::ColorPickerClient::closePopup):
     16        (WebCore::ColorPickerClient::contentSize):
     17        (WebCore::ColorPickerClient::htmlSource):
     18        (WebCore::ColorPickerClient::setValueAndClosePopup):
     19        (WebCore::ColorPickerClient::didClosePopup):
     20        (WebCore::ColorPickerClient::writeDocument):
     21        * WebCoreSupport/ColorPickerClient.h: Added.
     22        (WebKit):
     23        (WebCore):
     24        (ColorPickerClient):
     25        * WebKitSupport/InputHandler.cpp:
     26        (BlackBerry::WebKit::InputHandler::openColorPopup):
     27
    1282012-09-06  Genevieve Mak  <gmak@rim.com>
    229
  • trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp

    r127677 r127817  
    2424#include "CSSStyleDeclaration.h"
    2525#include "Chrome.h"
     26#include "ColorPickerClient.h"
    2627#include "DOMSupport.h"
    2728#include "DatePickerClient.h"
     
    978979    m_currentFocusElementType = TextPopup;
    979980
    980     // FIXME: Need to add pagePopup support and the colour dialog.
    981     // PR 180778
     981    // Check if popup already exists, close it if does.
     982    m_webPage->m_page->chrome()->client()->closePagePopup(0);
     983    ColorPickerClient* client = new ColorPickerClient(element->value(), m_webPage, element);
     984    m_webPage->m_page->chrome()->client()->openPagePopup(client,  WebCore::IntRect());
     985    return true;
    982986}
    983987
Note: See TracChangeset for help on using the changeset viewer.