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. |