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

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

Issue 2902393002: [vr] Bail on unhandled code points. (Closed)
Patch Set: histograms Created 3 years, 7 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_VR_GL_THREAD_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "chrome/browser/android/vr_shell/ui_interface.h"
14 #include "chrome/browser/android/vr_shell/vr_browser_interface.h" 15 #include "chrome/browser/android/vr_shell/vr_browser_interface.h"
15 #include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/ gvr_types.h" 16 #include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/ gvr_types.h"
16 17
17 class GURL; 18 class GURL;
18 19
19 namespace vr_shell { 20 namespace vr_shell {
20 21
21 class UiScene; 22 class UiScene;
22 class UiSceneManager; 23 class UiSceneManager;
23 class VrShell; 24 class VrShell;
(...skipping 29 matching lines...) Expand all
53 void ForceExitVr() override; 54 void ForceExitVr() override;
54 void ExitPresent() override; 55 void ExitPresent() override;
55 void ExitFullscreen() override; 56 void ExitFullscreen() override;
56 void RunVRDisplayInfoCallback( 57 void RunVRDisplayInfoCallback(
57 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, 58 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback,
58 device::mojom::VRDisplayInfoPtr* info) override; 59 device::mojom::VRDisplayInfoPtr* info) override;
59 void OnContentPaused(bool enabled) override; 60 void OnContentPaused(bool enabled) override;
60 void NavigateBack() override; 61 void NavigateBack() override;
61 void ExitCct() override; 62 void ExitCct() override;
62 void ToggleCardboardGamepad(bool enabled) override; 63 void ToggleCardboardGamepad(bool enabled) override;
64 void OnUnsupportedMode(UiUnsupportedMode mode) override;
63 65
64 // UiInterface implementation (VrShell calling to the UI). 66 // UiInterface implementation (VrShell calling to the UI).
65 void SetFullscreen(bool enabled) override; 67 void SetFullscreen(bool enabled) override;
66 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward) override; 68 void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward) override;
67 void SetLoadProgress(float progress) override; 69 void SetLoadProgress(float progress) override;
68 void SetLoading(bool loading) override; 70 void SetLoading(bool loading) override;
69 void SetSecurityLevel(int level) override; 71 void SetSecurityLevel(int level) override;
70 void SetURL(const GURL& gurl) override; 72 void SetURL(const GURL& gurl) override;
71 void SetWebVrMode(bool enabled) override; 73 void SetWebVrMode(bool enabled) override;
72 void SetWebVrSecureOrigin(bool secure) override; 74 void SetWebVrSecureOrigin(bool secure) override;
(...skipping 22 matching lines...) Expand all
95 bool in_cct_; 97 bool in_cct_;
96 bool reprojected_rendering_; 98 bool reprojected_rendering_;
97 bool daydream_support_; 99 bool daydream_support_;
98 100
99 DISALLOW_COPY_AND_ASSIGN(VrGLThread); 101 DISALLOW_COPY_AND_ASSIGN(VrGLThread);
100 }; 102 };
101 103
102 } // namespace vr_shell 104 } // namespace vr_shell
103 105
104 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_ 106 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698