• Tanisha Mandre's avatar
    Refactor QR scanner camera controller to subclass a QR scanner camera controller. · 18f1f26a
    Tanisha Mandre authored
    Aim: Remove the QR Scanner Specific methods out of the camera controller so that a similar subclass of the generic camera controller super class can be implemented for the credit card scanner.
    
    Architecture:
    Superclass - cameraController
    Subclasses - qrScannerCameraController
    
    Methods shifted:
    
    1. - (void)continueLoadCaptureSession:(AVCaptureVideoPreviewLayer*)previewLayer;
    Modifies the method to move the section that configures the QR scanner metadata output to a separate method 'configureScannerWithSession', implemented in the QR Scanner Camera Controller.
    
    2. - (void)captureOutput:(AVCaptureOutput*)captureOutput
        didOutputMetadataObjects:(NSArray*)metadataObjects
                  fromConnection:(AVCaptureConnection*)connection;
    Moves this method to the QR Scanner Camera Controller. It reads and processes the scanned QR code data.
    
    Bug: 990744
    
    Change-Id: If07340c62b0c5c11c70a1e6c4d0a6782dd2c774e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1754008
    Commit-Queue: Tanisha Mandre <tanishamandre@google.com>
    Reviewed-by: default avatarJavier Ernesto Flores Robles <javierrobles@chromium.org>
    Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#688503}
    18f1f26a
scanner_view_controller.h 2.54 KB