| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 String FormSubmission::Attributes::methodString(SubmitMethod method) { | 122 String FormSubmission::Attributes::methodString(SubmitMethod method) { |
| 123 switch (method) { | 123 switch (method) { |
| 124 case GetMethod: | 124 case GetMethod: |
| 125 return "get"; | 125 return "get"; |
| 126 case PostMethod: | 126 case PostMethod: |
| 127 return "post"; | 127 return "post"; |
| 128 case DialogMethod: | 128 case DialogMethod: |
| 129 return "dialog"; | 129 return "dialog"; |
| 130 } | 130 } |
| 131 NOTREACHED(); | 131 NOTREACHED(); |
| 132 return emptyString(); | 132 return emptyString; |
| 133 } | 133 } |
| 134 | 134 |
| 135 void FormSubmission::Attributes::copyFrom(const Attributes& other) { | 135 void FormSubmission::Attributes::copyFrom(const Attributes& other) { |
| 136 m_method = other.m_method; | 136 m_method = other.m_method; |
| 137 m_isMultiPartForm = other.m_isMultiPartForm; | 137 m_isMultiPartForm = other.m_isMultiPartForm; |
| 138 | 138 |
| 139 m_action = other.m_action; | 139 m_action = other.m_action; |
| 140 m_target = other.m_target; | 140 m_target = other.m_target; |
| 141 m_encodingType = other.m_encodingType; | 141 m_encodingType = other.m_encodingType; |
| 142 m_acceptCharset = other.m_acceptCharset; | 142 m_acceptCharset = other.m_acceptCharset; |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 | 306 |
| 307 frameRequest.resourceRequest().setURL(requestURL()); | 307 frameRequest.resourceRequest().setURL(requestURL()); |
| 308 | 308 |
| 309 frameRequest.setTriggeringEvent(m_event); | 309 frameRequest.setTriggeringEvent(m_event); |
| 310 frameRequest.setForm(m_form); | 310 frameRequest.setForm(m_form); |
| 311 | 311 |
| 312 return frameRequest; | 312 return frameRequest; |
| 313 } | 313 } |
| 314 | 314 |
| 315 } // namespace blink | 315 } // namespace blink |
| OLD | NEW |