| 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 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebAutofillClient_h | 31 #ifndef WebAutofillClient_h |
| 32 #define WebAutofillClient_h | 32 #define WebAutofillClient_h |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 class WebFormControlElement; | 36 class WebFormControlElement; |
| 37 class WebInputElement; | 37 class WebInputElement; |
| 38 class WebKeyboardEvent; | 38 class WebKeyboardEvent; |
| 39 class WebNode; |
| 39 | 40 |
| 40 class WebAutofillClient { | 41 class WebAutofillClient { |
| 41 public: | 42 public: |
| 42 // These methods are called when the users edits a text-field. | 43 // These methods are called when the users edits a text-field. |
| 43 virtual void TextFieldDidEndEditing(const WebInputElement&) {} | 44 virtual void TextFieldDidEndEditing(const WebInputElement&) {} |
| 44 virtual void TextFieldDidChange(const WebFormControlElement&) {} | 45 virtual void TextFieldDidChange(const WebFormControlElement&) {} |
| 45 virtual void TextFieldDidReceiveKeyDown(const WebInputElement&, | 46 virtual void TextFieldDidReceiveKeyDown(const WebInputElement&, |
| 46 const WebKeyboardEvent&) {} | 47 const WebKeyboardEvent&) {} |
| 47 // This is called when a datalist indicator is clicked. | 48 // This is called when a datalist indicator is clicked. |
| 48 virtual void OpenTextDataListChooser(const WebInputElement&) {} | 49 virtual void OpenTextDataListChooser(const WebInputElement&) {} |
| 49 // This is called when the datalist for an input has changed. | 50 // This is called when the datalist for an input has changed. |
| 50 virtual void DataListOptionsChanged(const WebInputElement&) {} | 51 virtual void DataListOptionsChanged(const WebInputElement&) {} |
| 51 // Called when the user interacts with the page after a load. | 52 // Called when the user interacts with the page after a load. |
| 52 virtual void UserGestureObserved() {} | 53 virtual void UserGestureObserved() {} |
| 53 | 54 |
| 54 virtual void DidAssociateFormControlsDynamically() {} | 55 virtual void DidAssociateFormControlsDynamically() {} |
| 55 virtual void AjaxSucceeded() {} | 56 virtual void AjaxSucceeded() {} |
| 56 | 57 |
| 58 virtual void DidCompleteFocusChangeInFrame() {} |
| 59 virtual void DidReceiveLeftMouseDownOrGestureTapInNode(const WebNode&) {} |
| 60 |
| 57 protected: | 61 protected: |
| 58 virtual ~WebAutofillClient() {} | 62 virtual ~WebAutofillClient() {} |
| 59 }; | 63 }; |
| 60 | 64 |
| 61 } // namespace blink | 65 } // namespace blink |
| 62 | 66 |
| 63 #endif | 67 #endif |
| OLD | NEW |