• chinsenj's avatar
    cros: Refactor MagnifierGlass to take border parameters. · 482fcef3
    chinsenj authored
    When users select a capture region in Capture Mode, they can fine tune
    it. To make this process more precise, we display a magnifying glass
    at their cursor. Currently the MagnifierGlass uses hard-coded values to
    draw its border which don't match Capture Mode's spec.
    
    This CL refactors MagnifierGlass to take parameters for its border so
    the magnifying glass for the capture region can be up-to-spec.
    
    Test: manual
    Bug: 1133751
    Change-Id: I4867176e4a32e9f8271cf1168846caf37ca5d6b9
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2454269Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
    Commit-Queue: Jeremy Chinsen <chinsenj@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#814428}
    482fcef3
magnifier_glass.cc 8.63 KB