OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 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 | |
5 #ifndef CONTENT_BROWSER_VIBRATION_VIBRATION_SERVICE_FACTORY_H_ | |
6 #define CONTENT_BROWSER_VIBRATION_VIBRATION_SERVICE_FACTORY_H_ | |
7 | |
8 #if defined(OS_ANDROID) | |
9 #include "content/browser/vibration/vibration_service_impl_android.h" | |
10 #else | |
11 #include "content/browser/vibration/vibration_service_impl_empty.h" | |
Peter Beverloo
2013/06/13 11:27:45
Do we need an empty implementation? Can't we just
Michael van Ouwerkerk
2013/06/18 14:39:23
Done.
| |
12 #endif | |
13 | |
14 namespace content { | |
15 | |
16 scoped_ptr<VibrationService> NewVibrationService() { | |
17 #if defined(OS_ANDROID) | |
18 return scoped_ptr<VibrationService>(new VibrationServiceImplAndroid()); | |
19 #else | |
20 return scoped_ptr<VibrationService>(new VibrationServiceImplEmpty()); | |
21 #endif | |
22 } | |
23 | |
24 } // namespace content | |
25 | |
26 #endif // CONTENT_BROWSER_VIBRATION_VIBRATION_SERVICE_FACTORY_H_ | |
OLD | NEW |