| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 class HTMLFormControlElement; | 40 class HTMLFormControlElement; |
| 41 class Node; | 41 class Node; |
| 42 class ValidationMessageClient; | 42 class ValidationMessageClient; |
| 43 | 43 |
| 44 // FIXME: Fold this class into HTMLFormControlElement. This class is very small. | 44 // FIXME: Fold this class into HTMLFormControlElement. This class is very small. |
| 45 class ValidationMessage { | 45 class ValidationMessage { |
| 46 WTF_MAKE_NONCOPYABLE(ValidationMessage); WTF_MAKE_FAST_ALLOCATED; | 46 WTF_MAKE_NONCOPYABLE(ValidationMessage); WTF_MAKE_FAST_ALLOCATED; |
| 47 public: | 47 public: |
| 48 static PassOwnPtr<ValidationMessage> create(HTMLFormControlElement*); | 48 static PassOwnPtr<ValidationMessage> create(HTMLFormControlElement*); |
| 49 ~ValidationMessage(); | 49 ~ValidationMessage(); |
| 50 void updateValidationMessage(const String&); | 50 void updateValidationMessage(const String&, bool); |
| 51 void requestToHideMessage(); | 51 void requestToHideMessage(); |
| 52 bool isVisible() const; | 52 bool isVisible() const; |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 ValidationMessage(HTMLFormControlElement*); | 55 ValidationMessage(HTMLFormControlElement*); |
| 56 ValidationMessageClient* validationMessageClient() const; | 56 ValidationMessageClient* validationMessageClient() const; |
| 57 | 57 |
| 58 HTMLFormControlElement* m_element; | 58 HTMLFormControlElement* m_element; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace WebCore | 61 } // namespace WebCore |
| 62 | 62 |
| 63 #endif // ValidationMessage_h | 63 #endif // ValidationMessage_h |
| OLD | NEW |