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

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

Issue 2955483003: Show splash screen when entering VR from a deep-link (Closed)
Patch Set: . 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 42d69ec16ccb541125cbb74acbc5a8822e72444d..d86e724bc5bf14c1cfb86aeb2e063025d725e0d0 100644
--- a/chrome/browser/android/vr_shell/ui_scene_manager.h
+++ b/chrome/browser/android/vr_shell/ui_scene_manager.h
@@ -13,10 +13,12 @@
#include "chrome/browser/android/vr_shell/color_scheme.h"
#include "chrome/browser/android/vr_shell/ui_interface.h"
#include "chrome/browser/android/vr_shell/ui_unsupported_mode.h"
+#include "third_party/skia/include/core/SkBitmap.h"
namespace vr_shell {
class LoadingIndicator;
+class SplashScreenIcon;
class TransientUrlBar;
class UiBrowserInterface;
class UiElement;
@@ -29,7 +31,7 @@ class UiSceneManager {
UiScene* scene,
bool in_cct,
bool in_web_vr,
- bool web_vr_autopresented);
+ bool web_vr_autopresentation_expected);
~UiSceneManager();
base::WeakPtr<UiSceneManager> GetWeakPtr();
@@ -38,7 +40,7 @@ class UiSceneManager {
void SetIncognito(bool incognito);
void SetURL(const GURL& gurl);
void SetWebVrSecureOrigin(bool secure);
- void SetWebVrMode(bool web_vr, bool auto_presented);
+ void SetWebVrMode(bool web_vr);
void SetSecurityLevel(security_state::SecurityLevel level);
void SetLoading(bool loading);
void SetLoadProgress(float progress);
@@ -46,6 +48,7 @@ class UiSceneManager {
void SetVideoCapturingIndicator(bool enabled);
void SetScreenCapturingIndicator(bool enabled);
void SetAudioCapturingIndicator(bool enabled);
+ void SetSplashScreenIcon(const SkBitmap& bitmap);
// These methods are currently stubbed.
void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward);
@@ -61,6 +64,7 @@ class UiSceneManager {
void CreateSecurityWarnings();
void CreateSystemIndicators();
void CreateContentQuad();
+ void CreateSplashScreen();
void CreateBackground();
void CreateUrlBar();
void CreateTransientUrlBar();
@@ -102,13 +106,14 @@ class UiSceneManager {
UiElement* ceiling_ = nullptr;
UiElement* floor_ = nullptr;
UiElement* close_button_ = nullptr;
+ SplashScreenIcon* splash_screen_icon_ = nullptr;
UrlBar* url_bar_ = nullptr;
TransientUrlBar* transient_url_bar_ = nullptr;
LoadingIndicator* loading_indicator_ = nullptr;
bool in_cct_;
bool web_vr_mode_;
- bool web_vr_autopresented_ = false;
+ bool web_vr_autopresentation_expected_ = false;
bool secure_origin_ = false;
bool fullscreen_ = false;
bool incognito_ = false;

Powered by Google App Engine
This is Rietveld 408576698