OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 { | 52 { |
53 return adoptRef(new ProgressEvent(type, initializer)); | 53 return adoptRef(new ProgressEvent(type, initializer)); |
54 } | 54 } |
55 | 55 |
56 bool lengthComputable() const { return m_lengthComputable; } | 56 bool lengthComputable() const { return m_lengthComputable; } |
57 unsigned long long loaded() const { return m_loaded; } | 57 unsigned long long loaded() const { return m_loaded; } |
58 unsigned long long total() const { return m_total; } | 58 unsigned long long total() const { return m_total; } |
59 | 59 |
60 virtual const AtomicString& interfaceName() const OVERRIDE; | 60 virtual const AtomicString& interfaceName() const OVERRIDE; |
61 | 61 |
| 62 virtual void trace(Visitor*) OVERRIDE; |
| 63 |
62 protected: | 64 protected: |
63 ProgressEvent(); | 65 ProgressEvent(); |
64 ProgressEvent(const AtomicString& type, bool lengthComputable, unsigned long
long loaded, unsigned long long total); | 66 ProgressEvent(const AtomicString& type, bool lengthComputable, unsigned long
long loaded, unsigned long long total); |
65 ProgressEvent(const AtomicString&, const ProgressEventInit&); | 67 ProgressEvent(const AtomicString&, const ProgressEventInit&); |
66 | 68 |
67 private: | 69 private: |
68 bool m_lengthComputable; | 70 bool m_lengthComputable; |
69 unsigned long long m_loaded; | 71 unsigned long long m_loaded; |
70 unsigned long long m_total; | 72 unsigned long long m_total; |
71 }; | 73 }; |
72 } | 74 } |
73 | 75 |
74 #endif // ProgressEvent_h | 76 #endif // ProgressEvent_h |
OLD | NEW |