void ColorChooserPopupUIController::openUI() { if (m_client->shouldShowSuggestions()) openPopup(); else openColorChooser(); }
ColorChooserUIController::ColorChooserUIController(ChromeClientImpl* chromeClient, WebCore::ColorChooserClient* client) : m_chromeClient(chromeClient) , m_client(client) , m_popup(0) { if (m_client->shouldShowSuggestions()) openPopup(); else openColorChooser(); }
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(); }
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(); }
void ColorChooserUIController::openUI() { openColorChooser(); }