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 std::unique_ptr<blink::WebInputEvent> event) override; | 52 std::unique_ptr<blink::WebInputEvent> event) override; |
53 void ForceExitVr() override; | 53 void ForceExitVr() override; |
54 void ExitPresent() override; | 54 void ExitPresent() override; |
55 void ExitFullscreen() override; | 55 void ExitFullscreen() override; |
56 void RunVRDisplayInfoCallback( | 56 void RunVRDisplayInfoCallback( |
57 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, | 57 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, |
58 device::mojom::VRDisplayInfoPtr* info) override; | 58 device::mojom::VRDisplayInfoPtr* info) override; |
59 void OnContentPaused(bool enabled) override; | 59 void OnContentPaused(bool enabled) override; |
60 void NavigateBack() override; | 60 void NavigateBack() override; |
61 void ExitCct() override; | 61 void ExitCct() override; |
| 62 void ToggleCardboardGamepad(bool enabled) override; |
62 | 63 |
63 // UiInterface implementation (VrShell calling to the UI). | 64 // UiInterface implementation (VrShell calling to the UI). |
64 void SetFullscreen(bool enabled) override; | 65 void SetFullscreen(bool enabled) override; |
65 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward) override; | 66 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward) override; |
66 void SetLoadProgress(float progress) override; | 67 void SetLoadProgress(float progress) override; |
67 void SetLoading(bool loading) override; | 68 void SetLoading(bool loading) override; |
68 void SetSecurityLevel(int level) override; | 69 void SetSecurityLevel(int level) override; |
69 void SetURL(const GURL& gurl) override; | 70 void SetURL(const GURL& gurl) override; |
70 void SetWebVrMode(bool enabled) override; | 71 void SetWebVrMode(bool enabled) override; |
71 void SetWebVrSecureOrigin(bool secure) override; | 72 void SetWebVrSecureOrigin(bool secure) override; |
(...skipping 22 matching lines...) Expand all Loading... |
94 bool in_cct_; | 95 bool in_cct_; |
95 bool reprojected_rendering_; | 96 bool reprojected_rendering_; |
96 bool daydream_support_; | 97 bool daydream_support_; |
97 | 98 |
98 DISALLOW_COPY_AND_ASSIGN(VrGLThread); | 99 DISALLOW_COPY_AND_ASSIGN(VrGLThread); |
99 }; | 100 }; |
100 | 101 |
101 } // namespace vr_shell | 102 } // namespace vr_shell |
102 | 103 |
103 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_ | 104 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_ |
OLD | NEW |