| 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 #ifndef BarcodeDetector_h | 5 #ifndef BarcodeDetector_h |
| 6 #define BarcodeDetector_h | 6 #define BarcodeDetector_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptPromiseResolver.h" | 9 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 10 #include "bindings/core/v8/ScriptWrappable.h" | |
| 11 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
| 12 #include "modules/canvas2d/CanvasRenderingContext2D.h" | 11 #include "modules/canvas2d/CanvasRenderingContext2D.h" |
| 13 #include "modules/shapedetection/ShapeDetector.h" | 12 #include "modules/shapedetection/ShapeDetector.h" |
| 13 #include "platform/bindings/ScriptWrappable.h" |
| 14 #include "services/shape_detection/public/interfaces/barcodedetection.mojom-blin
k.h" | 14 #include "services/shape_detection/public/interfaces/barcodedetection.mojom-blin
k.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 class MODULES_EXPORT BarcodeDetector final : public ShapeDetector, | 18 class MODULES_EXPORT BarcodeDetector final : public ShapeDetector, |
| 19 public ScriptWrappable { | 19 public ScriptWrappable { |
| 20 DEFINE_WRAPPERTYPEINFO(); | 20 DEFINE_WRAPPERTYPEINFO(); |
| 21 | 21 |
| 22 public: | 22 public: |
| 23 static BarcodeDetector* Create(); | 23 static BarcodeDetector* Create(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 38 void OnBarcodeServiceConnectionError(); | 38 void OnBarcodeServiceConnectionError(); |
| 39 | 39 |
| 40 shape_detection::mojom::blink::BarcodeDetectionPtr barcode_service_; | 40 shape_detection::mojom::blink::BarcodeDetectionPtr barcode_service_; |
| 41 | 41 |
| 42 HeapHashSet<Member<ScriptPromiseResolver>> barcode_service_requests_; | 42 HeapHashSet<Member<ScriptPromiseResolver>> barcode_service_requests_; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace blink | 45 } // namespace blink |
| 46 | 46 |
| 47 #endif // BarcodeDetector_h | 47 #endif // BarcodeDetector_h |
| OLD | NEW |