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

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

Issue 2833773005: Pause drawing webvr when the App button is pressed (Closed)
Patch Set: refactor 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
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 62f2f98ac8e0917278ecbe0a448faec751968b12..6c9581cdde55a607aabcc9a99a537751ac0a660d 100644
--- a/chrome/browser/android/vr_shell/ui_scene_manager.h
+++ b/chrome/browser/android/vr_shell/ui_scene_manager.h
@@ -14,10 +14,13 @@ namespace vr_shell {
struct UiElement;
class UiScene;
+class VrBrowserInterface;
class UiSceneManager {
public:
- explicit UiSceneManager(UiScene* scene);
+ UiSceneManager(
+ const base::WeakPtr<VrBrowserInterface>& weak_browser_interface_,
+ UiScene* scene);
~UiSceneManager();
base::WeakPtr<UiSceneManager> GetWeakPtr();
@@ -25,11 +28,14 @@ class UiSceneManager {
void SetWebVRSecureOrigin(bool secure);
void SetWebVRMode(bool web_vr);
+ void AppButtonPressed();
cjgrant 2017/05/02 18:07:06 How about OnAppButtonPressed or HandleAppButtonPre
ymalik 2017/05/02 20:28:39 Done.
+
private:
void ConfigureSecurityWarnings();
void OnSecurityWarningTimer();
void OnGLInitialized();
+ base::WeakPtr<VrBrowserInterface> weak_browser_interface_;
UiScene* scene_;
// UI element pointers (not owned by the scene manager).
@@ -39,6 +45,7 @@ class UiSceneManager {
bool web_vr_mode_ = false;
bool secure_origin_ = false;
+ bool content_rendering_enabled_ = false;
base::OneShotTimer security_warning_timer_;

Powered by Google App Engine
This is Rietveld 408576698