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 23 matching lines...) Expand all Loading... |
34 class Document; | 34 class Document; |
35 class Element; | 35 class Element; |
36 | 36 |
37 class ValidationMessageClient : public WillBeGarbageCollectedMixin { | 37 class ValidationMessageClient : public WillBeGarbageCollectedMixin { |
38 public: | 38 public: |
39 virtual ~ValidationMessageClient() { } | 39 virtual ~ValidationMessageClient() { } |
40 | 40 |
41 // Show validation message for the specified anchor element. An | 41 // Show validation message for the specified anchor element. An |
42 // implementation of this function may hide the message automatically after | 42 // implementation of this function may hide the message automatically after |
43 // some period. | 43 // some period. |
44 virtual void showValidationMessage(const Element& anchor, const String& mess
age) = 0; | 44 virtual void showValidationMessage(const Element& anchor, const String& mess
age, bool customError) = 0; |
45 | 45 |
46 // Hide validation message for the specified anchor if the message for the | 46 // Hide validation message for the specified anchor if the message for the |
47 // anchor is already visible. | 47 // anchor is already visible. |
48 virtual void hideValidationMessage(const Element& anchor) = 0; | 48 virtual void hideValidationMessage(const Element& anchor) = 0; |
49 | 49 |
50 // Returns true if the validation message for the specified anchor element | 50 // Returns true if the validation message for the specified anchor element |
51 // is visible. | 51 // is visible. |
52 virtual bool isValidationMessageVisible(const Element& anchor) = 0; | 52 virtual bool isValidationMessageVisible(const Element& anchor) = 0; |
53 | 53 |
54 virtual void documentDetached(const Document&) = 0; | 54 virtual void documentDetached(const Document&) = 0; |
55 | 55 |
56 virtual void willBeDestroyed() = 0; | 56 virtual void willBeDestroyed() = 0; |
57 | 57 |
58 virtual void trace(Visitor*) { } | 58 virtual void trace(Visitor*) { } |
59 }; | 59 }; |
60 | 60 |
61 } | 61 } |
62 | 62 |
63 #endif | 63 #endif |
OLD | NEW |