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

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

Issue 2809143004: VR: Add a native UI element scene manager (Closed)
Patch Set: Rebase. Created 3 years, 8 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
« no previous file with comments | « chrome/browser/android/vr_shell/BUILD.gn ('k') | chrome/browser/android/vr_shell/ui_scene_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « chrome/browser/android/vr_shell/BUILD.gn ('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