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

Unified Diff: chrome/browser/android/vr_shell/vr_gl_thread.h

Issue 2866853002: VR: Wire VrShell UI-related state to the scene manager. (Closed)
Patch Set: Rebase; remove now-unused source file. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/vr_shell/vr_gl_thread.h
diff --git a/chrome/browser/android/vr_shell/vr_gl_thread.h b/chrome/browser/android/vr_shell/vr_gl_thread.h
index 7349c9ff42d03bf3e14b3310569b8ef72f7aa133..87bae4c514808c8ca547849dbe9f913f79ec635a 100644
--- a/chrome/browser/android/vr_shell/vr_gl_thread.h
+++ b/chrome/browser/android/vr_shell/vr_gl_thread.h
@@ -14,6 +14,8 @@
#include "chrome/browser/android/vr_shell/vr_browser_interface.h"
#include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/gvr_types.h"
+class GURL;
+
namespace vr_shell {
class UiScene;
@@ -21,7 +23,9 @@ class UiSceneManager;
class VrShell;
class VrShellGl;
-class VrGLThread : public VrBrowserInterface, public base::Thread {
+class VrGLThread : public base::Thread,
+ public UiInterface,
+ public VrBrowserInterface {
public:
VrGLThread(
const base::WeakPtr<VrShell>& weak_vr_shell,
@@ -37,12 +41,12 @@ class VrGLThread : public VrBrowserInterface, public base::Thread {
return weak_scene_manager_;
}
- // VrBrowserInterface implementation.
+ // VrBrowserInterface implementation (VrShellGl calling to UI and VrShell).
void ContentSurfaceChanged(jobject surface) override;
void GvrDelegateReady() override;
void UpdateGamepadData(device::GvrGamepadData) override;
+ void AppButtonClicked() override;
void AppButtonGesturePerformed(UiInterface::Direction direction) override;
- void OnAppButtonClicked() override;
void ProcessContentGesture(
std::unique_ptr<blink::WebInputEvent> event) override;
void ForceExitVr() override;
@@ -51,6 +55,16 @@ class VrGLThread : public VrBrowserInterface, public base::Thread {
device::mojom::VRDisplayInfoPtr* info) override;
void OnContentPaused(bool enabled) override;
+ // UiInterface implementation (VrShell calling to the UI).
+ void SetFullscreen(bool enabled) override;
+ void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward) override;
+ void SetLoadProgress(double progress) override;
+ void SetLoading(bool loading) override;
+ void SetSecurityLevel(int level) override;
+ void SetURL(const GURL& gurl) override;
+ void SetWebVrMode(bool enabled) override;
+ void SetWebVrSecureOrigin(bool secure) override;
+
protected:
void Init() override;
void CleanUp() override;
« no previous file with comments | « chrome/browser/android/vr_shell/vr_browser_interface.h ('k') | chrome/browser/android/vr_shell/vr_gl_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698