OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 25 matching lines...) Expand all Loading... |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 XMLHttpRequestUpload::XMLHttpRequestUpload(XMLHttpRequest* xmlHttpRequest) | 38 XMLHttpRequestUpload::XMLHttpRequestUpload(XMLHttpRequest* xmlHttpRequest) |
39 : m_xmlHttpRequest(xmlHttpRequest) | 39 : m_xmlHttpRequest(xmlHttpRequest) |
40 { | 40 { |
41 ScriptWrappable::init(this); | 41 ScriptWrappable::init(this); |
42 } | 42 } |
43 | 43 |
44 const AtomicString& XMLHttpRequestUpload::interfaceName() const | 44 const AtomicString& XMLHttpRequestUpload::interfaceName() const |
45 { | 45 { |
46 return eventNames().interfaceForXMLHttpRequestUpload; | 46 return EventTargetNames::XMLHttpRequestUpload; |
47 } | 47 } |
48 | 48 |
49 ExecutionContext* XMLHttpRequestUpload::executionContext() const | 49 ExecutionContext* XMLHttpRequestUpload::executionContext() const |
50 { | 50 { |
51 return m_xmlHttpRequest->executionContext(); | 51 return m_xmlHttpRequest->executionContext(); |
52 } | 52 } |
53 | 53 |
54 void XMLHttpRequestUpload::dispatchEventAndLoadEnd(PassRefPtr<Event> event) | 54 void XMLHttpRequestUpload::dispatchEventAndLoadEnd(PassRefPtr<Event> event) |
55 { | 55 { |
56 ASSERT(event->type() == EventTypeNames::load || event->type() == EventTypeNa
mes::abort || event->type() == EventTypeNames::error || event->type() == EventTy
peNames::timeout); | 56 ASSERT(event->type() == EventTypeNames::load || event->type() == EventTypeNa
mes::abort || event->type() == EventTypeNames::error || event->type() == EventTy
peNames::timeout); |
57 | 57 |
58 dispatchEvent(event); | 58 dispatchEvent(event); |
59 dispatchEvent(XMLHttpRequestProgressEvent::create(EventTypeNames::loadend)); | 59 dispatchEvent(XMLHttpRequestProgressEvent::create(EventTypeNames::loadend)); |
60 } | 60 } |
61 | 61 |
62 | 62 |
63 | 63 |
64 } // namespace WebCore | 64 } // namespace WebCore |
OLD | NEW |