| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2013 Google Inc. All rights reserved. | 2  * Copyright (C) 2013 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 26 matching lines...) Expand all  Loading... | 
| 37 | 37 | 
| 38 class WebString; | 38 class WebString; | 
| 39 struct WebRect; | 39 struct WebRect; | 
| 40 | 40 | 
| 41 // Client interface to handle form validation message UI. | 41 // Client interface to handle form validation message UI. | 
| 42 class WebValidationMessageClient { | 42 class WebValidationMessageClient { | 
| 43 public: | 43 public: | 
| 44     // Show a notification popup for the specified form vaidation messages | 44     // Show a notification popup for the specified form vaidation messages | 
| 45     // besides the anchor rectangle. An implementation of this function should | 45     // besides the anchor rectangle. An implementation of this function should | 
| 46     // not hide the popup until hideValidationMessage call. | 46     // not hide the popup until hideValidationMessage call. | 
| 47     virtual void showValidationMessage(const WebRect& anchorInScreen, const WebS
    tring& mainText, const WebString& supplementalText, WebTextDirection hint) { } | 47     virtual void showValidationMessage(const WebRect& anchorInRootView, const We
    bString& mainText, const WebString& supplementalText, WebTextDirection hint) { } | 
| 48 | 48 | 
| 49     // Hide notifation popup for form validation messages. | 49     // Hide notifation popup for form validation messages. | 
| 50     virtual void hideValidationMessage() { } | 50     virtual void hideValidationMessage() { } | 
| 51 | 51 | 
|  | 52     // Move the existing notifation popup for the new anchor position. | 
|  | 53     virtual void moveValidationMessage(const WebRect& anchorInRootView) { } | 
| 52 | 54 | 
| 53 protected: | 55 protected: | 
| 54     virtual ~WebValidationMessageClient() { } | 56     virtual ~WebValidationMessageClient() { } | 
| 55 }; | 57 }; | 
| 56 | 58 | 
| 57 } // namespace WebKit | 59 } // namespace WebKit | 
| 58 | 60 | 
| 59 #endif | 61 #endif | 
| OLD | NEW | 
|---|