| Index: device/vibration/vibration_manager_impl.h
|
| diff --git a/device/vibration/vibration_manager_impl.h b/device/vibration/vibration_manager_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..561e6097dff3e619f8f0c79753948b9097be88c8
|
| --- /dev/null
|
| +++ b/device/vibration/vibration_manager_impl.h
|
| @@ -0,0 +1,42 @@
|
| +// Copyright 2014 The Chromium 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 DEVICE_VIBRATION_VIBRATION_MANAGER_IMPL_H_
|
| +#define DEVICE_VIBRATION_VIBRATION_MANAGER_IMPL_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "device/vibration/vibration_export.h"
|
| +#include "device/vibration/vibration_manager.mojom.h"
|
| +
|
| +namespace device {
|
| +
|
| +class VibrationProvider;
|
| +
|
| +class VibrationManagerImpl : public mojo::InterfaceImpl<VibrationManager> {
|
| + public:
|
| + DEVICE_VIBRATION_EXPORT static void Create(
|
| + mojo::InterfaceRequest<VibrationManager> request);
|
| +
|
| + virtual void Vibrate(int64 millis) OVERRIDE;
|
| + virtual void Cancel() OVERRIDE;
|
| +
|
| + // Allows an embedder to set its own VibrationProvider implementation.
|
| + // NOTE: Apparently used by an external project; please don't remove.
|
| + // Contact Viatcheslav Ostapenko at sl.ostapenko@samsung.com for more
|
| + // information.
|
| + static void SetOverrideVibrationProvider(VibrationProvider* provider);
|
| +
|
| + private:
|
| + VibrationManagerImpl();
|
| + virtual ~VibrationManagerImpl();
|
| +
|
| + static VibrationProvider* CreateProvider();
|
| +
|
| + scoped_ptr<VibrationProvider> provider_;
|
| +};
|
| +
|
| +} // namespace device
|
| +
|
| +#endif // DEVICE_VIBRATION_VIBRATION_MANAGER_IMPL_H_
|
|
|