Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef TrackDefaultList_h | |
| 6 #define TrackDefaultList_h | |
| 7 | |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | |
| 9 #include "modules/mediasource/TrackDefault.h" | |
| 10 #include "platform/heap/Handle.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 class ExceptionState; | |
| 15 | |
| 16 class TrackDefaultList final : public GarbageCollectedFinalized<TrackDefaultList >, public ScriptWrappable { | |
| 17 DEFINE_WRAPPERTYPEINFO(); | |
| 18 public: | |
| 19 static TrackDefaultList* create(const Vector<TrackDefault>& trackDefaults, E xceptionState& exceptionState) | |
| 20 { | |
| 21 return new TrackDefaultList(trackDefaults, exceptionState); | |
| 22 } | |
| 23 | |
| 24 virtual ~TrackDefaultList() { } | |
| 25 | |
| 26 // Implement the IDL | |
| 27 unsigned long length() const { return m_trackDefaults.size(); } | |
|
philipj_slow
2014/11/14 12:12:27
Just unsigned, see https://codereview.chromium.org
wolenetz
2014/12/03 01:09:56
Done, and done for item(), too. Thanks for pointin
| |
| 28 TrackDefault* item(unsigned long) const; | |
| 29 | |
| 30 void trace(Visitor* visitor) { visitor->trace(m_trackDefaults); } | |
| 31 | |
| 32 private: | |
| 33 TrackDefaultList(const Vector<TrackDefault>&, ExceptionState&); | |
| 34 | |
| 35 HeapVector<Member<TrackDefault> > m_trackDefaults; | |
|
philipj_slow
2014/11/14 12:12:27
The extra space in nested templates is no longer r
wolenetz
2014/12/03 01:09:56
Done.
| |
| 36 }; | |
| 37 | |
| 38 } // namespace blink | |
| 39 | |
| 40 #endif // TrackDefaultList_h | |
| OLD | NEW |