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

Side by Side Diff: chrome/browser/android/vr_shell/ui_scene_manager.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_UI_SCENE_MANAGER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/timer/timer.h" 10 #include "base/timer/timer.h"
(...skipping 17 matching lines...) Expand all
28 bool in_cct, 28 bool in_cct,
29 bool in_web_vr); 29 bool in_web_vr);
30 ~UiSceneManager(); 30 ~UiSceneManager();
31 31
32 base::WeakPtr<UiSceneManager> GetWeakPtr(); 32 base::WeakPtr<UiSceneManager> GetWeakPtr();
33 33
34 void SetFullscreen(bool fullscreen); 34 void SetFullscreen(bool fullscreen);
35 void SetURL(const GURL& gurl); 35 void SetURL(const GURL& gurl);
36 void SetWebVrSecureOrigin(bool secure); 36 void SetWebVrSecureOrigin(bool secure);
37 void SetWebVrMode(bool web_vr); 37 void SetWebVrMode(bool web_vr);
38 // These methods are currently stubbed.
39 void SetSecurityLevel(int level); 38 void SetSecurityLevel(int level);
40 void SetLoading(bool loading); 39 void SetLoading(bool loading);
41 void SetLoadProgress(float progress); 40 void SetLoadProgress(float progress);
42 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward); 41 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward);
42 void SetVideoCapturingIndicator(bool enabled);
43 void SetScreenCapturingIndicator(bool enabled);
44 void SetAudioCapturingIndicator(bool enabled);
43 45
44 void OnAppButtonClicked(); 46 void OnAppButtonClicked();
45 void OnAppButtonGesturePerformed(UiInterface::Direction direction); 47 void OnAppButtonGesturePerformed(UiInterface::Direction direction);
46 48
47 private: 49 private:
48 void CreateSecurityWarnings(); 50 void CreateSecurityWarnings();
49 void CreateSystemIndicators(); 51 void CreateSystemIndicators();
50 void CreateContentQuad(); 52 void CreateContentQuad();
51 void CreateBackground(); 53 void CreateBackground();
52 void CreateUrlBar(); 54 void CreateUrlBar();
53 void CreateCloseButton(); 55 void CreateCloseButton();
54 56
55 void ConfigureScene(); 57 void ConfigureScene();
56 void ConfigureSecurityWarnings(); 58 void ConfigureSecurityWarnings();
57 void OnSecurityWarningTimer(); 59 void OnSecurityWarningTimer();
58 void OnBackButtonClicked(); 60 void OnBackButtonClicked();
59 void OnCloseButtonClicked(); 61 void OnCloseButtonClicked();
60 int AllocateId(); 62 int AllocateId();
61 63
62 VrBrowserInterface* browser_; 64 VrBrowserInterface* browser_;
63 UiScene* scene_; 65 UiScene* scene_;
64 66
65 // UI element pointers (not owned by the scene manager). 67 // UI element pointers (not owned by the scene manager).
66 UiElement* permanent_security_warning_ = nullptr; 68 UiElement* permanent_security_warning_ = nullptr;
67 UiElement* transient_security_warning_ = nullptr; 69 UiElement* transient_security_warning_ = nullptr;
68 UiElement* main_content_ = nullptr; 70 UiElement* main_content_ = nullptr;
69 UiElement* audio_input_indicator_ = nullptr; 71 UiElement* audio_capture_indicator_ = nullptr;
70 UiElement* video_input_indicator_ = nullptr; 72 UiElement* video_capture_indicator_ = nullptr;
71 UrlBar* url_bar_ = nullptr; 73 UrlBar* url_bar_ = nullptr;
72 LoadingIndicator* loading_indicator_ = nullptr; 74 LoadingIndicator* loading_indicator_ = nullptr;
73 75
74 bool in_cct_; 76 bool in_cct_;
75 bool web_vr_mode_; 77 bool web_vr_mode_;
76 bool secure_origin_ = false; 78 bool secure_origin_ = false;
77 bool fullscreen_ = false; 79 bool fullscreen_ = false;
78 80
79 int next_available_id_ = 1; 81 int next_available_id_ = 1;
80 82
81 std::vector<UiElement*> content_elements_; 83 std::vector<UiElement*> content_elements_;
82 std::vector<UiElement*> control_elements_; 84 std::vector<UiElement*> control_elements_;
83 85
84 base::OneShotTimer security_warning_timer_; 86 base::OneShotTimer security_warning_timer_;
85 87
86 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; 88 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_;
87 89
88 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); 90 DISALLOW_COPY_AND_ASSIGN(UiSceneManager);
89 }; 91 };
90 92
91 } // namespace vr_shell 93 } // namespace vr_shell
92 94
93 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ 95 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/ui_interface.h ('k') | chrome/browser/android/vr_shell/ui_scene_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698