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

Unified Diff: chrome/browser/android/vr_shell/ui_scene_manager.h

Issue 2902043005: [vr] Add incognito coloring (Closed)
Patch Set: merged changes from aldo and amp 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/vr_shell/ui_scene_manager.h
diff --git a/chrome/browser/android/vr_shell/ui_scene_manager.h b/chrome/browser/android/vr_shell/ui_scene_manager.h
index cf2ae941d42dc9c93de0a9808811bddd41b82564..487ed9348342e3d3033a3889b5bb0704245f5ea2 100644
--- a/chrome/browser/android/vr_shell/ui_scene_manager.h
+++ b/chrome/browser/android/vr_shell/ui_scene_manager.h
@@ -22,6 +22,8 @@ class UiScene;
class UrlBar;
class VrBrowserInterface;
+struct ColorScheme;
+
class UiSceneManager {
public:
UiSceneManager(VrBrowserInterface* browser,
@@ -33,6 +35,7 @@ class UiSceneManager {
base::WeakPtr<UiSceneManager> GetWeakPtr();
void SetFullscreen(bool fullscreen);
+ void SetIncognito(bool incognito);
void SetURL(const GURL& gurl);
void SetWebVrSecureOrigin(bool secure);
void SetWebVrMode(bool web_vr);
@@ -40,12 +43,13 @@ class UiSceneManager {
void SetLoading(bool loading);
void SetLoadProgress(float progress);
void SetIsExiting();
- // These methods are currently stubbed.
- void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward);
void SetVideoCapturingIndicator(bool enabled);
void SetScreenCapturingIndicator(bool enabled);
void SetAudioCapturingIndicator(bool enabled);
+ // These methods are currently stubbed.
+ void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward);
+
void OnAppButtonClicked();
void OnAppButtonGesturePerformed(UiInterface::Direction direction);
@@ -60,13 +64,13 @@ class UiSceneManager {
void CreateExitWarning();
void ConfigureScene();
- void ConfigureBackgroundColor(vr::Colorf center_color,
- vr::Colorf horizon_color);
void ConfigureSecurityWarnings();
+ void UpdateBackgroundColor();
void OnSecurityWarningTimer();
void OnBackButtonClicked();
void OnCloseButtonClicked();
int AllocateId();
+ const ColorScheme& color_scheme() const;
VrBrowserInterface* browser_;
UiScene* scene_;
@@ -90,6 +94,7 @@ class UiSceneManager {
bool web_vr_mode_;
bool secure_origin_ = false;
bool fullscreen_ = false;
+ bool incognito_ = false;
bool is_exiting_ = false;
int next_available_id_ = 1;

Powered by Google App Engine
This is Rietveld 408576698