| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "modules/mediarecorder/BlobEvent.h" | 5 #include "modules/mediarecorder/BlobEvent.h" |
| 6 | 6 |
| 7 #include "modules/mediarecorder/BlobEventInit.h" | 7 #include "modules/mediarecorder/BlobEventInit.h" |
| 8 #include "wtf/dtoa/double.h" | 8 #include "platform/wtf/dtoa/double.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 // static | 12 // static |
| 13 BlobEvent* BlobEvent::Create(const AtomicString& type, | 13 BlobEvent* BlobEvent::Create(const AtomicString& type, |
| 14 const BlobEventInit& initializer) { | 14 const BlobEventInit& initializer) { |
| 15 return new BlobEvent(type, initializer); | 15 return new BlobEvent(type, initializer); |
| 16 } | 16 } |
| 17 | 17 |
| 18 // static | 18 // static |
| (...skipping 18 matching lines...) Expand all Loading... |
| 37 timecode_(initializer.hasTimecode() | 37 timecode_(initializer.hasTimecode() |
| 38 ? initializer.timecode() | 38 ? initializer.timecode() |
| 39 : WTF::double_conversion::Double::NaN()) {} | 39 : WTF::double_conversion::Double::NaN()) {} |
| 40 | 40 |
| 41 BlobEvent::BlobEvent(const AtomicString& type, Blob* blob, double timecode) | 41 BlobEvent::BlobEvent(const AtomicString& type, Blob* blob, double timecode) |
| 42 : Event(type, false /* canBubble */, false /* cancelable */), | 42 : Event(type, false /* canBubble */, false /* cancelable */), |
| 43 blob_(blob), | 43 blob_(blob), |
| 44 timecode_(timecode) {} | 44 timecode_(timecode) {} |
| 45 | 45 |
| 46 } // namespace blink | 46 } // namespace blink |
| OLD | NEW |