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

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

Issue 2921383002: [vr] Close exit prompt when clicking on background (Closed)
Patch Set: fix bot 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
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 c870835b51c7b481735a4e1196d9a7629fa6487e..94630e381c6ca64eea9c33118c34608c7b8cb322 100644
--- a/chrome/browser/android/vr_shell/ui_scene_manager.h
+++ b/chrome/browser/android/vr_shell/ui_scene_manager.h
@@ -52,9 +52,10 @@ class UiSceneManager {
void OnAppButtonClicked();
void OnAppButtonGesturePerformed(UiInterface::Direction direction);
- private:
- FRIEND_TEST_ALL_PREFIXES(UiSceneManagerTest, UiUpdatesExitPrompt);
+ void OnSecurityIconClickedForTesting();
+ void OnExitPromptPrimaryButtonClickedForTesting();
+ private:
void CreateScreenDimmer();
void CreateSecurityWarnings();
void CreateSystemIndicators();
@@ -62,15 +63,18 @@ class UiSceneManager {
void CreateBackground();
void CreateUrlBar();
void CreateCloseButton();
+ void CreateExitPrompt();
void ConfigureScene();
void ConfigureSecurityWarnings();
void UpdateBackgroundColor();
+ void CloseExitPrompt();
void OnSecurityWarningTimer();
void OnBackButtonClicked();
void OnSecurityIconClicked();
void OnExitPromptPrimaryButtonClicked();
void OnExitPromptSecondaryButtonClicked();
+ void OnExitPromptBackplaneClicked();
void OnCloseButtonClicked();
void OnUnsupportedMode(UiUnsupportedMode mode);
int AllocateId();
@@ -84,9 +88,9 @@ class UiSceneManager {
UiElement* permanent_security_warning_ = nullptr;
UiElement* transient_security_warning_ = nullptr;
UiElement* exit_prompt_ = nullptr;
+ UiElement* exit_prompt_backplane_ = 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;
« no previous file with comments | « chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h ('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