Chromium Code Reviews| Index: content/browser/vibration/vibration_service.h | 
| diff --git a/content/browser/vibration/vibration_service.h b/content/browser/vibration/vibration_service.h | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..31a008efbddd359525a416fbcf7035b6a7970d9c | 
| --- /dev/null | 
| +++ b/content/browser/vibration/vibration_service.h | 
| @@ -0,0 +1,28 @@ | 
| +// Copyright (c) 2013 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 CONTENT_BROWSER_VIBRATION_VIBRATION_SERVICE_H_ | 
| +#define CONTENT_BROWSER_VIBRATION_VIBRATION_SERVICE_H_ | 
| + | 
| +namespace content { | 
| + | 
| +class VibrationService { | 
| + public: | 
| + virtual ~VibrationService() {} | 
| + | 
| + // Factory function for VibrationService. Returns NULL if the service is not | 
| + // available. | 
| + static VibrationService* Create(); | 
| + | 
| + // Starts a vibration for the given duration. If there is currently an active | 
| + // vibration it will be cancelled before the new one is started. | 
| + virtual void Vibrate(unsigned milliseconds) = 0; | 
| + | 
| + // Cancels the current vibration, if there is one. | 
| + virtual void CancelVibration() = 0; | 
| 
 
bulach
2013/06/20 14:21:04
nit:
private:
  DISALLOW_COPY_AND_ASSIGN(Vibratio
 
Michael van Ouwerkerk
2013/06/20 17:34:09
How is this to be used on interfaces like this? I
 
bulach
2013/06/20 18:11:47
I guess it requires a default constructor, right a
 
Michael van Ouwerkerk
2013/06/21 09:53:38
Done.
 
 | 
| +}; | 
| + | 
| +} // namespace content | 
| + | 
| +#endif // CONTENT_BROWSER_VIBRATION_VIBRATION_SERVICE_H_ |