blob: 0c6cdf5f0e0bb4aeb0681ac8a301dd61b50d59b4 [file] [log] [blame]
/*
* Copyright 2016 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef HAL_ADAPTER_CAMERA_MODULE_CALLBACKS_DELEGATE_H_
#define HAL_ADAPTER_CAMERA_MODULE_CALLBACKS_DELEGATE_H_
#include "hal_adapter/cros_camera_mojo_utils.h"
#include "mojo/camera_common.mojom.h"
namespace cros {
class CameraModuleCallbacksDelegate
: public internal::MojoChannel<mojom::CameraModuleCallbacks> {
public:
CameraModuleCallbacksDelegate(
scoped_refptr<base::SingleThreadTaskRunner> task_runner);
~CameraModuleCallbacksDelegate() = default;
void CameraDeviceStatusChange(int camera_id, int new_status);
void TorchModeStatusChange(int camera_id, int new_status);
private:
void CameraDeviceStatusChangeOnThread(int camera_id, int new_status);
void TorchModeStatusChangeOnThread(int camera_id, int new_status);
DISALLOW_IMPLICIT_CONSTRUCTORS(CameraModuleCallbacksDelegate);
};
} // namespace cros
#endif // HAL_ADAPTER_CAMERA_MODULE_CALLBACKS_DELEGATE_H_