Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1208)

Side by Side Diff: chrome/browser/android/vr_shell/vr_gl_thread.h

Issue 2890563003: VR: Update UiSceneManager with audio/video capturing flags (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // UiInterface implementation (VrShell calling to the UI). 61 // UiInterface implementation (VrShell calling to the UI).
62 void SetFullscreen(bool enabled) override; 62 void SetFullscreen(bool enabled) override;
63 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward) override; 63 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward) override;
64 void SetLoadProgress(float progress) override; 64 void SetLoadProgress(float progress) override;
65 void SetLoading(bool loading) override; 65 void SetLoading(bool loading) override;
66 void SetSecurityLevel(int level) override; 66 void SetSecurityLevel(int level) override;
67 void SetURL(const GURL& gurl) override; 67 void SetURL(const GURL& gurl) override;
68 void SetWebVrMode(bool enabled) override; 68 void SetWebVrMode(bool enabled) override;
69 void SetWebVrSecureOrigin(bool secure) override; 69 void SetWebVrSecureOrigin(bool secure) override;
70 void SetVideoCapturingIndicator(bool enabled) override;
71 void SetScreenCapturingIndicator(bool enabled) override;
72 void SetAudioCapturingIndicator(bool enabled) override;
70 73
71 protected: 74 protected:
72 void Init() override; 75 void Init() override;
73 void CleanUp() override; 76 void CleanUp() override;
74 77
75 private: 78 private:
76 // Created on GL thread. 79 // Created on GL thread.
77 std::unique_ptr<UiScene> scene_; 80 std::unique_ptr<UiScene> scene_;
78 std::unique_ptr<UiSceneManager> scene_manager_; 81 std::unique_ptr<UiSceneManager> scene_manager_;
79 base::WeakPtr<UiSceneManager> weak_scene_manager_; 82 base::WeakPtr<UiSceneManager> weak_scene_manager_;
80 std::unique_ptr<VrShellGl> vr_shell_gl_; 83 std::unique_ptr<VrShellGl> vr_shell_gl_;
81 base::WeakPtr<VrShellGl> weak_vr_shell_gl_; 84 base::WeakPtr<VrShellGl> weak_vr_shell_gl_;
82 85
83 // This state is used for initializing vr_shell_gl_. 86 // This state is used for initializing vr_shell_gl_.
84 base::WeakPtr<VrShell> weak_vr_shell_; 87 base::WeakPtr<VrShell> weak_vr_shell_;
85 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 88 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
86 gvr_context* gvr_api_; 89 gvr_context* gvr_api_;
87 bool initially_web_vr_; 90 bool initially_web_vr_;
88 bool in_cct_; 91 bool in_cct_;
89 bool reprojected_rendering_; 92 bool reprojected_rendering_;
90 93
91 DISALLOW_COPY_AND_ASSIGN(VrGLThread); 94 DISALLOW_COPY_AND_ASSIGN(VrGLThread);
92 }; 95 };
93 96
94 } // namespace vr_shell 97 } // namespace vr_shell
95 98
96 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_ 99 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc ('k') | chrome/browser/android/vr_shell/vr_gl_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698