| 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/android/cardboard/cardboard_vr_device.h" | 5 #include "content/browser/vr/android/cardboard/cardboard_vr_device.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 | 9 |
| 10 #include "base/android/context_utils.h" |
| 10 #include "base/android/jni_android.h" | 11 #include "base/android/jni_android.h" |
| 11 #include "base/android/jni_array.h" | 12 #include "base/android/jni_array.h" |
| 12 #include "base/android/jni_string.h" | 13 #include "base/android/jni_string.h" |
| 13 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 15 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 16 #include "base/trace_event/trace_event.h" | 17 #include "base/trace_event/trace_event.h" |
| 17 #include "jni/CardboardVRDevice_jni.h" | 18 #include "jni/CardboardVRDevice_jni.h" |
| 18 #include "ui/gfx/transform.h" | 19 #include "ui/gfx/transform.h" |
| 19 #include "ui/gfx/transform_util.h" | 20 #include "ui/gfx/transform_util.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 | 158 |
| 158 return state.Pass(); | 159 return state.Pass(); |
| 159 } | 160 } |
| 160 | 161 |
| 161 void CardboardVRDevice::ResetSensor() { | 162 void CardboardVRDevice::ResetSensor() { |
| 162 Java_CardboardVRDevice_resetSensor(AttachCurrentThread(), | 163 Java_CardboardVRDevice_resetSensor(AttachCurrentThread(), |
| 163 j_cardboard_device_.obj()); | 164 j_cardboard_device_.obj()); |
| 164 } | 165 } |
| 165 | 166 |
| 166 } // namespace content | 167 } // namespace content |
| OLD | NEW |