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

Unified Diff: Source/core/testing/Internals.cpp

Issue 513783002: Dispatch change event for input type=color when colorpicker is closed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added didEndChooser in InputType to avoid static cast Created 6 years, 3 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/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index c289f175b9365d345a6a01f94a290b8467490a8f..39283d4d4eb59b1ecfe3144848bf20732bad7db4 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -644,6 +644,14 @@ void Internals::selectColorInColorChooser(Element* element, const String& colorV
toHTMLInputElement(*element).selectColorInColorChooser(color);
}
+void Internals::endColorChooser(Element* element)
+{
+ ASSERT(element);
+ if (!isHTMLInputElement(*element))
+ return;
+ toHTMLInputElement(*element).endColorChooser();
+}
+
bool Internals::hasAutofocusRequest(Document* document)
{
if (!document)

Powered by Google App Engine
This is Rietveld 408576698