kiosk_app_instruction_bubble.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Copyright 2022 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_SHELF_KIOSK_APP_INSTRUCTION_BUBBLE_H_
  5. #define ASH_SHELF_KIOSK_APP_INSTRUCTION_BUBBLE_H_
  6. #include "ash/ash_export.h"
  7. #include "ash/public/cpp/shelf_types.h"
  8. #include "third_party/skia/include/core/SkColor.h"
  9. #include "ui/views/bubble/bubble_dialog_delegate_view.h"
  10. namespace views {
  11. class Label;
  12. class View;
  13. } // namespace views
  14. namespace ash {
  15. // A shelf bubble instructing kiosk users to interact with the kiosk app menu
  16. // button.
  17. class ASH_EXPORT KioskAppInstructionBubble
  18. : public views::BubbleDialogDelegateView {
  19. public:
  20. KioskAppInstructionBubble(views::View* anchor, ShelfAlignment alignment);
  21. KioskAppInstructionBubble(const KioskAppInstructionBubble&) = delete;
  22. KioskAppInstructionBubble& operator=(const KioskAppInstructionBubble&) =
  23. delete;
  24. ~KioskAppInstructionBubble() override;
  25. private:
  26. // views::View:
  27. void OnThemeChanged() override;
  28. gfx::Size CalculatePreferredSize() const override;
  29. void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
  30. views::Label* title_ = nullptr;
  31. };
  32. } // namespace ash
  33. #endif // ASH_SHELF_KIOSK_APP_INSTRUCTION_BUBBLE_H_