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

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

Issue 15376006: Added window.internals.isColorChooserShown() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 06278c1366ac3fb808f5ae2d3ebb4685e55d9bad..da4e98f83893c14a4085c9f91b9de79723314d98 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -686,6 +686,17 @@ void Internals::selectColorInColorChooser(Element* element, const String& colorV
return;
inputElement->selectColorInColorChooser(Color(colorValue));
}
+
+bool Internals::isColorChooserShown(Element* element)
+{
+ if (!element->hasTagName(inputTag))
+ return false;
+ HTMLInputElement* inputElement = element->toInputElement();
+ if (!inputElement)
+ return false;
+ return inputElement->isColorChooserShown();
+}
+
#endif
Vector<String> Internals::formControlStateOfPreviousHistoryItem(ExceptionCode& ec)

Powered by Google App Engine
This is Rietveld 408576698