suggested_content_info_view.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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_SUGGESTED_CONTENT_INFO_VIEW_H_
  5. #define ASH_APP_LIST_VIEWS_SUGGESTED_CONTENT_INFO_VIEW_H_
  6. #include "ash/app_list/views/privacy_info_view.h"
  7. #include "ui/views/controls/button/button.h"
  8. namespace ash {
  9. class AppListViewDelegate;
  10. class PrivacyContainerView;
  11. // View representing Suggested Content privacy info in the Launcher.
  12. class SuggestedContentInfoView : public PrivacyInfoView {
  13. public:
  14. SuggestedContentInfoView(AppListViewDelegate* view_delegate,
  15. PrivacyContainerView* container);
  16. SuggestedContentInfoView(const SuggestedContentInfoView&) = delete;
  17. SuggestedContentInfoView& operator=(const SuggestedContentInfoView&) = delete;
  18. ~SuggestedContentInfoView() override;
  19. // PrivacyInfoView:
  20. void CloseButtonPressed() override;
  21. void LinkClicked() override;
  22. private:
  23. AppListViewDelegate* const view_delegate_;
  24. PrivacyContainerView* const container_;
  25. };
  26. } // namespace ash
  27. #endif // ASH_APP_LIST_VIEWS_SUGGESTED_CONTENT_INFO_VIEW_H_