privacy_container_view.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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_APP_LIST_VIEWS_PRIVACY_CONTAINER_VIEW_H_
  5. #define ASH_APP_LIST_VIEWS_PRIVACY_CONTAINER_VIEW_H_
  6. #include "ash/app_list/views/search_result_container_view.h"
  7. namespace ash {
  8. namespace test {
  9. class PrivacyContainerViewTest;
  10. }
  11. class AppListViewDelegate;
  12. class SearchResult;
  13. class SuggestedContentInfoView;
  14. // A container view for privacy info.
  15. class ASH_EXPORT PrivacyContainerView : public SearchResultContainerView {
  16. public:
  17. explicit PrivacyContainerView(AppListViewDelegate* view_delegate);
  18. ~PrivacyContainerView() override;
  19. PrivacyContainerView(const PrivacyContainerView&) = delete;
  20. PrivacyContainerView& operator=(const PrivacyContainerView&) = delete;
  21. // SearchResultContainerView:
  22. SearchResultBaseView* GetResultViewAt(size_t index) override;
  23. private:
  24. friend class test::PrivacyContainerViewTest;
  25. // SearchResultContainerView:
  26. int DoUpdate() override;
  27. // Owned by views hierarchy.
  28. SuggestedContentInfoView* suggested_content_info_view_ = nullptr;
  29. // A skeleton result that contains an id.
  30. SearchResult result_;
  31. };
  32. } // namespace ash
  33. #endif // ASH_APP_LIST_VIEWS_PRIVACY_CONTAINER_VIEW_H_