Chromium Code Reviews

Unified Diff: Source/core/page/ValidationMessageClient.h

Issue 389343002: Custom validation message to take into account text direction (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix failing test Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: Source/core/page/ValidationMessageClient.h
diff --git a/Source/core/page/ValidationMessageClient.h b/Source/core/page/ValidationMessageClient.h
index ae2354cd578779bb3d6a26f62cf3ae61fd1db157..05378ca27458fe02be31dae05a4061e7eecaf932 100644
--- a/Source/core/page/ValidationMessageClient.h
+++ b/Source/core/page/ValidationMessageClient.h
@@ -34,14 +34,20 @@ namespace WebCore {
class Document;
class Element;
+
class ValidationMessageClient : public WillBeGarbageCollectedMixin {
public:
+ enum MessageType {
+ CannedMessage,
+ CustomMessage
+ };
+
virtual ~ValidationMessageClient() { }
// Show validation message for the specified anchor element. An
// implementation of this function may hide the message automatically after
// some period.
- virtual void showValidationMessage(const Element& anchor, const String& message) = 0;
+ virtual void showValidationMessage(const Element& anchor, const String& message, MessageType) = 0;
// Hide validation message for the specified anchor if the message for the
// anchor is already visible.

Powered by Google App Engine