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

Side by Side Diff: chrome/browser/android/vr_shell/ui_scene.h

Issue 2913633002: [vr] Clicking on the security icon should prompt the user to bail out of VR (Closed)
Patch Set: rebase Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 SkColor GetWorldBackgroundColor() const; 73 SkColor GetWorldBackgroundColor() const;
74 74
75 void SetBackgroundDistance(float distance); 75 void SetBackgroundDistance(float distance);
76 float GetBackgroundDistance() const; 76 float GetBackgroundDistance() const;
77 77
78 bool GetWebVrRenderingEnabled() const; 78 bool GetWebVrRenderingEnabled() const;
79 void SetWebVrRenderingEnabled(bool enabled); 79 void SetWebVrRenderingEnabled(bool enabled);
80 80
81 bool is_exiting() const { return is_exiting_; } 81 bool is_exiting() const { return is_exiting_; }
82 void set_is_exiting(); 82 void set_is_exiting();
83 bool is_prompting_to_exit() { return is_prompting_to_exit_; }
84 void set_is_prompting_to_exit(bool prompting);
83 85
84 void OnGLInitialized(); 86 void OnGLInitialized();
85 87
86 private: 88 private:
87 void Animate(const base::TimeTicks& current_time); 89 void Animate(const base::TimeTicks& current_time);
88 void ApplyRecursiveTransforms(UiElement* element); 90 void ApplyRecursiveTransforms(UiElement* element);
89 91
90 std::vector<std::unique_ptr<UiElement>> ui_elements_; 92 std::vector<std::unique_ptr<UiElement>> ui_elements_;
91 UiElement* content_element_ = nullptr; 93 UiElement* content_element_ = nullptr;
92 ColorScheme::Mode mode_ = ColorScheme::kModeNormal; 94 ColorScheme::Mode mode_ = ColorScheme::kModeNormal;
93 95
94 float background_distance_ = 10.0f; 96 float background_distance_ = 10.0f;
95 bool webvr_rendering_enabled_ = true; 97 bool webvr_rendering_enabled_ = true;
96 bool gl_initialized_ = false; 98 bool gl_initialized_ = false;
97 bool is_exiting_ = false; 99 bool is_exiting_ = false;
100 bool is_prompting_to_exit_ = false;
98 101
99 DISALLOW_COPY_AND_ASSIGN(UiScene); 102 DISALLOW_COPY_AND_ASSIGN(UiScene);
100 }; 103 };
101 104
102 } // namespace vr_shell 105 } // namespace vr_shell
103 106
104 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_H_ 107 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/ui_elements/url_bar.cc ('k') | chrome/browser/android/vr_shell/ui_scene.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698