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

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: Use ui_ in VrShell 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. 38 // These methods are currently stubbed.
cjgrant 2017/05/16 21:31:38 See previous comment. At least, this comment need
asimjour1 2017/05/17 14:42:20 Done.
39 void SetSecurityLevel(int level); 39 void SetSecurityLevel(int level);
40 void SetLoading(bool loading); 40 void SetLoading(bool loading);
41 void SetLoadProgress(float progress); 41 void SetLoadProgress(float progress);
42 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward); 42 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward);
43 void SetVideoCapturingIndicator(bool enabled);
44 void SetScreenCapturingIndicator(bool enabled);
45 void SetAudioCapturingIndicator(bool enabled);
43 46
44 void OnAppButtonClicked(); 47 void OnAppButtonClicked();
45 void OnAppButtonGesturePerformed(UiInterface::Direction direction); 48 void OnAppButtonGesturePerformed(UiInterface::Direction direction);
46 49
47 private: 50 private:
48 void CreateSecurityWarnings(); 51 void CreateSecurityWarnings();
49 void CreateSystemIndicators(); 52 void CreateSystemIndicators();
50 void CreateContentQuad(); 53 void CreateContentQuad();
51 void CreateBackground(); 54 void CreateBackground();
52 void CreateUrlBar(); 55 void CreateUrlBar();
53 void CreateCloseButton(); 56 void CreateCloseButton();
54 57
55 void ConfigureScene(); 58 void ConfigureScene();
56 void ConfigureSecurityWarnings(); 59 void ConfigureSecurityWarnings();
57 void OnSecurityWarningTimer(); 60 void OnSecurityWarningTimer();
58 void OnBackButtonClicked(); 61 void OnBackButtonClicked();
59 void OnCloseButtonClicked(); 62 void OnCloseButtonClicked();
60 int AllocateId(); 63 int AllocateId();
61 64
62 VrBrowserInterface* browser_; 65 VrBrowserInterface* browser_;
63 UiScene* scene_; 66 UiScene* scene_;
64 67
65 // UI element pointers (not owned by the scene manager). 68 // UI element pointers (not owned by the scene manager).
66 UiElement* permanent_security_warning_ = nullptr; 69 UiElement* permanent_security_warning_ = nullptr;
67 UiElement* transient_security_warning_ = nullptr; 70 UiElement* transient_security_warning_ = nullptr;
68 UiElement* main_content_ = nullptr; 71 UiElement* main_content_ = nullptr;
69 UiElement* audio_input_indicator_ = nullptr; 72 UiElement* audio_capture_indicator_ = nullptr;
70 UiElement* video_input_indicator_ = nullptr; 73 UiElement* video_capture_indicator_ = nullptr;
71 UrlBar* url_bar_ = nullptr; 74 UrlBar* url_bar_ = nullptr;
72 LoadingIndicator* loading_indicator_ = nullptr; 75 LoadingIndicator* loading_indicator_ = nullptr;
73 76
74 bool in_cct_; 77 bool in_cct_;
75 bool web_vr_mode_; 78 bool web_vr_mode_;
76 bool secure_origin_ = false; 79 bool secure_origin_ = false;
77 bool fullscreen_ = false; 80 bool fullscreen_ = false;
78 81
79 int next_available_id_ = 1; 82 int next_available_id_ = 1;
80 83
81 std::vector<UiElement*> content_elements_; 84 std::vector<UiElement*> content_elements_;
82 std::vector<UiElement*> control_elements_; 85 std::vector<UiElement*> control_elements_;
83 86
84 base::OneShotTimer security_warning_timer_; 87 base::OneShotTimer security_warning_timer_;
85 88
86 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; 89 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_;
87 90
88 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); 91 DISALLOW_COPY_AND_ASSIGN(UiSceneManager);
89 }; 92 };
90 93
91 } // namespace vr_shell 94 } // namespace vr_shell
92 95
93 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ 96 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698