clipboard_history_label.h 885 B

123456789101112131415161718192021222324252627
  1. // Copyright 2020 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. #ifndef ASH_CLIPBOARD_VIEWS_CLIPBOARD_HISTORY_LABEL_H_
  5. #define ASH_CLIPBOARD_VIEWS_CLIPBOARD_HISTORY_LABEL_H_
  6. #include "ui/views/controls/label.h"
  7. namespace ash {
  8. // The text label used by the clipboard history menu.
  9. class ClipboardHistoryLabel : public views::Label {
  10. public:
  11. explicit ClipboardHistoryLabel(const std::u16string& text);
  12. ClipboardHistoryLabel(const ClipboardHistoryLabel& rhs) = delete;
  13. ClipboardHistoryLabel& operator=(const ClipboardHistoryLabel& rhs) = delete;
  14. ~ClipboardHistoryLabel() override = default;
  15. // views::Label:
  16. const char* GetClassName() const override;
  17. void OnThemeChanged() override;
  18. };
  19. } // namespace ash
  20. #endif // ASH_CLIPBOARD_VIEWS_CLIPBOARD_HISTORY_LABEL_H_