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

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

Issue 2866853002: VR: Wire VrShell UI-related state to the scene manager. (Closed)
Patch Set: Rebase; remove now-unused source file. 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 eb782dd892328de1c030318605718d3597647f8f..4eae5b1a586bb6dd5096bc1cdeca4e7c7c69c75a 100644
--- a/chrome/browser/android/vr_shell/ui_scene_manager.h
+++ b/chrome/browser/android/vr_shell/ui_scene_manager.h
@@ -9,7 +9,9 @@
#include "base/memory/weak_ptr.h"
#include "base/timer/timer.h"
#include "base/values.h"
-#include "url/gurl.h"
+#include "chrome/browser/android/vr_shell/ui_interface.h"
+
+class GURL;
namespace vr_shell {
@@ -20,17 +22,26 @@ class VrBrowserInterface;
class UiSceneManager {
public:
- UiSceneManager(VrBrowserInterface* browser, UiScene* scene, bool in_cct);
+ UiSceneManager(VrBrowserInterface* browser,
+ UiScene* scene,
+ bool in_cct,
+ bool in_web_vr);
~UiSceneManager();
base::WeakPtr<UiSceneManager> GetWeakPtr();
- void SetWebVRSecureOrigin(bool secure);
- void SetWebVRMode(bool web_vr);
+ void SetFullscreen(bool fullscreen);
+ void SetURL(const GURL& gurl);
+ void SetWebVrSecureOrigin(bool secure);
+ void SetWebVrMode(bool web_vr);
+ // These methods are currently stubbed.
+ void SetSecurityLevel(int level);
+ void SetLoading(bool loading);
+ void SetLoadProgress(double progress);
+ void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward);
void OnAppButtonClicked();
- void OnUrlChange(const GURL& gurl);
- void OnFullscreenChanged(bool fullscreen);
+ void OnAppButtonGesturePerformed(UiInterface::Direction direction);
private:
void CreateSecurityWarnings();
@@ -51,10 +62,10 @@ class UiSceneManager {
UiElement* main_content_ = nullptr;
UrlBar* url_bar_ = nullptr;
- bool web_vr_mode_ = false;
+ bool in_cct_;
+ bool web_vr_mode_;
bool secure_origin_ = false;
bool content_rendering_enabled_ = true;
- bool in_cct_;
int next_available_id_ = 1;
« no previous file with comments | « chrome/browser/android/vr_shell/ui_interface.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