| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "services/shape_detection/barcode_detection_impl_mac.h" | 5 #include "services/shape_detection/barcode_detection_impl_mac.h" |
| 6 | 6 |
| 7 #import <QuartzCore/QuartzCore.h> |
| 8 |
| 7 #include "base/mac/mac_util.h" | 9 #include "base/mac/mac_util.h" |
| 8 #include "base/mac/scoped_cftyperef.h" | 10 #include "base/mac/scoped_cftyperef.h" |
| 9 #include "base/mac/sdk_forward_declarations.h" | 11 #include "base/mac/sdk_forward_declarations.h" |
| 10 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
| 11 #include "media/capture/video/scoped_result_callback.h" | 13 #include "media/capture/video/scoped_result_callback.h" |
| 12 #include "mojo/public/cpp/bindings/strong_binding.h" | 14 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 13 #include "services/shape_detection/barcode_detection_impl.h" | 15 #include "services/shape_detection/barcode_detection_impl.h" |
| 14 #include "services/shape_detection/detection_utils_mac.h" | 16 #include "services/shape_detection/detection_utils_mac.h" |
| 15 | 17 |
| 16 namespace shape_detection { | 18 namespace shape_detection { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 height - f.bottomRight.y); | 87 height - f.bottomRight.y); |
| 86 result->corner_points.emplace_back(f.bottomLeft.x, height - f.bottomLeft.y); | 88 result->corner_points.emplace_back(f.bottomLeft.x, height - f.bottomLeft.y); |
| 87 | 89 |
| 88 result->raw_value = base::SysNSStringToUTF8(f.messageString); | 90 result->raw_value = base::SysNSStringToUTF8(f.messageString); |
| 89 results.push_back(std::move(result)); | 91 results.push_back(std::move(result)); |
| 90 } | 92 } |
| 91 scoped_callback.Run(std::move(results)); | 93 scoped_callback.Run(std::move(results)); |
| 92 } | 94 } |
| 93 | 95 |
| 94 } // namespace shape_detection | 96 } // namespace shape_detection |
| OLD | NEW |