autozoom_observer.h 801 B

12345678910111213141516171819202122232425
  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_CAMERA_AUTOZOOM_OBSERVER_H_
  5. #define ASH_SYSTEM_CAMERA_AUTOZOOM_OBSERVER_H_
  6. #include "base/observer_list_types.h"
  7. #include "media/capture/video/chromeos/mojom/cros_camera_service.mojom.h"
  8. namespace ash {
  9. class AutozoomObserver : public base::CheckedObserver {
  10. public:
  11. // Called when the autozoom state has changed.
  12. virtual void OnAutozoomStateChanged(
  13. cros::mojom::CameraAutoFramingState state) {}
  14. // Called when the autozoom control enabled state has changed.
  15. virtual void OnAutozoomControlEnabledChanged(bool enabled) {}
  16. };
  17. } // namespace ash
  18. #endif // ASH_SYSTEM_CAMERA_AUTOZOOM_OBSERVER_H_