screen_captures_section.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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_SYSTEM_HOLDING_SPACE_SCREEN_CAPTURES_SECTION_H_
  5. #define ASH_SYSTEM_HOLDING_SPACE_SCREEN_CAPTURES_SECTION_H_
  6. #include <memory>
  7. #include "ash/system/holding_space/holding_space_item_views_section.h"
  8. namespace ash {
  9. // Section for screen captures in the `RecentFilesBubble`.
  10. class ScreenCapturesSection : public HoldingSpaceItemViewsSection {
  11. public:
  12. explicit ScreenCapturesSection(HoldingSpaceViewDelegate* delegate);
  13. ScreenCapturesSection(const ScreenCapturesSection& other) = delete;
  14. ScreenCapturesSection& operator=(const ScreenCapturesSection& other) = delete;
  15. ~ScreenCapturesSection() override;
  16. // HoldingSpaceItemViewsSection:
  17. const char* GetClassName() const override;
  18. std::unique_ptr<views::View> CreateHeader() override;
  19. std::unique_ptr<views::View> CreateContainer() override;
  20. std::unique_ptr<HoldingSpaceItemView> CreateView(
  21. const HoldingSpaceItem* item) override;
  22. };
  23. } // namespace ash
  24. #endif // ASH_SYSTEM_HOLDING_SPACE_SCREEN_CAPTURES_SECTION_H_