| 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
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b066bd28330ad9e234e52f7392f4bc40c557f163
|
| --- /dev/null
|
| +++ b/chrome/browser/android/vr_shell/ui_scene_manager.h
|
| @@ -0,0 +1,41 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_
|
| +#define CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "base/memory/weak_ptr.h"
|
| +#include "base/values.h"
|
| +
|
| +namespace vr_shell {
|
| +
|
| +class UiScene;
|
| +
|
| +class UiSceneManager {
|
| + public:
|
| + explicit UiSceneManager(UiScene* scene);
|
| + ~UiSceneManager();
|
| +
|
| + base::WeakPtr<UiSceneManager> GetWeakPtr();
|
| +
|
| + void UpdateScene(std::unique_ptr<base::ListValue> commands);
|
| +
|
| + void SetWebVRSecureOrigin(bool secure);
|
| + void SetWebVRMode(bool web_vr);
|
| +
|
| + private:
|
| + UiScene* scene_;
|
| +
|
| + bool web_vr_mode_ = false;
|
| + bool secure_origin_ = false;
|
| +
|
| + base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(UiSceneManager);
|
| +};
|
| +
|
| +} // namespace vr_shell
|
| +
|
| +#endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_
|
|
|