pinned_files_bubble.cc 954 B

123456789101112131415161718192021222324252627282930
  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. #include "ash/system/holding_space/pinned_files_bubble.h"
  5. #include "ash/public/cpp/holding_space/holding_space_constants.h"
  6. #include "ash/system/holding_space/pinned_files_section.h"
  7. namespace ash {
  8. PinnedFilesBubble::PinnedFilesBubble(HoldingSpaceViewDelegate* delegate)
  9. : HoldingSpaceTrayChildBubble(delegate) {
  10. SetID(kHoldingSpacePinnedFilesBubbleId);
  11. }
  12. PinnedFilesBubble::~PinnedFilesBubble() = default;
  13. const char* PinnedFilesBubble::GetClassName() const {
  14. return "PinnedFilesBubble";
  15. }
  16. std::vector<std::unique_ptr<HoldingSpaceItemViewsSection>>
  17. PinnedFilesBubble::CreateSections() {
  18. std::vector<std::unique_ptr<HoldingSpaceItemViewsSection>> sections;
  19. sections.push_back(std::make_unique<PinnedFilesSection>(delegate()));
  20. return sections;
  21. }
  22. } // namespace ash