void ColorChooserPopupUIController::openUI()
{
    if (m_client->shouldShowSuggestions())
        openPopup();
    else
        openColorChooser();
}
예제 #2
0
ColorChooserUIController::ColorChooserUIController(ChromeClientImpl* chromeClient, WebCore::ColorChooserClient* client)
    : m_chromeClient(chromeClient)
    , m_client(client)
    , m_popup(0)
{
    if (m_client->shouldShowSuggestions())
        openPopup();
    else
        openColorChooser();
}
예제 #3
0
void ColorChooserUIController::setValueAndClosePopup(int numValue, const String& stringValue)
{
    ASSERT(m_popup);
    ASSERT(m_client);
    if (numValue == ColorPickerPopupActionSetValue)
        m_client->didChooseColor(WebCore::Color(stringValue));
    if (numValue == ColorPickerPopupActionChooseOtherColor)
        openColorChooser();
    closePopup();
}
예제 #4
0
ColorChooserUIController::ColorChooserUIController(ChromeClientImpl* chromeClient, ColorChooserClient* client)
    : m_chromeClient(chromeClient)
    , m_client(client)
    , m_popup(0)
    , m_locale(Locale::createDefault())
{
    if (m_client->shouldShowSuggestions())
        openPopup();
    else
        openColorChooser();
}
예제 #5
0
void ColorChooserUIController::openUI() {
  openColorChooser();
}