[go: nahoru, domu]

blob: 2729a5b80c6010f99c2d64803f88c84f6dbb11df [file] [log] [blame]
wutao09ba763e2018-02-02 01:46:391// Copyright 2018 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Mitsuru Oshimae5af41e62020-03-11 22:17:005#ifndef ASH_SHORTCUT_VIEWER_VIEWS_KEYBOARD_SHORTCUT_ITEM_LIST_VIEW_H_
6#define ASH_SHORTCUT_VIEWER_VIEWS_KEYBOARD_SHORTCUT_ITEM_LIST_VIEW_H_
wutao09ba763e2018-02-02 01:46:397
wutao09ba763e2018-02-02 01:46:398#include "ui/views/view.h"
9
10namespace keyboard_shortcut_viewer {
11
wutao5a1b5dc2018-02-12 20:33:0012// Displays a list of KeyboardShortcutItemView. In search result page, all
13// KeyboardShortcutItemView are grouped by ShortcutCategory and can be scrolled
14// in a single page. A text label to indicate the ShortcutCategory will be
15// diplayed at the beginning of the group of KeyboardShortcutItemView.
wutao09ba763e2018-02-02 01:46:3916class KeyboardShortcutItemListView : public views::View {
17 public:
18 KeyboardShortcutItemListView();
19 ~KeyboardShortcutItemListView() override = default;
20
wutao5a1b5dc2018-02-12 20:33:0021 // In search result page, a text label is added at the beginning of the group
22 // of KeyboardShortcutItemView to indicate the ShortcutCategory.
Jan Wilken Dörrie85285b02021-03-11 23:38:4723 void AddCategoryLabel(const std::u16string& text);
wutao09ba763e2018-02-02 01:46:3924
wutao6c5d2a42018-02-15 06:44:4825 // Add a horizontal line to separate the KeyboardShortcutItemView. The last
26 // item in the list is not followed by the horizontal line.
27 void AddHorizontalSeparator();
wutao09ba763e2018-02-02 01:46:3928
wutao6c5d2a42018-02-15 06:44:4829 private:
wutao09ba763e2018-02-02 01:46:3930 DISALLOW_COPY_AND_ASSIGN(KeyboardShortcutItemListView);
31};
32
33} // namespace keyboard_shortcut_viewer
34
Mitsuru Oshimae5af41e62020-03-11 22:17:0035#endif // ASH_SHORTCUT_VIEWER_VIEWS_KEYBOARD_SHORTCUT_ITEM_LIST_VIEW_H_