hud_header_view.h 916 B

12345678910111213141516171819202122232425262728293031323334353637
  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_HUD_DISPLAY_HUD_HEADER_VIEW_H_
  5. #define ASH_HUD_DISPLAY_HUD_HEADER_VIEW_H_
  6. #include "ui/views/view.h"
  7. namespace ash {
  8. namespace hud_display {
  9. class HUDDisplayView;
  10. class HUDTabStrip;
  11. // HUDHeaderView renders header (with buttons and tabs) of the HUD.
  12. class HUDHeaderView : public views::View {
  13. public:
  14. METADATA_HEADER(HUDHeaderView);
  15. explicit HUDHeaderView(HUDDisplayView* hud);
  16. HUDHeaderView(const HUDHeaderView&) = delete;
  17. HUDHeaderView& operator=(const HUDHeaderView&) = delete;
  18. ~HUDHeaderView() override;
  19. HUDTabStrip* tab_strip() { return tab_strip_; }
  20. private:
  21. HUDTabStrip* tab_strip_ = nullptr; // not owned
  22. };
  23. } // namespace hud_display
  24. } // namespace ash
  25. #endif // ASH_HUD_DISPLAY_HUD_HEADER_VIEW_H_