Chromium Code Reviews| 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..c074869938dc1bcb01809f1076f96b008ac3cf01 |
| --- /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); |
| + |
| + void Vibrate(int64 milliseconds) override; |
| + 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. |
|
jam
2014/12/05 01:13:34
is this still needed with mojo? can't embedders ov
timvolodine
2014/12/05 18:12:48
right, removed VibrationProvider (which required s
|
| + 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_ |