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

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

Issue 2913633002: [vr] Clicking on the security icon should prompt the user to bail out of VR (Closed)
Patch Set: rebase Created 3 years, 6 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
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene.cc ('k') | chrome/browser/android/vr_shell/ui_scene_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f6abe57d0345d240db93d865b523b84b5e1748e2..c870835b51c7b481735a4e1196d9a7629fa6487e 100644
--- a/chrome/browser/android/vr_shell/ui_scene_manager.h
+++ b/chrome/browser/android/vr_shell/ui_scene_manager.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_
#define CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_
+#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/timer/timer.h"
@@ -52,6 +53,8 @@ class UiSceneManager {
void OnAppButtonGesturePerformed(UiInterface::Direction direction);
private:
+ FRIEND_TEST_ALL_PREFIXES(UiSceneManagerTest, UiUpdatesExitPrompt);
+
void CreateScreenDimmer();
void CreateSecurityWarnings();
void CreateSystemIndicators();
@@ -59,13 +62,15 @@ class UiSceneManager {
void CreateBackground();
void CreateUrlBar();
void CreateCloseButton();
- void CreateExitWarning();
void ConfigureScene();
void ConfigureSecurityWarnings();
void UpdateBackgroundColor();
void OnSecurityWarningTimer();
void OnBackButtonClicked();
+ void OnSecurityIconClicked();
+ void OnExitPromptPrimaryButtonClicked();
+ void OnExitPromptSecondaryButtonClicked();
void OnCloseButtonClicked();
void OnUnsupportedMode(UiUnsupportedMode mode);
int AllocateId();
@@ -78,8 +83,10 @@ class UiSceneManager {
// UI element pointers (not owned by the scene manager).
UiElement* permanent_security_warning_ = nullptr;
UiElement* transient_security_warning_ = nullptr;
+ UiElement* exit_prompt_ = nullptr;
UiElement* exit_warning_ = nullptr;
UiElement* main_content_ = nullptr;
+ UiElement* main_content_backplane_ = nullptr;
UiElement* audio_capture_indicator_ = nullptr;
UiElement* video_capture_indicator_ = nullptr;
UiElement* screen_capture_indicator_ = nullptr;
@@ -95,7 +102,6 @@ class UiSceneManager {
bool secure_origin_ = false;
bool fullscreen_ = false;
bool incognito_ = false;
- bool is_exiting_ = false;
bool audio_capturing_ = false;
bool video_capturing_ = false;
bool screen_capturing_ = false;
@@ -103,6 +109,7 @@ class UiSceneManager {
int next_available_id_ = 1;
std::vector<UiElement*> content_elements_;
+ std::vector<UiElement*> background_elements_;
std::vector<UiElement*> control_elements_;
base::OneShotTimer security_warning_timer_;
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene.cc ('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