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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 namespace WebKit { | 34 namespace WebKit { |
35 | 35 |
36 class WebFormElement; | 36 class WebFormElement; |
37 class WebFrame; | 37 class WebFrame; |
38 class WebInputElement; | 38 class WebInputElement; |
39 class WebKeyboardEvent; | 39 class WebKeyboardEvent; |
40 class WebNode; | 40 class WebNode; |
41 class WebString; | 41 class WebString; |
42 | 42 |
43 template <typename T> class WebVector; | |
44 | |
45 class WebAutofillClient { | 43 class WebAutofillClient { |
46 public: | 44 public: |
47 enum { | 45 enum { |
48 MenuItemIDAutocompleteEntry = 0, | 46 MenuItemIDAutocompleteEntry = 0, |
49 MenuItemIDWarningMessage = -1, | 47 MenuItemIDWarningMessage = -1, |
50 MenuItemIDPasswordEntry = -2, | 48 MenuItemIDPasswordEntry = -2, |
51 MenuItemIDSeparator = -3, | 49 MenuItemIDSeparator = -3, |
52 MenuItemIDClearForm = -4, | 50 MenuItemIDClearForm = -4, |
53 MenuItemIDAutofillOptions = -5, | 51 MenuItemIDAutofillOptions = -5, |
54 MenuItemIDDataListEntry = -6 | 52 MenuItemIDDataListEntry = -6 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 const WebString& value) { } | 86 const WebString& value) { } |
89 | 87 |
90 // These methods are called when the users edits a text-field. | 88 // These methods are called when the users edits a text-field. |
91 virtual void textFieldDidEndEditing(const WebInputElement&) { } | 89 virtual void textFieldDidEndEditing(const WebInputElement&) { } |
92 virtual void textFieldDidChange(const WebInputElement&) { } | 90 virtual void textFieldDidChange(const WebInputElement&) { } |
93 virtual void textFieldDidReceiveKeyDown(const WebInputElement&, const WebKey
boardEvent&) { } | 91 virtual void textFieldDidReceiveKeyDown(const WebInputElement&, const WebKey
boardEvent&) { } |
94 | 92 |
95 // Informs the client whether or not any subsequent text changes should be i
gnored. | 93 // Informs the client whether or not any subsequent text changes should be i
gnored. |
96 virtual void setIgnoreTextChanges(bool ignore) { } | 94 virtual void setIgnoreTextChanges(bool ignore) { } |
97 | 95 |
98 virtual void didAssociateFormControls(const WebVector<WebNode>&) { } | |
99 | |
100 protected: | 96 protected: |
101 virtual ~WebAutofillClient() { } | 97 virtual ~WebAutofillClient() { } |
102 }; | 98 }; |
103 | 99 |
104 } // namespace WebKit | 100 } // namespace WebKit |
105 | 101 |
106 #endif | 102 #endif |
OLD | NEW |