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

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

Issue 2866853002: VR: Wire VrShell UI-related state to the scene manager. (Closed)
Patch Set: 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 13 matching lines...) Expand all
24 // An interface for communication with Vr Browser. Many of the functions in this 24 // An interface for communication with Vr Browser. Many of the functions in this
25 // interface are proxies to methods on VrShell. 25 // interface are proxies to methods on VrShell.
26 class VrBrowserInterface { 26 class VrBrowserInterface {
27 public: 27 public:
28 virtual ~VrBrowserInterface() {} 28 virtual ~VrBrowserInterface() {}
29 29
30 virtual void ContentSurfaceChanged(jobject surface) {} 30 virtual void ContentSurfaceChanged(jobject surface) {}
31 virtual void GvrDelegateReady() {} 31 virtual void GvrDelegateReady() {}
32 virtual void UpdateGamepadData(device::GvrGamepadData) {} 32 virtual void UpdateGamepadData(device::GvrGamepadData) {}
33 virtual void AppButtonGesturePerformed(UiInterface::Direction direction) {} 33 virtual void AppButtonGesturePerformed(UiInterface::Direction direction) {}
34 virtual void OnAppButtonClicked() {} 34 virtual void AppButtonClicked() {}
35 virtual void ProcessContentGesture( 35 virtual void ProcessContentGesture(
36 std::unique_ptr<blink::WebInputEvent> event) {} 36 std::unique_ptr<blink::WebInputEvent> event) {}
37 virtual void ForceExitVr() {} 37 virtual void ForceExitVr() {}
38 virtual void RunVRDisplayInfoCallback( 38 virtual void RunVRDisplayInfoCallback(
39 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, 39 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback,
40 device::mojom::VRDisplayInfoPtr* info) {} 40 device::mojom::VRDisplayInfoPtr* info) {}
41 virtual void OnContentPaused(bool enabled) {} 41 virtual void OnContentPaused(bool enabled) {}
42 }; 42 };
43 43
44 } // namespace vr_shell 44 } // namespace vr_shell
45 45
46 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_BROWSER_INTERFACE_H_ 46 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_BROWSER_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698