1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
ash / quick_insert / views / quick_insert_shortcut_hint_view.h [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_QUICK_INSERT_VIEWS_QUICK_INSERT_SHORTCUT_HINT_VIEW_H_
#define ASH_QUICK_INSERT_VIEWS_QUICK_INSERT_SHORTCUT_HINT_VIEW_H_
#include <string>
#include "ash/ash_export.h"
#include "ash/quick_insert/quick_insert_search_result.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/views/view.h"
namespace ash {
class ASH_EXPORT QuickInsertShortcutHintView : public views::View {
METADATA_HEADER(QuickInsertShortcutHintView, views::View)
public:
explicit QuickInsertShortcutHintView(QuickInsertCapsLockResult::Shortcut);
QuickInsertShortcutHintView(const QuickInsertShortcutHintView&) = delete;
QuickInsertShortcutHintView& operator=(const QuickInsertShortcutHintView&) =
delete;
~QuickInsertShortcutHintView() override;
const std::u16string& GetShortcutText() const;
private:
std::u16string shortcut_text_;
};
} // namespace ash
#endif // ASH_QUICK_INSERT_VIEWS_QUICK_INSERT_SHORTCUT_HINT_VIEW_H_