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

Unified Diff: Source/core/html/ColorInputType.h

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/html/ColorInputType.h
diff --git a/Source/core/html/ColorInputType.h b/Source/core/html/ColorInputType.h
index 79477dd8cc423de6d7fb1926274dcd647549e827..001b9dac1662470e962bed34e9d13f6dcdd5b7de 100644
--- a/Source/core/html/ColorInputType.h
+++ b/Source/core/html/ColorInputType.h
@@ -50,6 +50,8 @@ public:
virtual bool shouldShowSuggestions() const OVERRIDE;
virtual Vector<Color> suggestions() const OVERRIDE;
+ bool hasChooser() const { return m_chooser.get(); }
+
private:
ColorInputType(HTMLInputElement* element) : BaseClickableWithKeyInputType(element) { }
virtual void attach() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698