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

Unified Diff: chrome/browser/android/vr_shell/ui_interface.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
« no previous file with comments | « chrome/browser/android/vr_shell/BUILD.gn ('k') | chrome/browser/android/vr_shell/ui_interface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/ui_interface.h
diff --git a/chrome/browser/android/vr_shell/ui_interface.h b/chrome/browser/android/vr_shell/ui_interface.h
index 23bfdd112834714aadd4b315045df391be7e4cba..fc77e961b6337cfcf1e87119f094e8b89ccc61a0 100644
--- a/chrome/browser/android/vr_shell/ui_interface.h
+++ b/chrome/browser/android/vr_shell/ui_interface.h
@@ -5,12 +5,6 @@
#ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_
#define CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_
-#include <memory>
-#include <string>
-
-#include "base/macros.h"
-#include "base/values.h"
-
class GURL;
namespace vr_shell {
@@ -19,11 +13,6 @@ namespace vr_shell {
// HTML UI. State information is asynchronous and unidirectional.
class UiInterface {
public:
- enum Mode {
- STANDARD = 0,
- WEB_VR,
- };
-
enum Direction {
NONE = 0,
LEFT,
@@ -32,30 +21,26 @@ class UiInterface {
DOWN,
};
- explicit UiInterface(Mode initial_mode);
- virtual ~UiInterface() = default;
-
- // Set HTML UI state or pass events.
- void SetMode(Mode mode);
- void SetFullscreen(bool enabled);
- void SetSecurityLevel(int level);
- void SetWebVRSecureOrigin(bool secure);
- void SetLoading(bool loading);
- void SetLoadProgress(double progress);
- void InitTabList();
- void AppendToTabList(bool incognito, int id, const base::string16& title);
- void FlushTabList();
- void UpdateTab(bool incognito, int id, const std::string& title);
- void RemoveTab(bool incognito, int id);
- void SetURL(const GURL& url);
- void HandleAppButtonGesturePerformed(Direction direction);
- void SetHistoryButtonsEnabled(bool can_go_back, bool can_go_forward);
-
- private:
- Mode mode_;
- bool fullscreen_ = false;
-
- DISALLOW_COPY_AND_ASSIGN(UiInterface);
+ virtual ~UiInterface() {}
+
+ virtual void SetWebVrMode(bool enabled) = 0;
+ virtual void SetURL(const GURL& url) = 0;
+ virtual void SetFullscreen(bool enabled) = 0;
+ virtual void SetSecurityLevel(int level) = 0;
+ virtual void SetWebVrSecureOrigin(bool secure) = 0;
+ virtual void SetLoading(bool loading) = 0;
+ virtual void SetLoadProgress(double progress) = 0;
+ virtual void SetHistoryButtonsEnabled(bool can_go_back,
+ bool can_go_forward) = 0;
+
+ // Tab handling.
+ virtual void InitTabList() {}
+ virtual void AppendToTabList(bool incognito,
+ int id,
+ const base::string16& title) {}
+ virtual void FlushTabList() {}
+ virtual void UpdateTab(bool incognito, int id, const std::string& title) {}
+ virtual void RemoveTab(bool incognito, int id) {}
};
} // namespace vr_shell
« no previous file with comments | « chrome/browser/android/vr_shell/BUILD.gn ('k') | chrome/browser/android/vr_shell/ui_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698