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

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

Issue 2929483003: VR: Further split common code from Android-specific code. (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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/vr_shell/ui_browser_interface.h
diff --git a/chrome/browser/android/vr_shell/ui_browser_interface.h b/chrome/browser/android/vr_shell/ui_browser_interface.h
new file mode 100644
index 0000000000000000000000000000000000000000..d04560550ebe9fc825a05782b3d7412bcb5bec04
--- /dev/null
+++ b/chrome/browser/android/vr_shell/ui_browser_interface.h
@@ -0,0 +1,27 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_BROWSER_INTERFACE_H_
+#define CHROME_BROWSER_ANDROID_VR_SHELL_UI_BROWSER_INTERFACE_H_
+
+#include "chrome/browser/android/vr_shell/ui_unsupported_mode.h"
+
+namespace vr_shell {
+
+// An interface for the UI to communicate with VrShell. Many of the functions
+// in this interface are proxies to methods on VrShell.
+class UiBrowserInterface {
+ public:
+ virtual ~UiBrowserInterface() = default;
+
+ virtual void ExitPresent() = 0;
+ virtual void ExitFullscreen() = 0;
+ virtual void NavigateBack() = 0;
+ virtual void ExitCct() = 0;
+ virtual void OnUnsupportedMode(UiUnsupportedMode mode) = 0;
+};
+
+} // namespace vr_shell
+
+#endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_BROWSER_INTERFACE_H_

Powered by Google App Engine
This is Rietveld 408576698