OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/shapedetection/DetectedBarcode.h" | 5 #include "modules/shapedetection/DetectedBarcode.h" |
6 | 6 |
7 #include "core/dom/DOMRect.h" | 7 #include "core/geometry/DOMRect.h" |
8 | 8 |
9 namespace blink { | 9 namespace blink { |
10 | 10 |
11 DetectedBarcode* DetectedBarcode::create() { | 11 DetectedBarcode* DetectedBarcode::create() { |
12 HeapVector<Point2D> emptyList; | 12 HeapVector<Point2D> emptyList; |
13 return new DetectedBarcode(emptyString, DOMRect::create(0, 0, 0, 0), | 13 return new DetectedBarcode(emptyString, DOMRect::create(0, 0, 0, 0), |
14 emptyList); | 14 emptyList); |
15 } | 15 } |
16 | 16 |
17 DetectedBarcode* DetectedBarcode::create(String rawValue, | 17 DetectedBarcode* DetectedBarcode::create(String rawValue, |
(...skipping 20 matching lines...) Expand all Loading... |
38 : m_rawValue(rawValue), | 38 : m_rawValue(rawValue), |
39 m_boundingBox(boundingBox), | 39 m_boundingBox(boundingBox), |
40 m_cornerPoints(cornerPoints) {} | 40 m_cornerPoints(cornerPoints) {} |
41 | 41 |
42 DEFINE_TRACE(DetectedBarcode) { | 42 DEFINE_TRACE(DetectedBarcode) { |
43 visitor->trace(m_boundingBox); | 43 visitor->trace(m_boundingBox); |
44 visitor->trace(m_cornerPoints); | 44 visitor->trace(m_cornerPoints); |
45 } | 45 } |
46 | 46 |
47 } // namespace blink | 47 } // namespace blink |
OLD | NEW |