| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 bool thread_started_ = false; | 223 bool thread_started_ = false; |
| 224 UiInterface* ui_; | 224 UiInterface* ui_; |
| 225 bool reprojected_rendering_; | 225 bool reprojected_rendering_; |
| 226 | 226 |
| 227 jobject content_surface_ = nullptr; | 227 jobject content_surface_ = nullptr; |
| 228 bool taken_surface_ = false; | 228 bool taken_surface_ = false; |
| 229 base::CancelableClosure poll_capturing_media_task_; | 229 base::CancelableClosure poll_capturing_media_task_; |
| 230 bool is_capturing_audio_ = false; | 230 bool is_capturing_audio_ = false; |
| 231 bool is_capturing_video_ = false; | 231 bool is_capturing_video_ = false; |
| 232 bool is_capturing_screen_ = false; | 232 bool is_capturing_screen_ = false; |
| 233 int number_of_tabs_capturing_audio_ = 0; |
| 234 int number_of_tabs_capturing_video_ = 0; |
| 235 int number_of_tabs_capturing_screen_ = 0; |
| 233 | 236 |
| 234 // TODO(mthiesse): Remove the need for this to be stored here. | 237 // TODO(mthiesse): Remove the need for this to be stored here. |
| 235 // crbug.com/674594 | 238 // crbug.com/674594 |
| 236 gvr_context* gvr_api_; | 239 gvr_context* gvr_api_; |
| 237 | 240 |
| 238 // Are we currently providing a gamepad factory to the gamepad manager? | 241 // Are we currently providing a gamepad factory to the gamepad manager? |
| 239 bool gamepad_source_active_ = false; | 242 bool gamepad_source_active_ = false; |
| 240 // Registered fetcher, must remain alive for UpdateGamepadData calls. | 243 // Registered fetcher, must remain alive for UpdateGamepadData calls. |
| 241 // That's ok since the fetcher is only destroyed from VrShell's destructor. | 244 // That's ok since the fetcher is only destroyed from VrShell's destructor. |
| 242 device::GvrGamepadDataFetcher* gamepad_data_fetcher_ = nullptr; | 245 device::GvrGamepadDataFetcher* gamepad_data_fetcher_ = nullptr; |
| 243 | 246 |
| 244 base::WeakPtrFactory<VrShell> weak_ptr_factory_; | 247 base::WeakPtrFactory<VrShell> weak_ptr_factory_; |
| 245 | 248 |
| 246 DISALLOW_COPY_AND_ASSIGN(VrShell); | 249 DISALLOW_COPY_AND_ASSIGN(VrShell); |
| 247 }; | 250 }; |
| 248 | 251 |
| 249 bool RegisterVrShell(JNIEnv* env); | 252 bool RegisterVrShell(JNIEnv* env); |
| 250 | 253 |
| 251 } // namespace vr_shell | 254 } // namespace vr_shell |
| 252 | 255 |
| 253 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ | 256 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ |
| OLD | NEW |