| 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_GL_THREAD_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 void ForceExitVr() override; | 52 void ForceExitVr() override; |
| 53 void RunVRDisplayInfoCallback( | 53 void RunVRDisplayInfoCallback( |
| 54 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, | 54 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, |
| 55 device::mojom::VRDisplayInfoPtr* info) override; | 55 device::mojom::VRDisplayInfoPtr* info) override; |
| 56 void OnContentPaused(bool enabled) override; | 56 void OnContentPaused(bool enabled) override; |
| 57 void NavigateBack() override; | 57 void NavigateBack() override; |
| 58 | 58 |
| 59 // UiInterface implementation (VrShell calling to the UI). | 59 // UiInterface implementation (VrShell calling to the UI). |
| 60 void SetFullscreen(bool enabled) override; | 60 void SetFullscreen(bool enabled) override; |
| 61 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward) override; | 61 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward) override; |
| 62 void SetLoadProgress(double progress) override; | 62 void SetLoadProgress(float progress) override; |
| 63 void SetLoading(bool loading) override; | 63 void SetLoading(bool loading) override; |
| 64 void SetSecurityLevel(int level) override; | 64 void SetSecurityLevel(int level) override; |
| 65 void SetURL(const GURL& gurl) override; | 65 void SetURL(const GURL& gurl) override; |
| 66 void SetWebVrMode(bool enabled) override; | 66 void SetWebVrMode(bool enabled) override; |
| 67 void SetWebVrSecureOrigin(bool secure) override; | 67 void SetWebVrSecureOrigin(bool secure) override; |
| 68 | 68 |
| 69 protected: | 69 protected: |
| 70 void Init() override; | 70 void Init() override; |
| 71 void CleanUp() override; | 71 void CleanUp() override; |
| 72 | 72 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 85 bool initially_web_vr_; | 85 bool initially_web_vr_; |
| 86 bool in_cct_; | 86 bool in_cct_; |
| 87 bool reprojected_rendering_; | 87 bool reprojected_rendering_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(VrGLThread); | 89 DISALLOW_COPY_AND_ASSIGN(VrGLThread); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace vr_shell | 92 } // namespace vr_shell |
| 93 | 93 |
| 94 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_ | 94 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_ |
| OLD | NEW |