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

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

Issue 2879973002: Expose Gamepad API instance for Cardboard button (Closed)
Patch Set: fix crash in tests 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_BROWSER_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_BROWSER_INTERFACE_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_BROWSER_INTERFACE_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_BROWSER_INTERFACE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/android/jni_weak_ref.h" 10 #include "base/android/jni_weak_ref.h"
(...skipping 25 matching lines...) Expand all
36 std::unique_ptr<blink::WebInputEvent> event) = 0; 36 std::unique_ptr<blink::WebInputEvent> event) = 0;
37 virtual void ForceExitVr() = 0; 37 virtual void ForceExitVr() = 0;
38 virtual void ExitPresent() = 0; 38 virtual void ExitPresent() = 0;
39 virtual void ExitFullscreen() = 0; 39 virtual void ExitFullscreen() = 0;
40 virtual void RunVRDisplayInfoCallback( 40 virtual void RunVRDisplayInfoCallback(
41 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, 41 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback,
42 device::mojom::VRDisplayInfoPtr* info) = 0; 42 device::mojom::VRDisplayInfoPtr* info) = 0;
43 virtual void OnContentPaused(bool enabled) = 0; 43 virtual void OnContentPaused(bool enabled) = 0;
44 virtual void NavigateBack() = 0; 44 virtual void NavigateBack() = 0;
45 virtual void ExitCct() = 0; 45 virtual void ExitCct() = 0;
46 virtual void ToggleCardboardGamepad(bool enabled) = 0;
46 }; 47 };
47 48
48 } // namespace vr_shell 49 } // namespace vr_shell
49 50
50 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_BROWSER_INTERFACE_H_ 51 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_BROWSER_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc ('k') | chrome/browser/android/vr_shell/vr_gl_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698