OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2009 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 21 matching lines...) Expand all Loading... |
32 #include "wtf/RefCounted.h" | 32 #include "wtf/RefCounted.h" |
33 #include "wtf/Vector.h" | 33 #include "wtf/Vector.h" |
34 | 34 |
35 #include <algorithm> | 35 #include <algorithm> |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class ExceptionState; | 39 class ExceptionState; |
40 | 40 |
41 class TimeRanges : public RefCountedWillBeGarbageCollected<TimeRanges>, public S
criptWrappable { | 41 class TimeRanges : public RefCountedWillBeGarbageCollected<TimeRanges>, public S
criptWrappable { |
| 42 DEFINE_WRAPPERTYPEINFO(); |
42 public: | 43 public: |
43 // We consider all the Ranges to be semi-bounded as follow: [start, end[ | 44 // We consider all the Ranges to be semi-bounded as follow: [start, end[ |
44 struct Range { | 45 struct Range { |
45 ALLOW_ONLY_INLINE_ALLOCATION(); | 46 ALLOW_ONLY_INLINE_ALLOCATION(); |
46 public: | 47 public: |
47 Range() { } | 48 Range() { } |
48 Range(double start, double end) | 49 Range(double start, double end) |
49 { | 50 { |
50 m_start = start; | 51 m_start = start; |
51 m_end = end; | 52 m_end = end; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 123 |
123 void invert(); | 124 void invert(); |
124 | 125 |
125 WillBeHeapVector<Range> m_ranges; | 126 WillBeHeapVector<Range> m_ranges; |
126 }; | 127 }; |
127 | 128 |
128 } // namespace blink | 129 } // namespace blink |
129 | 130 |
130 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TimeRanges::Range); | 131 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TimeRanges::Range); |
131 | 132 |
132 #endif | 133 #endif // TimeRanges_h |
OLD | NEW |