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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 } | 54 } |
55 void assign(const WebFormControlElement& e) { WebElement::assign(e); } | 55 void assign(const WebFormControlElement& e) { WebElement::assign(e); } |
56 | 56 |
57 BLINK_EXPORT bool isEnabled() const; | 57 BLINK_EXPORT bool isEnabled() const; |
58 BLINK_EXPORT bool isReadOnly() const; | 58 BLINK_EXPORT bool isReadOnly() const; |
59 BLINK_EXPORT WebString formControlName() const; | 59 BLINK_EXPORT WebString formControlName() const; |
60 BLINK_EXPORT WebString formControlType() const; | 60 BLINK_EXPORT WebString formControlType() const; |
61 | 61 |
62 BLINK_EXPORT void dispatchFormControlChangeEvent(); | 62 BLINK_EXPORT void dispatchFormControlChangeEvent(); |
63 | 63 |
| 64 BLINK_EXPORT bool isAutofilled() const; |
| 65 BLINK_EXPORT void setAutofilled(bool); |
| 66 |
64 // Returns the name that should be used for the specified |element| when | 67 // Returns the name that should be used for the specified |element| when |
65 // storing autofill data. This is either the field name or its id, an empty | 68 // storing autofill data. This is either the field name or its id, an empty |
66 // string if it has no name and no id. | 69 // string if it has no name and no id. |
67 BLINK_EXPORT WebString nameForAutofill() const; | 70 BLINK_EXPORT WebString nameForAutofill() const; |
68 | 71 |
69 BLINK_EXPORT WebFormElement form() const; | 72 BLINK_EXPORT WebFormElement form() const; |
70 | 73 |
71 #if BLINK_IMPLEMENTATION | 74 #if BLINK_IMPLEMENTATION |
72 WebFormControlElement(const WTF::PassRefPtr<WebCore::HTMLFormControlElement>
&); | 75 WebFormControlElement(const WTF::PassRefPtr<WebCore::HTMLFormControlElement>
&); |
73 WebFormControlElement& operator=(const WTF::PassRefPtr<WebCore::HTMLFormCont
rolElement>&); | 76 WebFormControlElement& operator=(const WTF::PassRefPtr<WebCore::HTMLFormCont
rolElement>&); |
74 operator WTF::PassRefPtr<WebCore::HTMLFormControlElement>() const; | 77 operator WTF::PassRefPtr<WebCore::HTMLFormControlElement>() const; |
75 #endif | 78 #endif |
76 }; | 79 }; |
77 | 80 |
78 } // namespace WebKit | 81 } // namespace WebKit |
79 | 82 |
80 #endif | 83 #endif |
OLD | NEW |