Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1454)

Unified Diff: Source/web/ColorChooserUIController.cpp

Issue 23236002: Prepare for color input datalist support on Android (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/web/ColorChooserUIController.cpp
diff --git a/Source/web/ColorChooserUIController.cpp b/Source/web/ColorChooserUIController.cpp
index 125d2e6808dd8d968dd9defb6e79a21f157c714e..ddc08d47a3dcb04d2e8b21c7c28bc5f060d07bb1 100644
--- a/Source/web/ColorChooserUIController.cpp
+++ b/Source/web/ColorChooserUIController.cpp
@@ -28,6 +28,9 @@
#include "ChromeClientImpl.h"
#include "WebColorChooser.h"
+#include "WebColorSuggestion.h"
+#include "WebViewClient.h"
+#include "WebViewImpl.h"
#include "core/platform/ColorChooserClient.h"
#include "core/platform/graphics/Color.h"
#include "public/platform/WebColor.h"
@@ -80,7 +83,10 @@ void ColorChooserUIController::didEndChooser()
void ColorChooserUIController::openColorChooser()
{
ASSERT(!m_chooser);
- m_chooser = m_chromeClient->createWebColorChooser(this, static_cast<WebColor>(m_client->currentColor().rgb()));
+ WebViewClient* webViewClient = static_cast<WebViewImpl*>(m_chromeClient->webView())->client();
+ if (!webViewClient)
+ return;
+ webViewClient->createColorChooser(this, static_cast<WebColor>(m_client->currentColor().rgb()), m_client->suggestions());
}
} // namespace WebKit

Powered by Google App Engine
This is Rietveld 408576698