| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "content/browser/vr/vr_device_manager.h" | 5 #include "content/browser/vr/vr_device_manager.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
| 9 #include "build/build_config.h" |
| 9 #include "third_party/WebKit/public/platform/modules/vr/WebVR.h" | 10 #include "third_party/WebKit/public/platform/modules/vr/WebVR.h" |
| 10 | 11 |
| 11 #if defined(OS_ANDROID) | 12 #if defined(OS_ANDROID) |
| 12 #include "content/browser/vr/android/cardboard/cardboard_vr_device_provider.h" | 13 #include "content/browser/vr/android/cardboard/cardboard_vr_device_provider.h" |
| 13 #endif | 14 #endif |
| 14 | 15 |
| 15 namespace content { | 16 namespace content { |
| 16 | 17 |
| 17 namespace { | 18 namespace { |
| 18 VRDeviceManager* g_vr_device_manager = nullptr; | 19 VRDeviceManager* g_vr_device_manager = nullptr; |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 } | 142 } |
| 142 } | 143 } |
| 143 | 144 |
| 144 void VRDeviceManager::ResetSensor(uint32_t index) { | 145 void VRDeviceManager::ResetSensor(uint32_t index) { |
| 145 VRDevice* device = GetDevice(index); | 146 VRDevice* device = GetDevice(index); |
| 146 if (device) | 147 if (device) |
| 147 device->ResetSensor(); | 148 device->ResetSensor(); |
| 148 } | 149 } |
| 149 | 150 |
| 150 } // namespace content | 151 } // namespace content |
| OLD | NEW |