1. 20 May, 2019 3 commits
    • Darren Shen's avatar
      ime: Change MODECHANGE key to show IME mode indicator if not visible · 63b9cb66
      Darren Shen authored
      Currently, the MODECHANGE key just switches to the next IME (same as
      pressing Ctrl-Shift-Space). However, because users may accidentally
      press the key, we want it to be a no-op initially. So the user pressing
      the key once just shows the current IME. Pressing it again while the
      IME mode indicator is visible will switch to the next IME.
      
      TBR=holte@chromium.org
      
      Bug: 953901
      Test: accelerator_controller_unittest.cc; manual test with fake key.
      Change-Id: Ibf0cc0379d35c4aae50f5f41a2dceb1e14de3b34
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1614997
      Commit-Queue: Darren Shen <shend@chromium.org>
      Reviewed-by: default avatarScott Violet <sky@chromium.org>
      Reviewed-by: default avatarOliver Chang <ochang@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#661239}
      63b9cb66
    • Edin Kadric's avatar
      Open EditableCombobox menu on mouse release event (and gesture). · d4dda5f7
      Edin Kadric authored
      This makes it such that when the EditableCombobox is focused but the
      menu isn't open, a click on the textfield but not the arrow still opens
      the menu (as would happen with a click on the textfield if the menu
      weren't focused).
      We can get in this situation in two ways:
      1) After selecting an item or closing the menu with something like Esc,
      the menu is still in focus.
      2) When first opening a View hosting the EditableCombobox, it could
      have been set not to show the menu on initial focus (as is the case
      in the password bubble for example).
      
      See associated bug for screenshot.
      
      We look at mouse release instead of press so that the user can still
      select the by clicking and dragging the mouse. If we look at mouse
      press events then the menu will open and the drag will not select
      text.
      
      Note that we added a call to TextfieldController::HandleMouseEvent in
      Textfield::OnMouseReleased, so we also had to add a check in other
      users of TextfieldController::HandleMouseEvent.
      
      Bug: 960317
      Change-Id: Iaba4834be5e0f68ad3191ca572f2ab011825678e
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1608805Reviewed-by: default avatarMichael Wasserman <msw@chromium.org>
      Commit-Queue: Edin Kadric <edinkadric@google.com>
      Cr-Commit-Position: refs/heads/master@{#661238}
      d4dda5f7
    • Jinsuk Kim's avatar
      Android: Fix a bug at tab switching · 27138bd6
      Jinsuk Kim authored
      TabWebContentsDelegateAndroid should always be able to get
      the fullscreen manager to return the right control height
      (https://crrev.com/c/1475677).
      
      This CL replaces FullscreenManager.from() which can return
      |null| while tabs are in transition with the reinstated
      getFullscreenManager() that always returns the ChromeActivity's
      FullscreenManager correctly.
      
      Bug: 963820
      Change-Id: Iafef11ed7dff14de38a305e6494eb0f3f83b6b46
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1615406Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
      Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#661237}
      27138bd6
  2. 19 May, 2019 37 commits