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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 } | 45 } |
46 static PassRefPtrWillBeRawPtr<ProgressEvent> create(const AtomicString& type
, const ProgressEventInit& initializer) | 46 static PassRefPtrWillBeRawPtr<ProgressEvent> create(const AtomicString& type
, const ProgressEventInit& initializer) |
47 { | 47 { |
48 return adoptRefWillBeNoop(new ProgressEvent(type, initializer)); | 48 return adoptRefWillBeNoop(new ProgressEvent(type, initializer)); |
49 } | 49 } |
50 | 50 |
51 bool lengthComputable() const { return m_lengthComputable; } | 51 bool lengthComputable() const { return m_lengthComputable; } |
52 unsigned long long loaded() const { return m_loaded; } | 52 unsigned long long loaded() const { return m_loaded; } |
53 unsigned long long total() const { return m_total; } | 53 unsigned long long total() const { return m_total; } |
54 | 54 |
55 virtual const AtomicString& interfaceName() const override; | 55 const AtomicString& interfaceName() const override; |
56 | 56 |
57 DECLARE_VIRTUAL_TRACE(); | 57 DECLARE_VIRTUAL_TRACE(); |
58 | 58 |
59 protected: | 59 protected: |
60 ProgressEvent(); | 60 ProgressEvent(); |
61 ProgressEvent(const AtomicString& type, bool lengthComputable, unsigned long
long loaded, unsigned long long total); | 61 ProgressEvent(const AtomicString& type, bool lengthComputable, unsigned long
long loaded, unsigned long long total); |
62 ProgressEvent(const AtomicString&, const ProgressEventInit&); | 62 ProgressEvent(const AtomicString&, const ProgressEventInit&); |
63 | 63 |
64 private: | 64 private: |
65 bool m_lengthComputable; | 65 bool m_lengthComputable; |
66 unsigned long long m_loaded; | 66 unsigned long long m_loaded; |
67 unsigned long long m_total; | 67 unsigned long long m_total; |
68 }; | 68 }; |
69 | 69 |
70 } // namespace blink | 70 } // namespace blink |
71 | 71 |
72 #endif // ProgressEvent_h | 72 #endif // ProgressEvent_h |
OLD | NEW |