OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 WebString WebFormElement::name() const | 55 WebString WebFormElement::name() const |
56 { | 56 { |
57 return constUnwrap<HTMLFormElement>()->name(); | 57 return constUnwrap<HTMLFormElement>()->name(); |
58 } | 58 } |
59 | 59 |
60 WebString WebFormElement::method() const | 60 WebString WebFormElement::method() const |
61 { | 61 { |
62 return constUnwrap<HTMLFormElement>()->method(); | 62 return constUnwrap<HTMLFormElement>()->method(); |
63 } | 63 } |
64 | 64 |
65 bool WebFormElement::wasUserSubmitted() const | |
66 { | |
67 return constUnwrap<HTMLFormElement>()->wasUserSubmitted(); | |
68 } | |
69 | |
70 void WebFormElement::getNamedElements(const WebString& name, | 65 void WebFormElement::getNamedElements(const WebString& name, |
71 WebVector<WebNode>& result) | 66 WebVector<WebNode>& result) |
72 { | 67 { |
73 WillBeHeapVector<RefPtrWillBeMember<Element>> tempVector; | 68 WillBeHeapVector<RefPtrWillBeMember<Element>> tempVector; |
74 unwrap<HTMLFormElement>()->getNamedElements(name, tempVector); | 69 unwrap<HTMLFormElement>()->getNamedElements(name, tempVector); |
75 result.assign(tempVector); | 70 result.assign(tempVector); |
76 } | 71 } |
77 | 72 |
78 void WebFormElement::getFormControlElements(WebVector<WebFormControlElement>& re
sult) const | 73 void WebFormElement::getFormControlElements(WebVector<WebFormControlElement>& re
sult) const |
79 { | 74 { |
(...skipping 30 matching lines...) Expand all Loading... |
110 m_private = e; | 105 m_private = e; |
111 return *this; | 106 return *this; |
112 } | 107 } |
113 | 108 |
114 WebFormElement::operator PassRefPtrWillBeRawPtr<HTMLFormElement>() const | 109 WebFormElement::operator PassRefPtrWillBeRawPtr<HTMLFormElement>() const |
115 { | 110 { |
116 return toHTMLFormElement(m_private.get()); | 111 return toHTMLFormElement(m_private.get()); |
117 } | 112 } |
118 | 113 |
119 } // namespace blink | 114 } // namespace blink |
OLD | NEW |