• Wei Lee's avatar
    Refactor imagecapture.js for readability and extendibility · 92f71e41
    Wei Lee authored
    Since imagecapture.js starts to contain many things that has nothing to
    do with ImageCapture, this CL refactor it as following:
    
    1. Splits imagecapture.js into MojoConnector, DeviceOperator and
       ImageCapture to make it clearer and more extensible.
    2. Avoids using singleton pattern for mojo connection.
    3. For camera Hal v1, simplifies the check and remove try/catch
       mechanism.
    
    Bug: 979104
    Test: tast run DUT camera.CCA*
    Test: Running above test for v1/v3 devices
    
    Change-Id: I8b93e05a566ae81731c1e8f71cd00baa82d641f5
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1739035
    Commit-Queue: Wei Lee <wtlee@chromium.org>
    Reviewed-by: default avatarShik Chen <shik@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#690181}
    92f71e41
Makefile 7.31 KB