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

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

Issue 2914543002: [vr] Bail on unhandled code points. (Closed)
Patch Set: 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_MANAGER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/timer/timer.h" 10 #include "base/timer/timer.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/android/vr_shell/ui_interface.h" 12 #include "chrome/browser/android/vr_shell/ui_interface.h"
13 #include "chrome/browser/android/vr_shell/ui_unsupported_mode.h"
13 #include "device/vr/vr_types.h" 14 #include "device/vr/vr_types.h"
14 15
15 namespace vr_shell { 16 namespace vr_shell {
16 17
17 class LoadingIndicator; 18 class LoadingIndicator;
18 class UiElement; 19 class UiElement;
19 class UiScene; 20 class UiScene;
20 class UrlBar; 21 class UrlBar;
21 class VrBrowserInterface; 22 class VrBrowserInterface;
22 23
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void CreateUrlBar(); 60 void CreateUrlBar();
60 void CreateCloseButton(); 61 void CreateCloseButton();
61 void CreateExitWarning(); 62 void CreateExitWarning();
62 63
63 void ConfigureScene(); 64 void ConfigureScene();
64 void ConfigureSecurityWarnings(); 65 void ConfigureSecurityWarnings();
65 void UpdateBackgroundColor(); 66 void UpdateBackgroundColor();
66 void OnSecurityWarningTimer(); 67 void OnSecurityWarningTimer();
67 void OnBackButtonClicked(); 68 void OnBackButtonClicked();
68 void OnCloseButtonClicked(); 69 void OnCloseButtonClicked();
70 void OnUnsupportedMode(UiUnsupportedMode mode);
69 int AllocateId(); 71 int AllocateId();
70 const ColorScheme& color_scheme() const; 72 const ColorScheme& color_scheme() const;
71 73
72 VrBrowserInterface* browser_; 74 VrBrowserInterface* browser_;
73 UiScene* scene_; 75 UiScene* scene_;
74 76
75 // UI element pointers (not owned by the scene manager). 77 // UI element pointers (not owned by the scene manager).
76 UiElement* permanent_security_warning_ = nullptr; 78 UiElement* permanent_security_warning_ = nullptr;
77 UiElement* transient_security_warning_ = nullptr; 79 UiElement* transient_security_warning_ = nullptr;
78 UiElement* exit_warning_ = nullptr; 80 UiElement* exit_warning_ = nullptr;
(...skipping 22 matching lines...) Expand all
101 base::OneShotTimer security_warning_timer_; 103 base::OneShotTimer security_warning_timer_;
102 104
103 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_; 105 base::WeakPtrFactory<UiSceneManager> weak_ptr_factory_;
104 106
105 DISALLOW_COPY_AND_ASSIGN(UiSceneManager); 107 DISALLOW_COPY_AND_ASSIGN(UiSceneManager);
106 }; 108 };
107 109
108 } // namespace vr_shell 110 } // namespace vr_shell
109 111
110 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_H_ 112 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_SCENE_MANAGER_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_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698