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 26 matching lines...) Expand all Loading... |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class ExceptionState; | 40 class ExceptionState; |
41 | 41 |
42 class CORE_EXPORT TimeRanges : public GarbageCollectedFinalized<TimeRanges>, pub
lic ScriptWrappable { | 42 class CORE_EXPORT TimeRanges : public GarbageCollectedFinalized<TimeRanges>, pub
lic ScriptWrappable { |
43 DEFINE_WRAPPERTYPEINFO(); | 43 DEFINE_WRAPPERTYPEINFO(); |
44 public: | 44 public: |
45 // We consider all the Ranges to be semi-bounded as follow: [start, end[ | 45 // We consider all the Ranges to be semi-bounded as follow: [start, end[ |
46 struct Range { | 46 struct Range { |
47 ALLOW_ONLY_INLINE_ALLOCATION(); | 47 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
48 public: | 48 public: |
49 Range() { } | 49 Range() { } |
50 Range(double start, double end) | 50 Range(double start, double end) |
51 { | 51 { |
52 m_start = start; | 52 m_start = start; |
53 m_end = end; | 53 m_end = end; |
54 } | 54 } |
55 double m_start; | 55 double m_start; |
56 double m_end; | 56 double m_end; |
57 | 57 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 TimeRanges(double start, double end); | 118 TimeRanges(double start, double end); |
119 | 119 |
120 void invert(); | 120 void invert(); |
121 | 121 |
122 Vector<Range> m_ranges; | 122 Vector<Range> m_ranges; |
123 }; | 123 }; |
124 | 124 |
125 } // namespace blink | 125 } // namespace blink |
126 | 126 |
127 #endif // TimeRanges_h | 127 #endif // TimeRanges_h |
OLD | NEW |