• wutao's avatar
    cros: Reduce the search latency for KSV. · fa4f6f47
    wutao authored
    This cl reduces the search latency in Keyboard Shortcut Viewer (KSV).
    1. Set a time delay to process key events in search mode. In this way,
    users can keep typing in the search box.
    2. Reuse the KeyboardShortcutItemView between TabbedView and the search
    results. This reduces the layout time for |shortcut_label_view_| in
    KeyboardShortcutItemView.
    3. To highight matched search queries, we cannot avoid layouting
    |description_label_view_| in KeyboardShortcutItemView.
    
    Bug: 818882
    Test: Tested on Eve and Minnie
    Change-Id: I4b36e18fe3f72fba4884c0cc02fea24ff4416630
    Reviewed-on: https://chromium-review.googlesource.com/951709Reviewed-by: default avatarMichael Wasserman <msw@chromium.org>
    Reviewed-by: default avatarAhmed Fakhry <afakhry@chromium.org>
    Commit-Queue: Tao Wu <wutao@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#542020}
    fa4f6f47
styled_label.h 8.19 KB