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

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

Issue 2884453002: VR: audio and video capture indicators. (Closed)
Patch Set: adding missing files 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 27 matching lines...) Expand all
38 void SetSecurityLevel(int level); 38 void SetSecurityLevel(int level);
39 void SetLoading(bool loading); 39 void SetLoading(bool loading);
40 void SetLoadProgress(double progress); 40 void SetLoadProgress(double progress);
41 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward); 41 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward);
42 42
43 void OnAppButtonClicked(); 43 void OnAppButtonClicked();
44 void OnAppButtonGesturePerformed(UiInterface::Direction direction); 44 void OnAppButtonGesturePerformed(UiInterface::Direction direction);
45 45
46 private: 46 private:
47 void CreateSecurityWarnings(); 47 void CreateSecurityWarnings();
48 void CreateSystemIndicators();
48 void CreateContentQuad(); 49 void CreateContentQuad();
49 void CreateBackground(); 50 void CreateBackground();
50 void CreateUrlBar(); 51 void CreateUrlBar();
51 52
52 void ConfigureSecurityWarnings(); 53 void ConfigureSecurityWarnings();
53 void OnSecurityWarningTimer(); 54 void OnSecurityWarningTimer();
54 void OnBackButtonClicked(); 55 void OnBackButtonClicked();
55 int AllocateId(); 56 int AllocateId();
56 57
57 VrBrowserInterface* browser_; 58 VrBrowserInterface* browser_;
58 UiScene* scene_; 59 UiScene* scene_;
59 60
60 // UI element pointers (not owned by the scene manager). 61 // UI element pointers (not owned by the scene manager).
61 UiElement* permanent_security_warning_ = nullptr; 62 UiElement* permanent_security_warning_ = nullptr;
62 UiElement* transient_security_warning_ = nullptr; 63 UiElement* transient_security_warning_ = nullptr;
63 UiElement* main_content_ = nullptr; 64 UiElement* main_content_ = nullptr;
65 UiElement* audio_input_indicator_ = nullptr;
64 UrlBar* url_bar_ = nullptr; 66 UrlBar* url_bar_ = nullptr;
65 67
66 bool in_cct_; 68 bool in_cct_;
67 bool web_vr_mode_; 69 bool web_vr_mode_;
68 bool secure_origin_ = false; 70 bool secure_origin_ = false;
69 71
70 int next_available_id_ = 1; 72 int next_available_id_ = 1;
71 73
72 std::vector<UiElement*> browser_ui_elements_; 74 std::vector<UiElement*> browser_ui_elements_;
73 75
74 base::OneShotTimer security_warning_timer_; 76 base::OneShotTimer security_warning_timer_;
75 77
76 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; 78 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_;
77 79
78 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); 80 DISALLOW_COPY_AND_ASSIGN(UiSceneManager);
79 }; 81 };
80 82
81 } // namespace vr_shell 83 } // namespace vr_shell
82 84
83 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ 85 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698