Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: content/browser/vibration/vibration_service_factory.h

Issue 16781002: Vibration API: plumbing from Blink to Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698