| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.content.browser; | 5 package org.chromium.content.browser; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 | 8 |
| 9 import org.chromium.base.annotations.CalledByNative; | 9 import org.chromium.base.annotations.CalledByNative; |
| 10 import org.chromium.base.annotations.JNINamespace; | 10 import org.chromium.base.annotations.JNINamespace; |
| 11 import org.chromium.content.browser.ServiceRegistry.ImplementationFactory; | 11 import org.chromium.content_public.browser.ServiceRegistryInterface.Implementati
onFactory; |
| 12 import org.chromium.device.battery.BatteryMonitorFactory; | 12 import org.chromium.device.battery.BatteryMonitorFactory; |
| 13 import org.chromium.device.vibration.VibrationManagerImpl; | 13 import org.chromium.device.vibration.VibrationManagerImpl; |
| 14 import org.chromium.mojom.device.BatteryMonitor; | 14 import org.chromium.mojom.device.BatteryMonitor; |
| 15 import org.chromium.mojom.device.VibrationManager; | 15 import org.chromium.mojom.device.VibrationManager; |
| 16 | 16 |
| 17 /** | 17 /** |
| 18 * Registers mojo services exposed by the browser in the given registry. | 18 * Registers mojo services exposed by the browser in the given registry. |
| 19 */ | 19 */ |
| 20 @JNINamespace("content") | 20 @JNINamespace("content") |
| 21 class ServiceRegistrar { | 21 class ServiceRegistrar { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 registry.addService(VibrationManager.MANAGER, | 57 registry.addService(VibrationManager.MANAGER, |
| 58 new VibrationManagerImplementationFactory(applicationContext)); | 58 new VibrationManagerImplementationFactory(applicationContext)); |
| 59 } | 59 } |
| 60 | 60 |
| 61 @CalledByNative | 61 @CalledByNative |
| 62 static void registerFrameHostServices(ServiceRegistry registry, Context appl
icationContext) { | 62 static void registerFrameHostServices(ServiceRegistry registry, Context appl
icationContext) { |
| 63 assert applicationContext != null; | 63 assert applicationContext != null; |
| 64 // TODO(avayvod): Register the PresentationService implementation here. | 64 // TODO(avayvod): Register the PresentationService implementation here. |
| 65 } | 65 } |
| 66 } | 66 } |
| OLD | NEW |