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

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

Issue 2902043005: [vr] Add incognito coloring (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 public: 28 public:
29 UiSceneManager(VrBrowserInterface* browser, 29 UiSceneManager(VrBrowserInterface* browser,
30 UiScene* scene, 30 UiScene* scene,
31 bool in_cct, 31 bool in_cct,
32 bool in_web_vr); 32 bool in_web_vr);
33 ~UiSceneManager(); 33 ~UiSceneManager();
34 34
35 base::WeakPtr<UiSceneManager> GetWeakPtr(); 35 base::WeakPtr<UiSceneManager> GetWeakPtr();
36 36
37 void SetFullscreen(bool fullscreen); 37 void SetFullscreen(bool fullscreen);
38 void SetIncognito(bool incognito);
38 void SetURL(const GURL& gurl); 39 void SetURL(const GURL& gurl);
39 void SetWebVrSecureOrigin(bool secure); 40 void SetWebVrSecureOrigin(bool secure);
40 void SetWebVrMode(bool web_vr); 41 void SetWebVrMode(bool web_vr);
41 void SetSecurityLevel(int level); 42 void SetSecurityLevel(int level);
42 void SetLoading(bool loading); 43 void SetLoading(bool loading);
43 void SetLoadProgress(float progress); 44 void SetLoadProgress(float progress);
44 void SetIsExiting(); 45 void SetIsExiting();
45 void SetVideoCapturingIndicator(bool enabled); 46 void SetVideoCapturingIndicator(bool enabled);
46 void SetScreenCapturingIndicator(bool enabled); 47 void SetScreenCapturingIndicator(bool enabled);
47 void SetAudioCapturingIndicator(bool enabled); 48 void SetAudioCapturingIndicator(bool enabled);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 UiElement* ceiling_ = nullptr; 87 UiElement* ceiling_ = nullptr;
87 UiElement* floor_ = nullptr; 88 UiElement* floor_ = nullptr;
88 UiElement* floor_grid_ = nullptr; 89 UiElement* floor_grid_ = nullptr;
89 UrlBar* url_bar_ = nullptr; 90 UrlBar* url_bar_ = nullptr;
90 LoadingIndicator* loading_indicator_ = nullptr; 91 LoadingIndicator* loading_indicator_ = nullptr;
91 92
92 bool in_cct_; 93 bool in_cct_;
93 bool web_vr_mode_; 94 bool web_vr_mode_;
94 bool secure_origin_ = false; 95 bool secure_origin_ = false;
95 bool fullscreen_ = false; 96 bool fullscreen_ = false;
97 bool incognito_ = false;
96 bool is_exiting_ = false; 98 bool is_exiting_ = false;
97 99
98 int next_available_id_ = 1; 100 int next_available_id_ = 1;
99 101
100 std::vector<UiElement*> content_elements_; 102 std::vector<UiElement*> content_elements_;
101 std::vector<UiElement*> control_elements_; 103 std::vector<UiElement*> control_elements_;
102 104
103 base::OneShotTimer security_warning_timer_; 105 base::OneShotTimer security_warning_timer_;
104 106
105 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; 107 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_;
106 108
107 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); 109 DISALLOW_COPY_AND_ASSIGN(UiSceneManager);
108 }; 110 };
109 111
110 } // namespace vr_shell 112 } // namespace vr_shell
111 113
112 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ 114 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698