1. 26 Sep, 2019 3 commits
    • Alan Screen's avatar
      Ensure PDF composite failures notify Print Preview UI · 67c4a0f6
      Alan Screen authored
      Follow-on to crrev.com/c/1823801.
      
      From crbug.com/1000936, failures in doing conversion of PDF for Nup
      caused the Print Preview UI to endlessly spin in the
      "Loading preview ..." state without ever showing that it had failed.
      
      Similar behavior can be replicated during development by inducing
      crashes in PDF composition calls inside PdfCompositorImpl.
      
      Wrap the PDF page composition calls' callbacks with
      mojo::WrapCallbackWithDefaultInvokeIfNotRun() so that a status is
      provided even if the utility process disappears before completing.
      
      Update the On<composite-something>Done() callbacks to include a
      notification call to the Print Preview UI to report errors.
      
      Bug: 1003171
      Change-Id: Id351cefd5d91b322a915fa635865969e1cbb1142
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1825661Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
      Commit-Queue: Alan Screen <awscreen@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#700021}
      67c4a0f6
    • Marialicia Villarreal Garcia's avatar
      Add support for expanded/collapsed states in menu buttons · fdd66f4f
      Marialicia Villarreal Garcia authored
      In UIA, buttons that set "HasPopup" to anything other than false are
      not invokable. Instead the expectation is that buttons will implement
      ExpandCollapse or Toggle patterns. Part of implementing those patterns
      is ensuring that the correct state of the button (i.e. expanded or
      collapsed) is also set appropriately. Otherwise, the default value will
      be set to ExpandCollapseState_LeafNode which prevents screen reader
      users from invoking the button.
      
      ToolbarButton is a base class and calling
      SetHasPopup(ax::mojom::HasPopup::kMenu) at this level seems misleading
      (since they don't all have a menu popup), and does not allow us to
      accurately set an expand/collapsed state.
      
      This change sets HasPopup to the toolbar buttons that implement menu
      model, and adds this property to the other subclasses that do have a
      menu but do not implement menu model.
      
      This fix also adds support for expanded/collapsed states in UIA if
      HasPopup is set to kMenu.
      
      Bug: 1004025, 1008052
      Change-Id: I8a1fe0e8b13e91b469cf16cf5beecc24806bf3d5
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1803983
      Commit-Queue: Maria Villarreal <mavill@microsoft.com>
      Reviewed-by: default avatarPeter Boström <pbos@chromium.org>
      Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#700020}
      fdd66f4f
    • Jazz Xu's avatar
      [Lockscreen Media Controls] Change container corner radius from 8px to 16px. · cf3c4482
      Jazz Xu authored
      Bug: 1008186
      Change-Id: I34db88b3c3e70c3227ab552c83ec2a0bdb2d3de3
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1825864Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
      Commit-Queue: Jazz Xu <jazzhsu@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#700019}
      cf3c4482
  2. 25 Sep, 2019 37 commits