network_list_wifi_header_view.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2022 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_NETWORK_NETWORK_LIST_WIFI_HEADER_VIEW_H_
  5. #define ASH_SYSTEM_NETWORK_NETWORK_LIST_WIFI_HEADER_VIEW_H_
  6. #include "ash/ash_export.h"
  7. #include "ash/system/network/network_list_network_header_view.h"
  8. #include "ui/base/metadata/metadata_impl_macros.h"
  9. namespace ash {
  10. // This class is the interface used to create network list header for Wifi
  11. // networks, and is responsible for the creation of wifi-specific buttons.
  12. class ASH_EXPORT NetworkListWifiHeaderView
  13. : public NetworkListNetworkHeaderView {
  14. public:
  15. METADATA_HEADER(NetworkListWifiHeaderView);
  16. explicit NetworkListWifiHeaderView(
  17. NetworkListNetworkHeaderView::Delegate* delegate);
  18. NetworkListWifiHeaderView(const NetworkListWifiHeaderView&) = delete;
  19. NetworkListWifiHeaderView& operator=(const NetworkListWifiHeaderView&) =
  20. delete;
  21. ~NetworkListWifiHeaderView() override;
  22. virtual void SetJoinWifiButtonState(bool enabled, bool visible) = 0;
  23. };
  24. } // namespace ash
  25. #endif // ASH_SYSTEM_NETWORK_NETWORK_LIST_WIFI_HEADER_VIEW_H_