Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.cpp

Issue 2502723002: ShapeDetection: implement barcode detection, blink part (Closed)
Patch Set: xianglu@ comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "modules/shapedetection/DetectedBarcode.h"
6
7 #include "core/dom/DOMRect.h"
8
9 namespace blink {
10
11 DetectedBarcode* DetectedBarcode::create() {
12 return new DetectedBarcode("", DOMRect::create(0, 0, 0, 0));
haraken 2016/11/16 04:15:10 Use String::empty().
mcasas 2016/11/16 05:23:10 Done.
13 }
14
15 DetectedBarcode* DetectedBarcode::create(String rawValue,
16 DOMRect* boundingBox) {
17 return new DetectedBarcode(rawValue, boundingBox);
18 }
19
20 const String& DetectedBarcode::rawValue() const {
21 return m_rawValue;
22 }
23
24 DOMRect* DetectedBarcode::boundingBox() const {
25 return m_boundingBox.get();
26 }
27
28 DetectedBarcode::DetectedBarcode(String rawValue, DOMRect* boundingBox)
29 : m_rawValue(rawValue), m_boundingBox(boundingBox) {}
30
31 DEFINE_TRACE(DetectedBarcode) {
32 visitor->trace(m_boundingBox);
33 }
34
35 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698