| 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" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 13 #include "base/threading/thread.h" | 13 #include "base/threading/thread.h" |
| 14 #include "chrome/browser/android/vr_shell/gl_browser_interface.h" | 14 #include "chrome/browser/android/vr_shell/gl_browser_interface.h" |
| 15 #include "chrome/browser/android/vr_shell/ui_browser_interface.h" | 15 #include "chrome/browser/android/vr_shell/ui_browser_interface.h" |
| 16 #include "chrome/browser/android/vr_shell/ui_interface.h" | 16 #include "chrome/browser/android/vr_shell/ui_interface.h" |
| 17 #include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/
gvr_types.h" | 17 #include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/
gvr_types.h" |
| 18 | 18 |
| 19 class GURL; | |
| 20 | |
| 21 namespace vr_shell { | 19 namespace vr_shell { |
| 22 | 20 |
| 23 class UiScene; | 21 class UiScene; |
| 24 class UiSceneManager; | 22 class UiSceneManager; |
| 25 class VrShell; | 23 class VrShell; |
| 26 class VrShellGl; | 24 class VrShellGl; |
| 27 | 25 |
| 28 class VrGLThread : public base::Thread, | 26 class VrGLThread : public base::Thread, |
| 29 public GlBrowserInterface, | 27 public GlBrowserInterface, |
| 30 public UiBrowserInterface, | 28 public UiBrowserInterface, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 void NavigateBack() override; | 66 void NavigateBack() override; |
| 69 void ExitCct() override; | 67 void ExitCct() override; |
| 70 void OnUnsupportedMode(UiUnsupportedMode mode) override; | 68 void OnUnsupportedMode(UiUnsupportedMode mode) override; |
| 71 | 69 |
| 72 // UiInterface implementation (VrShell and GL calling to the UI). | 70 // UiInterface implementation (VrShell and GL calling to the UI). |
| 73 void SetFullscreen(bool enabled) override; | 71 void SetFullscreen(bool enabled) override; |
| 74 void SetIncognito(bool incognito) override; | 72 void SetIncognito(bool incognito) override; |
| 75 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward) override; | 73 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward) override; |
| 76 void SetLoadProgress(float progress) override; | 74 void SetLoadProgress(float progress) override; |
| 77 void SetLoading(bool loading) override; | 75 void SetLoading(bool loading) override; |
| 78 void SetSecurityInfo(security_state::SecurityLevel level, | 76 void SetToolbarState(const ToolbarState& state) override; |
| 79 bool malware) override; | |
| 80 void SetURL(const GURL& gurl) override; | |
| 81 void SetWebVrMode(bool enabled, bool show_toast) override; | 77 void SetWebVrMode(bool enabled, bool show_toast) override; |
| 82 void SetWebVrSecureOrigin(bool secure) override; | 78 void SetWebVrSecureOrigin(bool secure) override; |
| 83 void SetVideoCapturingIndicator(bool enabled) override; | 79 void SetVideoCapturingIndicator(bool enabled) override; |
| 84 void SetScreenCapturingIndicator(bool enabled) override; | 80 void SetScreenCapturingIndicator(bool enabled) override; |
| 85 void SetAudioCapturingIndicator(bool enabled) override; | 81 void SetAudioCapturingIndicator(bool enabled) override; |
| 86 void SetIsExiting() override; | 82 void SetIsExiting() override; |
| 87 void SetSplashScreenIcon(const SkBitmap& bitmap) override; | 83 void SetSplashScreenIcon(const SkBitmap& bitmap) override; |
| 88 | 84 |
| 89 protected: | 85 protected: |
| 90 void Init() override; | 86 void Init() override; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 107 bool in_cct_; | 103 bool in_cct_; |
| 108 bool reprojected_rendering_; | 104 bool reprojected_rendering_; |
| 109 bool daydream_support_; | 105 bool daydream_support_; |
| 110 | 106 |
| 111 DISALLOW_COPY_AND_ASSIGN(VrGLThread); | 107 DISALLOW_COPY_AND_ASSIGN(VrGLThread); |
| 112 }; | 108 }; |
| 113 | 109 |
| 114 } // namespace vr_shell | 110 } // namespace vr_shell |
| 115 | 111 |
| 116 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_ | 112 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_ |
| OLD | NEW |