| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #include "platform/heap/Handle.h" | 29 #include "platform/heap/Handle.h" |
| 30 #include "platform/text/TextDirection.h" | 30 #include "platform/text/TextDirection.h" |
| 31 #include "wtf/Forward.h" | 31 #include "wtf/Forward.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class Document; | 35 class Document; |
| 36 class Element; | 36 class Element; |
| 37 | 37 |
| 38 class ValidationMessageClient : public WillBeGarbageCollectedMixin { | 38 class ValidationMessageClient : public GarbageCollectedMixin { |
| 39 public: | 39 public: |
| 40 virtual ~ValidationMessageClient() { } | 40 virtual ~ValidationMessageClient() { } |
| 41 | 41 |
| 42 // Show validation message for the specified anchor element. An | 42 // Show validation message for the specified anchor element. An |
| 43 // implementation of this function may hide the message automatically after | 43 // implementation of this function may hide the message automatically after |
| 44 // some period. | 44 // some period. |
| 45 virtual void showValidationMessage(const Element& anchor, const String& main
Message, TextDirection, const String& subMessage, TextDirection) = 0; | 45 virtual void showValidationMessage(const Element& anchor, const String& main
Message, TextDirection, const String& subMessage, TextDirection) = 0; |
| 46 | 46 |
| 47 // Hide validation message for the specified anchor if the message for the | 47 // Hide validation message for the specified anchor if the message for the |
| 48 // anchor is already visible. | 48 // anchor is already visible. |
| 49 virtual void hideValidationMessage(const Element& anchor) = 0; | 49 virtual void hideValidationMessage(const Element& anchor) = 0; |
| 50 | 50 |
| 51 // Returns true if the validation message for the specified anchor element | 51 // Returns true if the validation message for the specified anchor element |
| 52 // is visible. | 52 // is visible. |
| 53 virtual bool isValidationMessageVisible(const Element& anchor) = 0; | 53 virtual bool isValidationMessageVisible(const Element& anchor) = 0; |
| 54 | 54 |
| 55 virtual void documentDetached(const Document&) = 0; | 55 virtual void documentDetached(const Document&) = 0; |
| 56 | 56 |
| 57 virtual void willBeDestroyed() = 0; | 57 virtual void willBeDestroyed() = 0; |
| 58 | 58 |
| 59 DEFINE_INLINE_VIRTUAL_TRACE() { } | 59 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace blink | 62 } // namespace blink |
| 63 | 63 |
| 64 #endif | 64 #endif |
| OLD | NEW |