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 16 matching lines...) Expand all Loading... |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
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 WebFormElement; | |
38 class WebInputElement; | 37 class WebInputElement; |
39 class WebKeyboardEvent; | 38 class WebKeyboardEvent; |
40 class WebNode; | |
41 | |
42 template <typename T> | |
43 class WebVector; | |
44 | 39 |
45 class WebAutofillClient { | 40 class WebAutofillClient { |
46 public: | 41 public: |
47 // These methods are called when the users edits a text-field. | 42 // These methods are called when the users edits a text-field. |
48 virtual void textFieldDidEndEditing(const WebInputElement&) {} | 43 virtual void textFieldDidEndEditing(const WebInputElement&) {} |
49 virtual void textFieldDidChange(const WebFormControlElement&) {} | 44 virtual void textFieldDidChange(const WebFormControlElement&) {} |
50 virtual void textFieldDidReceiveKeyDown(const WebInputElement&, | 45 virtual void textFieldDidReceiveKeyDown(const WebInputElement&, |
51 const WebKeyboardEvent&) {} | 46 const WebKeyboardEvent&) {} |
52 // This is called when a datalist indicator is clicked. | 47 // This is called when a datalist indicator is clicked. |
53 virtual void openTextDataListChooser(const WebInputElement&) {} | 48 virtual void openTextDataListChooser(const WebInputElement&) {} |
54 // This is called when the datalist for an input has changed. | 49 // This is called when the datalist for an input has changed. |
55 virtual void dataListOptionsChanged(const WebInputElement&) {} | 50 virtual void dataListOptionsChanged(const WebInputElement&) {} |
56 // Called the first time the user interacts with the page after a load. | 51 // Called the first time the user interacts with the page after a load. |
57 virtual void firstUserGestureObserved() {} | 52 virtual void firstUserGestureObserved() {} |
58 | 53 |
59 // Informs the client whether or not any subsequent text changes should be | 54 // Informs the client whether or not any subsequent text changes should be |
60 // ignored. | 55 // ignored. |
61 virtual void setIgnoreTextChanges(bool ignore) {} | 56 virtual void setIgnoreTextChanges(bool ignore) {} |
62 | 57 |
63 virtual void didAssociateFormControlsDynamically() {} | 58 virtual void didAssociateFormControlsDynamically() {} |
64 virtual void ajaxSucceeded() {} | 59 virtual void ajaxSucceeded() {} |
65 | 60 |
66 protected: | 61 protected: |
67 virtual ~WebAutofillClient() {} | 62 virtual ~WebAutofillClient() {} |
68 }; | 63 }; |
69 | 64 |
70 } // namespace blink | 65 } // namespace blink |
71 | 66 |
72 #endif | 67 #endif |
OLD | NEW |