network_row_title_view.h 964 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2017 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_ROW_TITLE_VIEW_H_
  5. #define ASH_SYSTEM_NETWORK_NETWORK_ROW_TITLE_VIEW_H_
  6. #include "ash/ash_export.h"
  7. #include "ui/views/controls/label.h"
  8. namespace ash {
  9. // Title row for the network section of quick settings, which displays the name
  10. // of a network type (e.g., Wi-Fi or Mobile data).
  11. class ASH_EXPORT NetworkRowTitleView : public views::View {
  12. public:
  13. explicit NetworkRowTitleView(int title_message_id);
  14. NetworkRowTitleView(const NetworkRowTitleView&) = delete;
  15. NetworkRowTitleView& operator=(const NetworkRowTitleView&) = delete;
  16. ~NetworkRowTitleView() override;
  17. // views::View:
  18. const char* GetClassName() const override;
  19. private:
  20. views::Label* const title_;
  21. };
  22. } // namespace ash
  23. #endif // ASH_SYSTEM_NETWORK_NETWORK_ROW_TITLE_VIEW_H_