Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 176 void ForceExitVr(); | 176 void ForceExitVr(); |
| 177 | 177 |
| 178 void ProcessUIGesture(std::unique_ptr<blink::WebInputEvent> event); | 178 void ProcessUIGesture(std::unique_ptr<blink::WebInputEvent> event); |
| 179 void ProcessContentGesture(std::unique_ptr<blink::WebInputEvent> event); | 179 void ProcessContentGesture(std::unique_ptr<blink::WebInputEvent> event); |
| 180 | 180 |
| 181 // device::GvrGamepadDataProvider implementation. | 181 // device::GvrGamepadDataProvider implementation. |
| 182 void UpdateGamepadData(device::GvrGamepadData) override; | 182 void UpdateGamepadData(device::GvrGamepadData) override; |
| 183 void RegisterGamepadDataFetcher(device::GvrGamepadDataFetcher*) override; | 183 void RegisterGamepadDataFetcher(device::GvrGamepadDataFetcher*) override; |
| 184 | 184 |
| 185 // TODO(mthiesse): Find a better place for these functions to live. | 185 // TODO(mthiesse): Find a better place for these functions to live. |
| 186 static device::mojom::VRPosePtr VRPosePtrFromGvrPose(gvr::Mat4f head_mat); | 186 static device::mojom::VRPosePtr VRPosePtrFromGvrPose(gvr::Mat4f head_mat, |
|
cjgrant
2017/03/24 21:15:40
Could you:
- Document the function and what each m
klausw
2017/03/24 22:13:29
Done, but only using "matrix" in the header for do
| |
| 187 gvr::Mat4f head_mat_2, | |
| 188 int64_t epsilon_nanos); | |
| 187 static gvr::Sizei GetRecommendedWebVrSize(gvr::GvrApi* gvr_api); | 189 static gvr::Sizei GetRecommendedWebVrSize(gvr::GvrApi* gvr_api); |
| 188 static device::mojom::VRDisplayInfoPtr CreateVRDisplayInfo( | 190 static device::mojom::VRDisplayInfoPtr CreateVRDisplayInfo( |
| 189 gvr::GvrApi* gvr_api, | 191 gvr::GvrApi* gvr_api, |
| 190 gvr::Sizei recommended_size, | 192 gvr::Sizei recommended_size, |
| 191 uint32_t device_id); | 193 uint32_t device_id); |
| 192 | 194 |
| 193 private: | 195 private: |
| 194 ~VrShell() override; | 196 ~VrShell() override; |
| 195 void PostToGlThreadWhenReady(const base::Closure& task); | 197 void PostToGlThreadWhenReady(const base::Closure& task); |
| 196 void SetContentPaused(bool paused); | 198 void SetContentPaused(bool paused); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 264 base::WeakPtrFactory<VrShell> weak_ptr_factory_; | 266 base::WeakPtrFactory<VrShell> weak_ptr_factory_; |
| 265 | 267 |
| 266 DISALLOW_COPY_AND_ASSIGN(VrShell); | 268 DISALLOW_COPY_AND_ASSIGN(VrShell); |
| 267 }; | 269 }; |
| 268 | 270 |
| 269 bool RegisterVrShell(JNIEnv* env); | 271 bool RegisterVrShell(JNIEnv* env); |
| 270 | 272 |
| 271 } // namespace vr_shell | 273 } // namespace vr_shell |
| 272 | 274 |
| 273 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 275 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
| OLD | NEW |