bluetooth_disabled_view.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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_SYSTEM_PHONEHUB_BLUETOOTH_DISABLED_VIEW_H_
  5. #define ASH_SYSTEM_PHONEHUB_BLUETOOTH_DISABLED_VIEW_H_
  6. #include "ash/ash_export.h"
  7. #include "ash/system/phonehub/phone_hub_content_view.h"
  8. namespace ash {
  9. // An interstitial view representing an error state where the Phone Hub
  10. // feature is not available because Bluetooth is turned off on this device.
  11. class ASH_EXPORT BluetoothDisabledView : public PhoneHubContentView {
  12. public:
  13. METADATA_HEADER(BluetoothDisabledView);
  14. BluetoothDisabledView();
  15. BluetoothDisabledView(const BluetoothDisabledView&) = delete;
  16. BluetoothDisabledView& operator=(const BluetoothDisabledView&) = delete;
  17. ~BluetoothDisabledView() override;
  18. // PhoneHubContentView:
  19. phone_hub_metrics::Screen GetScreenForMetrics() const override;
  20. private:
  21. void LearnMoreButtonPressed();
  22. };
  23. } // namespace ash
  24. #endif // ASH_SYSTEM_PHONEHUB_BLUETOOTH_DISABLED_VIEW_H_