| 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;
|
|
|
|
|